Cannot boot ubuntu 9.0.4 after hard power off

Asked by Xenos

I have Ubuntu 9.0.4 and Windows 7 on my laptop. The Ubuntu is installed as a service of windows. I have used Ubuntu for about a month and everything works well untill yesterday. I installed some updates(those automatically detected in Ubuntu), then it was not able to power off. So I had to make a hard power off. After that I cannot boot Ubuntu anymore. There are some errors saying "no init found", and leading to (initramfs) command line. I tried the recovery but it didn't work. Could anyone please tell me how I should do? Thanks for your help in advanced.

Question information

Language:
English Edit question
Status:
Solved
For:
Wubi Edit question
Assignee:
No assignee Edit question
Solved by:
Xenos
Solved:
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1

Hi :)

You can boot into Windows without trouble? Do you have an Ubuntu Cd that you can use as a LiveCd?
https://help.ubuntu.com/community/LiveCD

Please let us know
Good luck and regards from
Tom :)

Revision history for this message
Xenos (xenosplanet) said :
#2

I can use windows and boot with LiveCD. I have tried to mount root.disk after I boot with LiveCD, follow the step in (https://wiki.ubuntu.com/WubiGuide#How%20can%20I%20access%20my%20Wubi%20install%20and%20repair%20my%20install%20if%20it%20won%27t%20boot? ) But it doesn't work.
When I use this commad "sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk", it asks me the file format. Then I use command "sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk -t ntfs" to specify the format to ntfs. I still doesn't work.

Any ideas about it? Thanks.

Revision history for this message
Xenos (xenosplanet) said :
#3

I have installed Ubuntu on a new separate partition now as it is said that installment in wubi is vulnerable. But I am still look for some ways to save my data in the old system. Anyone can help me, please?

Revision history for this message
Tom (tom6) said :
#4

HI :)

Brilliant, nicely done :)))
Can you boot into Windows? Can you boot into the old system? If so then when you are booted into the old system it should be possible to just copy and paste stuff from it into the new install although it might take a bit of navigating to get to the right partition on the right drive and then navigate to it's /home/usernam/Documents folder

When you are next in Ubuntu please could you give us the new output of

sudo fdisk -l

Thanks and regards from
Tom :)

Revision history for this message
Xenos (xenosplanet) said :
#5

Hi Tom,

I can boot into windows, but cannot boot into the old system. And that is what's bothering me now.
I can see the old ubuntu is store in /ubuntu/disks/root.disk, but I find no way to access the files inside. I tried all tools I can get, such as DiskInternals Linux Reader and Ext2 Installable File System For Windows. They doesn't work. I believe that's because the root.disk is actually in NTFS. As I mentioned before, my problem here is having the files in root.disk but cannot access them.

With sudo fdisk-l, I got the following output:

   Device Boot Start End Blocks Id System
/dev/sda1 3 20320 10240000 1c Hidden W95 FAT32 (LBA)
/dev/sda2 * 20320 197995 89548452 7 HPFS/NTFS
/dev/sda3 218800 484521 133923888 f W95 Ext'd (LBA)
/dev/sda5 218801 248562 15000048 83 Linux
/dev/sda6 248563 262579 7064536+ 82 Linux swap / Solaris
/dev/sda7 262581 484521 111857664 7 HPFS/NTFS

As you can see, sda2 is the old ubuntu, sda3 is windows. And sda5 and sda6 is for my new ubuntu.

Could you suggest any method I can access my old ubuntu?

Cheers,
Xenos

Revision history for this message
Tom (tom6) said :
#6

Hi :)

Is this a huge drive? I make this about 4Tb?

That was well worked out about which partition does what and very nearly right - not bad for a first go! If you look at the start and end numbers then you will see that sda3 contains all of sda5, sda6 and sda7. Drives were originally made to only normally be able to have 4 Primary Partitions but some clever people made this work-around of "Extended Partitions" which are a single Primary Partition that is then able to contain several (up to 64 or 256 or something) partitions which are called "Logical Partitions". On most modern mbords there is no real difference between a logical partition and a primary one in terms of speed or addressing and so on.

The Wubi is contained inside the same partition as Windows. The Wubi was designed to avoid the confusion of having to worry about partitioning (and a few other issues but that's one of the main problems people have when trying to move to linux). So the Wubi creates a virtual partition completely inside Windows! Yes, sda1 is a recovery/utilities partition and is best left entirely untouched if at all possible. Also sda5, sda6 and sda7 are all your new linux install. But it is sda2 that contains both Windows and your previous Ubuntu.

Hmm, so much for what is going on but i am not good enough with the Wubi to be able to help with this! Please can you re-post this as a new question
https://answers.launchpad.net/wubi/+addquestion
so that someone more expert with Wubi can help with this!

Many apologies about this
Good luck and regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#7

Hi again

I doubt this will help but i found this
https://wiki.ubuntu.com/WubiGuide#Wubi%20Support%20Forum

It might help access a few logs and things which might be helpful
Good luck and regards from
Tom :)

Revision history for this message
Xenos (xenosplanet) said :
#8

Thanks all the same

Revision history for this message
Tom (tom6) said :
#9

Hi :)

Please re-post this question and hopefully someone a lot more expert will be around this time!
https://answers.launchpad.net/wubi/+addquestion
You were just unlucky this time but next time should be good.

Good luckand regards from
Tom :)

Revision history for this message
Agostino Russo (ago) said :
#10

If you cannot boot into ubuntu after a hard reboot, please see:

https://wiki.ubuntu.com/WubiGuide#Cannot%20boot%20into%20Ubuntu

Note that after running chkdsk /r your ubuntu files are sometime moved into a hidden directory (see the above link).

Revision history for this message
Tom (tom6) said :
#11

Hi :)

Have you been able to test the new Ubuntu 10.04 before it gets officially released?
http://www.ubuntulinux.org/testing/lucid/beta1
Trying it as a LiveCd or as an extra dual/multi-boot would be ideal. Developers and everyone are keen to try to iron out any problems before 10.04 gets officially released so you might find faster & more effective answers to your bug reports which would make 10.04 work better on your system for you

Thanks and regards from
Tom :)