Fwd: Re: grub rescue
Goh Lip
g.lip at gmx.com
Fri May 7 19:20:28 UTC 2010
On 05/08/2010 03:01 AM, Javier Gardeazabal wrote:
> On Friday, 7 de May de 2010 19:47:44 Goh Lip wrote:
>> On 05/08/2010 01:32 AM, JAVIER GARDEAZABAL wrote:
>>> On 05/08/2010 12:29 AM, Goh Lip wrote:
>>>> On Fri, 7 May 2010 17:25:21 +0200
>>>>
>>>> Javier Gardeazabal<javier.gardeazabal at ehu.es> wrote:
>>>>> I booted from a livecd and typed
>>>>>
>>>>> sudo fdisk -l
>>>>> sudo mount /dev/sda1 /mnt
>>>
>>> Javier, do you have other OS other than kubuntu, like windows?
>>> Do you know how many partitions you had?
>>> And, do you remember the output of "sudo fdisk -l" above?
>>>
>>> Regards - Goh Lip
>>>
>>> Dear Goh
>>>
>>> Thanks a lot for your help.
>>> I did not try your last suggestions yet.
>>> I do not have windows in my box.
>>> This is what fdisk delivers
>>>
>>> ubuntu at ubuntu:~$ sudo fdisk -l
>>>
>>> Disk /dev/sda: 146.8 GB, 146815733760 bytes
>>> 255 heads, 63 sectors/track, 17849 cylinders
>>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>> Sector size (logical/physical): 512 bytes / 512 bytes
>>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>>> Disk identifier: 0x0ecab17e
>>>
>>> Device Boot Start End Blocks Id System
>>> /dev/sda1 * 1 17119 137508336 83 Linux
>>> /dev/sda2 17120 17849 5863725 5 Extended
>>> /dev/sda5 17120 17849 5863693+ 82 Linux swap /
>>> Solaris
>>>
>>> Disk /dev/sdb: 300.0 GB, 300000000000 bytes
>>> 255 heads, 63 sectors/track, 36472 cylinders
>>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>> Sector size (logical/physical): 512 bytes / 512 bytes
>>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>>> Disk identifier: 0xe5b8e05c
>>>
>>> Device Boot Start End Blocks Id System
>>> /dev/sdb1 2 36472 292953307+ 7 HPFS/NTFS
>>>
>>>
>>> Best
>>> javier
>>
>> Phew! That's a relief! (for me)
>> I've put this message in my draft and just for kicks, I'll share it with
>> you..
>>
>> *draft*
>> Extract of http://grub.enbug.org/Grub2LiveCdInstallGuide :
>>
>> <extract>
>> Step Two: Mounting and chroot'ing
>>
>> Open a Terminal window and type sudo fdisk -l (That's a lowercase L at
>> the end).
>> Now this part can be tricky because you have to figure out which one of
>> those listed devices is your linux installation. The easiest way is to
>> see which one is listed as Linux, so remember this value. Mine was
>> /dev/sda1 and so I will use that as reference in this guide.
>> If you got a separate /boot partition, you'll have to mount it too.
>> <end extract>
>>
>>
>> Javier, I think you have messed up your windows partition as windows
>> normally resides in sda1.
>>
>> chrooting is inherently very risky as you are in root and can do real
>> damage. You should be very sure about the partition at sudo fdisk -l
>> before you proceed. I myself would not touch chroot.
>>
>> *undraft*
>>
>> Javier, if you need me to send you a grub iso,(and you can burn to a cd)
>> I'll gladly do so.
>>
>>
>> Take care, regards - Goh Lip
>
> Dear Goh
>
> I do not understand. I do not have windows on my machine.
> Perhaps you say
>> Javier, I think you have messed up your windows partition as windows
>> normally resides in sda1.
> because my second drive has an ntfs filesystem. It was there when I bought it,
> but windows has never touched that drive.
>
> In the mean time got a grub iso.
> At the grub prompt I typed
> linux (hd1,x)/vmlinuz root=/dev/sda1 ro
> initrd (hd1,x)/initrd.img
> boot
>
> This returned lots of stuff and then stopped with the cursor blinking for a
> long...time.
> Pressing the enter key returns the initramfs prompt.
>
> Cheers
> javier
>
Javier, don't worry about the windows thing.. I was worried for nothing
for a while. It's okay....all is fine.
Now, did you get "hd1,1" or "hd0,1" from the output at
"search -f /vmlinuz"?
My bet is "hd0,1"
Then you should type.....
linux (hd0,1)/vmlinuz root=/dev/sda1 ro
initrd (hd0,1)/initrd.img
boot
*note* the (hd0,1) not (hd1,1).
If you get "hd1,1", then type
linux (hd1,1)/vmlinuz root=/dev/sdb1 ro
initrd (hd1,1)/initrd.img
boot
*note* the *sdb1*
but never (hd1,x) sdbx (hdx,1) sdax
never have an "x" in the above
Repeat...if output is 'hd0,1'
linux (hd0,1)/vmlinuz root=/dev/sda1 ro
initrd (hd0,1)/initrd.img
boot
Good luck - Goh Lip
ps: sorry about the windows comment,
it's more confusing than helpful.
also I'll be sleeping soon, I know it's saturday.
I mean friday. saturday here.
--
Life is a sexually transmitted disease with a 100% mortality rate.
More information about the kubuntu-users
mailing list