Re: Moving /boot to separate partition and using 'grub' to boot



Edward Diener No Spam wrote:
On a Linux OS ( Mepis 6.0 ) my /boot is not on a separate partition from the / partition. I have formatted a separate partition for it. I want to setup 'grub' ( I am knowledgable of how 'grub' refers to hard disk partitions' ) to boot directly into the new partition, not the MBR. What is the sequence of moving it to a separate partition ?

My understanding of the sequence is:

a) mount the separate partition
b) copy all the files and directories under the current /boot to the separate partition

you can move instead of copy and when done that, remount the new slice as /boot (the empty directory)

Add the boot to your /etc/fstab (this isn't needed for grub, but make things more easy to use), maybe something like this:

/dev/hda1 /boot ext2 noauto,noatime 1 2

edit your /boot/grub/grub.conf

make the 'root (hd0,0)' to point at the slice you have created for the /boot, 0 is the first one, 1 is the second and so on, assuming that your /boot would be the second one, then change to 'root (hd0,1)'

as long as you are using the same harddrive for grub as before, then you need just to run

grub-install


if you have /boot on another harddrive than your /, then you need to add an option

grub-install --recheck

don't forget to adjust the 'root (hd0,0)' to 'root (hd1,0)' (first slice on the second harddrive). If you don't want to use the mbr on the first harddrive, then specify which harddrive to install grub

grub-install --recheck /dev/hdb


//Aho
.



Relevant Pages

  • Re: lilo to grub conversion
    ... >>boot loader. ... I would like to switch this to grub but I am a little ... Ok I have read the instructions but I am a little confused / concerned ... I have /boot as a separate partition on this machine so I have the ...
    (Debian-User)
  • Re: Wheres the grub boot menu?
    ... this when "/boot" is a separate partition. ... touched the version that GRUB is using, ... boot stanzas have no "root" line in mine: ...
    (Debian-User)
  • Re: [SLE] GRUB Hard Disk Error in SuSE 9.2
    ... > you already have a small separate partition for /boot and it's your ... Well, you point me using lilo, and after I change my boot loader from ... Yast to lilo, my system can boot without CD's.. ... I dont really care with boot loader, lilo or grub, as long i can star ...
    (SuSE)
  • Re: Kernel install problem
    ... directory on the "root" filesystem. ... If /boot is a separate partition, ... grub) as /boot/boot. ...
    (Debian-User)
  • Re: Grub problems after RH7.1->FC1 Upgrade
    ... > still using lilo and grub hadn't been installed. ... it a separate partition when you installed? ... grub-install command. ...
    (Fedora)