Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: shuiend on 24 June 2002, 21:51

Title: hard drives
Post by: shuiend on 24 June 2002, 21:51
i have 2 hard drives both on the same ide cable. the cable is in the main ide slot. i need to know what the 2 hard drives would be call i believe the master would be hda and the slave hda1 but i am not sure. i need to know this so i can edit my lilo.conf to be able to boot off the second hard drive
Title: hard drives
Post by: shuiend on 24 June 2002, 22:29
i figured it out it is hdb. but now the second hd is set up as first partion /boot, second partion swap, and third partion /, in lilo would i put
other=/dev/hdb3
label="suse"

would that allow me to boot suse of hdb
Title: hard drives
Post by: Calum on 24 June 2002, 22:48
depends if you want it to boot from / or /boot
why do you have a /boot partition on there anyway? i don't have one but i don't know.

hdb3 is right for if you want to boot from yr third partition, but hdb1 is right if you want to boot from /boot. Anybody add anything?
Title: hard drives
Post by: voidmain on 25 June 2002, 00:31
Calum, it is best to use a /boot partition.  Even if you don't put "/boot" on a separate partition most distros still create that directory and put the kernel, the initrd and other boot stuff there.  On older RedHat releases it was actually called "/bpart" but they changed the name to /boot.  Most systems, even BSD are set up this way.  If they don't name the directory/partition "/boot" it is some similar name that serves the same purpose.  The reason it is good to have a boot partition is because some boot loaders have a hard time booting if the kernel is more than 1024 cylinders from the beginning of the drive and with todays larger drives that is a good possibility.

[edit] and obviously you want to put the small /boot partition as the first partition on the drive, or as close to the beginning of the drive as possible.

[edit2] even NT can have problems booting from a large system drive under certain conditions, normally on NT servers you create a smaller system partition (C: @ ~2GB) and create larger non-bootable partitions.

[ June 24, 2002: Message edited by: VoidMain ]

Title: hard drives
Post by: voidmain on 25 June 2002, 00:35
quote:
Originally posted by wild_jester:
i figured it out it is hdb. but now the second hd is set up as first partion /boot, second partion swap, and third partion /, in lilo would i put
other=/dev/hdb3
label="suse"

would that allow me to boot suse of hdb



That's exactly the scheme I use on all of my desktop Linux installs.  "/boot" @ 50MB as the first partition. SWAP on the second partition, and "/" as the third partition.