LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-14-2007, 03:44 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
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?
 
Old 08-14-2007, 04:13 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Do I just have to boot with a live cd and change /etc/lilo.conf to root = /dev/hda1?"

You probably also have to change /etc/fstab

"If so, how would I then run lilo from a live cd?"

Use the chroot command to switch from using / on the liveCD to using / on /dev/hda1. Then run the lilo command. See:

man chroot

-------------------
Steve Stites
 
Old 08-14-2007, 04:39 PM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
easy enough-thanx
 
Old 08-14-2007, 04:59 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Quote:
Originally Posted by linuxhippy View Post
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
You should now be able to re-boot your system.
 
Old 08-15-2007, 04:43 AM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
ok-thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
Assigning MySQL databases to certain hard drives benrose111488 Linux - Software 5 11-23-2004 11:42 AM
How to config lilo to boot from two Hard Drives. mlsbraves Linux - General 4 09-13-2004 08:16 PM
Lilo boot on two hard drives tr0j4n Linux - Newbie 5 02-16-2004 01:37 AM
lilo and 3 hard drives j-charles Linux - Newbie 1 02-25-2002 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration