You are not logged in.

#1 2008-12-10 12:27:20

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

moving root partition gives causes boot failure

I'm trying to move my root partition from sda3 to sda4. I've copied all the files (cp -a to preserve permissions) from 3 to 4, modified grub so the kernel line is now:

kernel /vmlinuz26 root=/dev/sda4 ro

I've modified fstab so sda4 is mounted as /

But when I boot I get

kinit opening console no such file or directory

If I change the kernel line back to sda3 it boots fine and uses sda4 as the root partition. /dev contains all the files it is supposed to.

Just in case it helped I tried re-installing the kernel so mkinitcpio was ran and I reran the grub setup. Still nothing.

I'm sure this should be fairly simple, what could I have missed or done wrong?

Offline

#2 2008-12-10 15:09:30

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: moving root partition gives causes boot failure

dninja,

I supose you are modifying the /boot/grub/menu.lst on your sda4 partition, not the sda3 one.

There you will also need a root   (hd0,3) line (grub counts from zero, its a pain).

Then you will have to tell grub that the root device is sda4.

# grub
grub> root (hd0,3)
grub> setup (hd0)       # if you are putting the boot in the MBR

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2008-12-10 16:12:35

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: moving root partition gives causes boot failure

I have /boot as a separate partition, sda1, so I did

grub> root (hd0,0)
grub> setup (hd0)

which did the setup successfully. I did initially try root hd0,3 but then it complains about not being able to find stage1.

Offline

Board footer

Powered by FluxBB