SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
assigning hard drives letters in lilo
My current Slackware server uses a Promise Ultra100TX2 PCI IDE hard drive card and then lilo sees my Slack partition as hde1. I want to use this IDE card elsewhere but don't want to make my server not able to boot. If I pull the card, I would think lilo will not be able to find the boot partition.
Do I just have to boot with a live cd and change /etc/lilo.conf to root = /dev/hda1? If so, how would I then run lilo from a live cd?
My current Slackware server uses a Promise Ultra100TX2 PCI IDE hard drive card and then lilo sees my Slack partition as hde1. I want to use this IDE card elsewhere but don't want to make my server not able to boot. If I pull the card, I would think lilo will not be able to find the boot partition.
Do I just have to boot with a live cd and change /etc/lilo.conf to root = /dev/hda1? If so, how would I then run lilo from a live cd?
Hi,
Lilo doesn't see the '/dev/hde1', it is assigned via the 'lilo.conf' if that was the recognized device. You then or the install configured the 'lilo.conf' which was written to the 'MBR' of the boot device.
Quote:
excerpt from 'man lilo.conf'
boot=<boot-device>
Sets the name of the device (e.g. a hard disk partition) that
contains the boot sector. If this keyword is omitted, the boot
sector is read from (and possibly written to) the device that is
currently mounted as root. A raid installation is initiated by
specifying a RAID1 device as the boot device; e.g.,
"boot=/dev/md0". Note that LILO version 22.0 and later operate
differently from earlier versions with respect to the actual
location of the boot records.
If you wish to modify the lilo then the easiest way would be to use the Slackware 12 install cd1 to boot the system as if you were going to install.
After you get to the login then from the cli (command line);
Code:
~#mkdir /slacktemp #temporary mount point
~#mount /dev/your_device /slacktemp #this is the device you installed '/' to
~#chroot /slacktemp #change to yours
~#cd /slacktemp/etc #change to directory with lilo.conf
~#vi lilo.conf #edit lilo.conf, if need be
~#lilo -v -t -b /dev/your_device #sda, hda this will only test
~#lilo -v -b /dev/your_device #this will write MBR to your_device
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.