FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Xubuntu User

 
 
LinkBack Thread Tools
 
Old 07-15-2012, 03:07 PM
Liviu Andronic
 
Default harddisk failure, or Xubuntu refuses to load

On Sun, Jul 15, 2012 at 2:02 PM, Joshua O'Leary
<joshua.oleary@btinternet.com> wrote:
> "Should I run a more in depth SMART test on the disks?" This may be helpful
> in order to work out what area of the disk is actually causing the problem.
>
As I managed to boot easily into Xfce, I was able to use
GSmartControl, a GUI to smartmontools. I ran a short self-test and it
completed with a "read failure":
Type: Short offline
Status: Completed with read failure
% Completed: 10%
Lifetime hours: 6150
LBA of the first sector: 212886687
(LBA seems to mean: Logical block addressing.)

This seems to confirm the dmesg messages. But what am I to do with
this information? Can I mark this sector as 'bad' so that the OS
doesn't try to touch it subsequently? Can I use the SMART capabilities
to do something similar? Or does this mean that the disk is toast? For
what it's worth, the ' Overall health self-assessment test' is still
marked as 'PASSED'.

Regards
Liviu

--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-15-2012, 08:06 PM
Ryan Gauger
 
Default harddisk failure, or Xubuntu refuses to load

Hello. This once happened to my dad. An expert came to look at his computer, and it was a hard drive failure. I suppose this is most-likely the issue you have, unless you have Windows Vista installed on the same hard drive. Then, it would definitely not be a hard drive failure. To make sure, I would try re-installing Xubuntu, or try to figure out if this is a boot loader issue. If this is a problem or error with the boot loader, this can probably be fixed by just re-installing GRUB (or whatever boot loader you have). I hope this helps!
*---Ryan* * From:*Liviu Andronic <landronimirc@gmail.com>

Sent:*Saturday, July 14, 2012 1:49:34 PM
To:*Xubuntu Help and User Discussions <xubuntu-users@lists.ubuntu.com>
Subject:*[xubuntu-users] harddisk failure, or Xubuntu refuses to load

*Dear all

I'm in a bind as Xubuntu refuses to boot up and I'm unable to pinpoint

the cause.



Here's what happened:

My Asus laptop was working on the table under Xubuntu Lucid when I

grabbed it as usual with one hand from below. Then I noticed that it

froze as, I assume, I touched (somewhere somehow and too much) the

harddrive. As it had frozen, I then powered it off by holding pressed

for 5sec the 'power on' button. When starting it again, it

automatically launches harddrive checks then throws up a myriad of

error messages on the virtual consoles.



To attempt to diagnose, I booted up on a LiveCD and checked my 3 Linux

partitions using e2fsck and GParted. In both cases the ext2/ext3

partitions turned out as 'clean'. Mounting the drives and accessing

the folder structure and individual files works fine, according to

limited testing. (Booting Windows Vista on the other side of the

computer works fine, too.) However, when I try to boot up Linux _from_

the disk, Ubuntu still automatically launches harddrive checks, throws

up a error messages on the virtual consoles and is unusably slow. I am

attaching a log of 'dmesg' [1]. Essentially the following error

message gets repeated again and again:

[ 1371.730197] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0

[ 1371.730205] ata1.00: irq_stat 0x40000008

[ 1371.730211] ata1.00: failed command: READ FPDMA QUEUED

[ 1371.730225] ata1.00: cmd 60/08:00:1d:e6:f5/00:00:0b:00:00/40 tag 0

ncq 4096 in

[ 1371.730227] * * * * *res 41/40:08:1e:e6:f5/00:00:0b:00:00/00 Emask

0x409 (media error) <F>

[ 1371.730234] ata1.00: status: { DRDY ERR }

[ 1371.730239] ata1.00: error: { UNC }

[ 1371.734703] ata1.00: configured for UDMA/133

[ 1371.734720] sd 0:0:0:0: [sda] Unhandled sense code

[ 1371.734725] sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE

[ 1371.734733] sd 0:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]

[ 1371.734743] Descriptor sense data with sense descriptors (in hex):

[ 1371.734748] * * * * 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00

[ 1371.734770] * * * * 0b f5 e6 1e

[ 1371.734779] sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error -

auto reallocate failed

[ 1371.734789] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 0b f5 e6 1d 00 00 08 00

[ 1371.734809] end_request: I/O error, dev sda, sector 200664606

[ 1371.734831] ata1: EH complete



So what's going on? My best (and hopeful) guess is that although the

harddisk and file systems are fine along with most of the underlying

data, when grabbing the laptop the OS was accessing/modifying several

files in particular got somehow corrupted and are now impeding a

proper power up of the system. (Although I could get onto the console

and to the GDM login screen, trying to log into X using any user name

takes an eternity and never completes.)



Could anyone suggest how to tackle this? Should I attempt to reinstall

Xubuntu? (I have /home and /boot on separate partitions.) Anything

else?



Regards

Liviu



[1] http://s000.tinyupload.com/index.php?file_id=93465134138264110255





--

Do you know how to read?

http://www.alienetworks.com/srtest.cfm

http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader

Do you know how to write?

http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



--

xubuntu-users mailing list

xubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users


--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-15-2012, 08:06 PM
Ryan Gauger
 
Default harddisk failure, or Xubuntu refuses to load

Hello. This once happened to my dad. An expert came to look at his computer, and it was a hard drive failure. I suppose this is most-likely the issue you have, unless you have Windows Vista installed on the same hard drive. Then, it would definitely not be a hard drive failure. To make sure, I would try re-installing Xubuntu, or try to figure out if this is a boot loader issue. If this is a problem or error with the boot loader, this can probably be fixed by just re-installing GRUB (or whatever boot loader you have). I hope this helps!
*---Ryan* * From:*Liviu Andronic <landronimirc@gmail.com>

Sent:*Saturday, July 14, 2012 1:49:34 PM
To:*Xubuntu Help and User Discussions <xubuntu-users@lists.ubuntu.com>
Subject:*[xubuntu-users] harddisk failure, or Xubuntu refuses to load

*Dear all

I'm in a bind as Xubuntu refuses to boot up and I'm unable to pinpoint

the cause.



Here's what happened:

My Asus laptop was working on the table under Xubuntu Lucid when I

grabbed it as usual with one hand from below. Then I noticed that it

froze as, I assume, I touched (somewhere somehow and too much) the

harddrive. As it had frozen, I then powered it off by holding pressed

for 5sec the 'power on' button. When starting it again, it

automatically launches harddrive checks then throws up a myriad of

error messages on the virtual consoles.



To attempt to diagnose, I booted up on a LiveCD and checked my 3 Linux

partitions using e2fsck and GParted. In both cases the ext2/ext3

partitions turned out as 'clean'. Mounting the drives and accessing

the folder structure and individual files works fine, according to

limited testing. (Booting Windows Vista on the other side of the

computer works fine, too.) However, when I try to boot up Linux _from_

the disk, Ubuntu still automatically launches harddrive checks, throws

up a error messages on the virtual consoles and is unusably slow. I am

attaching a log of 'dmesg' [1]. Essentially the following error

message gets repeated again and again:

[ 1371.730197] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0

[ 1371.730205] ata1.00: irq_stat 0x40000008

[ 1371.730211] ata1.00: failed command: READ FPDMA QUEUED

[ 1371.730225] ata1.00: cmd 60/08:00:1d:e6:f5/00:00:0b:00:00/40 tag 0

ncq 4096 in

[ 1371.730227] * * * * *res 41/40:08:1e:e6:f5/00:00:0b:00:00/00 Emask

0x409 (media error) <F>

[ 1371.730234] ata1.00: status: { DRDY ERR }

[ 1371.730239] ata1.00: error: { UNC }

[ 1371.734703] ata1.00: configured for UDMA/133

[ 1371.734720] sd 0:0:0:0: [sda] Unhandled sense code

[ 1371.734725] sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE

[ 1371.734733] sd 0:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]

[ 1371.734743] Descriptor sense data with sense descriptors (in hex):

[ 1371.734748] * * * * 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00

[ 1371.734770] * * * * 0b f5 e6 1e

[ 1371.734779] sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error -

auto reallocate failed

[ 1371.734789] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 0b f5 e6 1d 00 00 08 00

[ 1371.734809] end_request: I/O error, dev sda, sector 200664606

[ 1371.734831] ata1: EH complete



So what's going on? My best (and hopeful) guess is that although the

harddisk and file systems are fine along with most of the underlying

data, when grabbing the laptop the OS was accessing/modifying several

files in particular got somehow corrupted and are now impeding a

proper power up of the system. (Although I could get onto the console

and to the GDM login screen, trying to log into X using any user name

takes an eternity and never completes.)



Could anyone suggest how to tackle this? Should I attempt to reinstall

Xubuntu? (I have /home and /boot on separate partitions.) Anything

else?



Regards

Liviu



[1] http://s000.tinyupload.com/index.php?file_id=93465134138264110255





--

Do you know how to read?

http://www.alienetworks.com/srtest.cfm

http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader

Do you know how to write?

http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



--

xubuntu-users mailing list

xubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users


--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-15-2012, 08:40 PM
Liviu Andronic
 
Default harddisk failure, or Xubuntu refuses to load

On Sun, Jul 15, 2012 at 10:06 PM, Ryan Gauger <rtgkid@gmail.com> wrote:
> Hello. This once happened to my dad. An expert came to look at his computer,
> and it was a hard drive failure. I suppose this is most-likely the issue you
> have, unless you have Windows Vista installed on the same hard drive. Then,
> it would definitely not be a hard drive failure. To make sure, I would try
> re-installing Xubuntu, or try to figure out if this is a boot loader issue.
> If this is a problem or error with the boot loader, this can probably be
> fixed by just re-installing GRUB (or whatever boot loader you have). I hope
> this helps!
>
Thanks for the suggestions. After changing the BIOS option Xubuntu
loads so I'm happy about this. (And I'll likely reinstall Xubuntu some
other time.) But I'm still unsure what to do about the damaged
sectors.

Regards
Liviu

--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-15-2012, 08:42 PM
Joshua O'Leary
 
Default harddisk failure, or Xubuntu refuses to load

On 15/07/12 15:12, Liviu Andronic
wrote:



On Sun, Jul 15, 2012 at 1:59 PM, Joshua O'Leary
<joshua.oleary@btinternet.com> wrote:


If you change the hard disk operating mode in the BIOS (e.g. ahci, ide etc.)
does it still have the same errors? Not all hard disks support advanced
features.



To my utter surprise, this seems to have done the trick.

I accessed the BIOS and modified the disk operating mode from
'enhanced' to 'compatible', whatever that means. Now Xubuntu boots
quickly, as expected. I checked 'dmesg' and it's clean (there are no
relevant 'error' or 'sector' messages). All in all looks great!
Thanks!

The only issue that I notice is that 'xfce4-notes' refuses to start.
CPU goes to 50% (2 cores). I'm not sure why this happens, especially
since dmesg doesn't complain. But this is part of a bigger worry: As
much as I'm happy that the system boots up gracefully again, I'd like
to perform an audit to see if the disk is damaged and / or needs
changed. Any suggestions on this point?

Regards
Liviu



Giving the output of sudo fdisk -l /dev/sda would be very
helpful, to find out which area of the hard disk is
damaged/faulty/corrupted. That way, we can compare it to the error,
and find out what is actually affected. Running badblocks on the
drive may also see if there are any other problems. When you run
xfce4-notes from terminal, what does it output? You could try
resetting xfce (rm -rf ~/.config/xfce4), which may lose some
settings but remove any problematic config files.



Joshua





--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-15-2012, 09:07 PM
Liviu Andronic
 
Default harddisk failure, or Xubuntu refuses to load

On Sun, Jul 15, 2012 at 10:42 PM, Joshua O'Leary
<joshua.oleary@btinternet.com> wrote:
> Giving the output of sudo fdisk -l /dev/sda would be very helpful, to find
> out which area of the hard disk is damaged/faulty/corrupted. That way, we
> can compare it to the error, and find out what is actually affected. Running
>
As far as I can tell the (obvious) error seems to be located on the
/dev/sda6 (root) partition. To get sizes in sectors instead of
cylinders, I used:
fdisk -lu /dev/sda

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd9b3496e

Device Boot Start End Blocks Id System
/dev/sda1 2048 30717951 15357952 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 30717952 186996599 78139324 7 HPFS/NTFS
/dev/sda3 186996661 614695094 213849217 f W95 Ext'd (LBA)
/dev/sda5 186996663 187607069 305203+ 83 Linux
/dev/sda6 187607133 240862544 26627706 83 Linux
/dev/sda7 240862608 252124109 5630751 82 Linux swap / Solaris
/dev/sda8 293089923 614695094 160802586 83 Linux
/dev/sda9 252124173 253152269 514048+ 83 Linux

Partition table entries are not in disk order


> badblocks on the drive may also see if there are any other problems. When
>
Good idea. I forgot about this command.


> you run xfce4-notes from terminal, what does it output? You could try
>
Nothing, really. I tried a gdb debug but since I have no symbols, I
didn't bother to pursue.


> resetting xfce (rm -rf ~/.config/xfce4), which may lose some settings but
> remove any problematic config files.
>
I accessed via a file editor the Notes related files in
~/.config/xfce4 and it went fine. So I assume the issue is not there.
Perhaps the 'xfce4-notes' binary itself got corrupted. In any case,
the Notes panel plugin loads and works fine, so I am not sure there's
reason to investigate this.

Regards
Liviu

--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-17-2012, 10:21 AM
Joshua O'Leary
 
Default harddisk failure, or Xubuntu refuses to load

On 15/07/12 22:07, Liviu Andronic wrote:

On Sun, Jul 15, 2012 at 10:42 PM, Joshua O'Leary
<joshua.oleary@btinternet.com> wrote:

Giving the output of sudo fdisk -l /dev/sda would be very helpful, to find
out which area of the hard disk is damaged/faulty/corrupted. That way, we
can compare it to the error, and find out what is actually affected. Running


As far as I can tell the (obvious) error seems to be located on the
/dev/sda6 (root) partition. To get sizes in sectors instead of
cylinders, I used:
fdisk -lu /dev/sda

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd9b3496e

Device Boot Start End Blocks Id System
/dev/sda1 2048 30717951 15357952 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 30717952 186996599 78139324 7 HPFS/NTFS
/dev/sda3 186996661 614695094 213849217 f W95 Ext'd (LBA)
/dev/sda5 186996663 187607069 305203+ 83 Linux
/dev/sda6 187607133 240862544 26627706 83 Linux
/dev/sda7 240862608 252124109 5630751 82 Linux swap / Solaris
/dev/sda8 293089923 614695094 160802586 83 Linux
/dev/sda9 252124173 253152269 514048+ 83 Linux

Partition table entries are not in disk order



badblocks on the drive may also see if there are any other problems. When


Good idea. I forgot about this command.



you run xfce4-notes from terminal, what does it output? You could try


Nothing, really. I tried a gdb debug but since I have no symbols, I
didn't bother to pursue.



resetting xfce (rm -rf ~/.config/xfce4), which may lose some settings but
remove any problematic config files.


I accessed via a file editor the Notes related files in
~/.config/xfce4 and it went fine. So I assume the issue is not there.
Perhaps the 'xfce4-notes' binary itself got corrupted. In any case,
the Notes panel plugin loads and works fine, so I am not sure there's
reason to investigate this.

Regards
Liviu

From comparing the sector error to the partition table, the problem
seems to be with this partition:

/dev/sda6 187607133 240862544 26627706 83 Linux
Not sure whether this is the rootfs or your home partition, you would
need to get the UUID of this partition, and compare it to /etc/fstab.


Joshua


--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-17-2012, 11:59 AM
Liviu Andronic
 
Default harddisk failure, or Xubuntu refuses to load

On Tue, Jul 17, 2012 at 12:21 PM, Joshua O'Leary
<joshua.oleary@btinternet.com> wrote:
> From comparing the sector error to the partition table, the problem seems to
> be with this partition:
>
> /dev/sda6 187607133 240862544 26627706 83 Linux
> Not sure whether this is the rootfs or your home partition, you would need
> to get the UUID of this partition, and compare it to /etc/fstab.
>
Yes, I also think so. This partition is /. Next I was planning to run
e2fsck -c /dev/sda6

from a GParted LiveUSB on the unmounted drive so as to include a check
for 'badblocks' in the FS check. This would allow the FS to mark these
sectors as 'bad' and avoid them in the future. Does this sound like a
good idea?

Moreover, it bugs me not to know _why_ changing the disk operating
mode from 'enhanced' to 'compatible' made the FS ignore the bad blocks
and allow Linux to boot up properly. Any ideas why this helped?

Regards
Liviu

--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-17-2012, 05:32 PM
Joshua O'Leary
 
Default harddisk failure, or Xubuntu refuses to load

On 17/07/12 12:59, Liviu Andronic wrote:

On Tue, Jul 17, 2012 at 12:21 PM, Joshua O'Leary
<joshua.oleary@btinternet.com> wrote:

From comparing the sector error to the partition table, the problem seems to
be with this partition:

/dev/sda6 187607133 240862544 26627706 83 Linux
Not sure whether this is the rootfs or your home partition, you would need
to get the UUID of this partition, and compare it to /etc/fstab.


Yes, I also think so. This partition is /. Next I was planning to run
e2fsck -c /dev/sda6

from a GParted LiveUSB on the unmounted drive so as to include a check
for 'badblocks' in the FS check. This would allow the FS to mark these
sectors as 'bad' and avoid them in the future. Does this sound like a
good idea?

Moreover, it bugs me not to know _why_ changing the disk operating
mode from 'enhanced' to 'compatible' made the FS ignore the bad blocks
and allow Linux to boot up properly. Any ideas why this helped?

Regards
Liviu

Not sure exactly, perhaps 'enhanced' uses advanced features, causing it
to read/write the hard disk more.



--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 
Old 07-17-2012, 08:58 PM
Liviu Andronic
 
Default harddisk failure, or Xubuntu refuses to load

On Tue, Jul 17, 2012 at 7:32 PM, Joshua O'Leary
<joshua.oleary@btinternet.com> wrote:
> Not sure exactly, perhaps 'enhanced' uses advanced features, causing it to
> read/write the hard disk more.
>
I went ahead and passed all my partitions through:
e2fsck -c /dev/sda#

and 'badblocks' found several damaged sectors on '/dev/sda6'.
Subsequently I switched back the BIOS settings from 'compatible' to
'enhanced' and the kernel booted up as expected. No issues so far.

Here are the bad sectors identified and masked:
root@liv-laptop:/home/liv# dumpe2fs -b /dev/sda6
dumpe2fs 1.41.11 (14-Mar-2010)
1632184
3159944
3159945
3159946
3159947
3159948
3159949
3164995
3164996
3164997
3164998

The only trouble is that the SMART short self-test fails with the same
read error, at a different sector. I guess I'll try to run the fs
check with 'badblocks' again.

Regards
Liviu

--
xubuntu-users mailing list
xubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
 

Thread Tools




All times are GMT. The time now is 03:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org