Re: Moving /boot to separate partition and using 'grub' to boot
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 22:10:02 +0100
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
.
- Follow-Ups:
- Re: Moving /boot to separate partition and using 'grub' to boot
- From: Edward Diener No Spam
- Re: Moving /boot to separate partition and using 'grub' to boot
- References:
- Moving /boot to separate partition and using 'grub' to boot
- From: Edward Diener No Spam
- Moving /boot to separate partition and using 'grub' to boot
- Prev by Date: Re: Moving /boot to separate partition and using 'grub' to boot
- Next by Date: Re: Moving /boot to separate partition and using 'grub' to boot
- Previous by thread: Re: Moving /boot to separate partition and using 'grub' to boot
- Next by thread: Re: Moving /boot to separate partition and using 'grub' to boot
- Index(es):
Relevant Pages
|
|