PDA

View Full Version : swapping boot partitions



ferreter
08-26-2003, 02:51 AM
Hello all,

I realized recently that when I installed knoppix it defaulted everything, including the boot stuff to hda3. (I created a 100mg boot partition which is unused, and a 500mg swap partition which is being used). So how do I transfer my boot files to the first partition? I know that I'll have to edit lil.conf to point to hda1 but that's about all I know.

Thanks.

jaws75
08-26-2003, 04:04 AM
This worked for me.
do a su

mount destination by
mount /dev/hdax /mnt/hdax
"x" being the destination partition

cd to current boot directory
cd /boot

copy the folder
cp -Rp * /mnt/hdax
"x" being the destination again

edit fstab
mcedit /etc/fstab

add the line
/dev/hdax /boot auto rw,auto,user,exec 0 0
"x" the destination again

change the line in lilo.conf "/etc/lilo.conf" to
boot=/dev/hdax
that "x" again

run lilo
lilo -C lilo.conf

reboot
i use gag to select the partition i want to boot.
good luck

jaws75
08-26-2003, 04:07 AM
sorry i didn't read your discription carefully

hdax
should be
hda1

hda1 being the new boot folder

ferreter
08-27-2003, 05:36 AM
Thanks greatly. I couldn't ask for a more concise answer :D

What did you mean you use gag to select your boot partition?

Thanks again.

Dave_Bechtel
08-27-2003, 10:44 AM
--FYI, 100meg for a /boot partition is way overkill. 8-16Meg should be plenty.


Hello all,

I realized recently that when I installed knoppix it defaulted everything, including the boot stuff to hda3. (I created a 100mg boot partition which is unused, and a 500mg swap partition which is being used). So how do I transfer my boot files to the first partition? I know that I'll have to edit lil.conf to point to hda1 but that's about all I know.

Thanks.

jaws75
08-29-2003, 02:25 AM
Thanks greatly. I couldn't ask for a more concise answer :D

What did you mean you use gag to select your boot partition?


Thanks again.

I have multiple operating systems
eg.
hda1: swap
hda2: windows xp
hda3: linux boot
hda5: linux boot
hda6: linux boot
hda7: knoppix
hda8: yoper
hda9: testing (slackware at the moment)

gag http://gag.sourceforge.net/
is a boot manager that easily lets you select a os to load
check it out. it is very easy to use, edit and config.
by putting lilo in the separate partitions instead the mbr you just config gag to select
hda3 for example and it will load lilo from hda3 and knoppix.
or hda5 to load yoper etc.....

have fun!
jaws75