PDA

View Full Version : [SOLVED] 10.10 won't boot after main power failure



humbfig
February 12th, 2011, 12:44 AM
Hi!
Running 10.10
After a main power failure I can't boot.

It says:
...........
[sdb] Attached SCSI removable disk
[sdc] Attached SCSI removable disk
[sdd] Attached SCSI removable disk
[sde] Attached SCSI removable disk
and stops.
I get a (initramfs) prompt and have no idea what to do with it.

Allready tried to install 10.10 again from a CD. But it also hangs immediately when it starts to install. The liveCD feature works OK and I can access the hard disk. I tried to update the initramfs with the liveCD but it says I can't write since I have only "read-only" access.
But if I do "sudo nautilus" I have full access to the disk.

Can someone help me? I'm not very experienced in Linux, but I'm proficient at "copying and pasting" commands! :smile:

Tx
HumbFig

JC Cheloven
February 12th, 2011, 02:45 AM
OK, it seems a task for fsck.
But first please let's see what disks are on your computer (I miss at least a mention of sda). Please, from live session open a terminal, run

sudo fdisk -l
and paste back here the output.

humbfig
February 12th, 2011, 02:05 PM
OK, it seems a task for fsck.
But first please let's see what disks are on your computer (I miss at least a mention of sda). Please, from live session open a terminal, run

sudo fdisk -land paste back here the output.

Thanks for your help!
Maybe I didn't tell all the story. I used to have 5 disks plus 1 DVD. The disk that contains the boot and the /home is IDE, the DVD is also IDE. The other 4 disks are SATA.
When the booting problem came up I decided to simplify and removed the SATA disks. I would remove the processor if it would increase the odds for successful booting.
Anyway, there's NO DIFFERENCE in the messages I get when trying to boot, so, I will add the SATA disks again. And using the LiveCD I could access all the disks.
For now, here is the result of the fdisk with only the booting disk in the system:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 17653 141692928 7 HPFS/NTFS
/dev/sda3 17654 30401 102398279+ 5 Extended
/dev/sda5 17654 17778 1004031 82 Linux swap / Solaris
/dev/sda6 17779 19030 10056658+ 83 Linux
/dev/sda7 19031 30401 91337526 83 Linux

It's a bit messy because I used to run dual boot, until windows stoped booting also. That was a long time ago and I have not missed it that much..... one of these days I'll have to learn how to fix the grub thing......

again, many thanks!

HumbFig

humbfig
February 12th, 2011, 03:20 PM
Ok, some (maybe) useful pics:


http://dl.dropbox.com/u/2881715/sda.png

http://dl.dropbox.com/u/2881715/Local%20storage.png

the sdb, sdc, sdd, sde that appear when the booting hangs are these "Generic Storage devices". USB stuff......
What is the 693MB USB thing? the ramfs? under USB, firewire???????????

It's been hard to write this post, cause the computer is very willing to hang for no discernable reason.......

Tx

HumbFig

JC Cheloven
February 16th, 2011, 02:12 PM
Hi, and sorry for the delay. Didn't had time to come back here since sunday.

A power failure may have damaged your system at diferent levels. From messing a filesystem what was in use (that's usually either recoverable or "fixed" by a formatting in the worst case), to some more serious permanent damage to the ram or other hardware components.

Starting by the end: You said the computer hangs frequently? Even from live? This could be a symptom of ram failure. You can boot to memory diagnosis and let it run for a couple of hours or so, to see if something is wrong.

Different subject: the partition where the grub files are, could be sda6 or sda7. Usually where you installed ubuntu the last time (surely you know better). If it's sda6, you can try to repair errors from that filesystem with
sudo fsck /dev/sda6from live.

Hope this helps

humbfig
February 16th, 2011, 08:20 PM
Hi, and sorry for the delay. Didn't had time to come back here since sunday.

A power failure may have damaged your system at diferent levels. From messing a filesystem what was in use (that's usually either recoverable or "fixed" by a formatting in the worst case), to some more serious permanent damage to the ram or other hardware components.

Starting by the end: You said the computer hangs frequently? Even from live? This could be a symptom of ram failure. You can boot to memory diagnosis and let it run for a couple of hours or so, to see if something is wrong.

Different subject: the partition where the grub files are, could be sda6 or sda7. Usually where you installed ubuntu the last time (surely you know better). If it's sda6, you can try to repair errors from that filesystem with
sudo fsck /dev/sda6from live.

Hope this helps

Hi!
Memory seems good. It hasn't hang lately......
The partition where I installed ubuntu was indeed /sda6. This partition is the only one I can not access. All the others seem OK.
If I try to run fsck I get:

"fsck.ext4: Device or Resource busy while trying to open /dev/sda6"
"Filesystem mounted or opened exclusively by another program?"

Actually, it's not mounted, and if I try to mount it, it says /sda6 is not in /etc/fstab or mtab. If I try to mount it using the UI it says:
"DBus error org.gtk.Private.RemoteVolumeMonitor.Failed:
An operation is already pending"

If I check the runing processes, I can see one saying "mount -t ext4 -o uhelper=udisk".
I tried to kill it but it refuses to die........

I tried to format /sda6 but I can't either......

Any ideas left?

Tx for your effort!

HumbFig

JC Cheloven
February 18th, 2011, 03:38 AM
If fsck doesn't work, I'm out of ideas at the moment, regarding the recovery of the filesystem on this partition.


I tried to format /sda6 but I can't either......
Any ideas left?
What thingie did you use? Gparted? (if not it's worth to try)
Did you try mkfs from terminal? Something like:
sudo mkfs -t ext4 -c /dev/sda6 The -c option will check for damaged blocks in the partition (see man mkfs for details).

BTW: I guess sda7 is your separate /home partition. If so, congrats. This is a typical case in which life is easier with separate /home.

humbfig
February 18th, 2011, 09:06 PM
If fsck doesn't work, I'm out of ideas at the moment, regarding the recovery of the filesystem on this partition.

What thingie did you use? Gparted? (if not it's worth to try)
Did you try mkfs from terminal? Something like:
sudo mkfs -t ext4 -c /dev/sda6 The -c option will check for damaged blocks in the partition (see man mkfs for details).

BTW: I guess sda7 is your separate /home partition. If so, congrats. This is a typical case in which life is easier with separate /home.

Great news!!!
mkfs did for me. After I run it I could mount /sda6, delete it, format it, whatever.
I still don't understand what had happened. If there was an invalid filesystem in /sda6, how could it stop me from deleting the partition?
/sda6 was messed, but was smart enough not to let me format it or delete it...... :confused:
Since I used mkfs exactly like you wrote it (I told you I was good at copying and pasting commands!), didn't use a verbose option, I don't know if mkfs had something special to tell me......

yes, I had used GParted, and yes my /home is sda7 (learned that the hardway also!)

Many many thanks for your great help!!!
If you come around Lisbon, you have a free beer waiting for you!:)

HumbFig

JC Cheloven
February 19th, 2011, 03:16 AM
Glad it worked :) A pleasure to give a hand to such a kind person.

To be honest, I don't understand either what exactly happened. I'd also expect that a formatting action (of any kind) would have wiped the filesystem, whether it contained errors or not, or even if was left marked as "in use" when the power failed. EDIT: ah, don't wory too much about what mkfs would have to say. Probably some bad sectors marked as unusable, and little more.

Thanks for the beer! Lisboa is very nice, I loved it when I visited it a couple of times in the past. But isn't exactly nearby, I'm afraid I'll have to be content with a virtual beer ;)

Please don't forget to mark the thread as solved, using the "thread tools" at the top.

See u in the forums!
JC

Krytarik
February 19th, 2011, 03:43 AM
Hi, I followed this thread in the last days, and there was a actually another thread at the same time regarding a similar issue, and the same solution:
http://ubuntuforums.org/showthread.php?t=1681889

Greetings.