Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 09-22-2006, 11:44 AM   #1
LQ Newbie
Registered: Apr 2006
Distribution: Slackware-Current
Posts: 23

Rep: Reputation: 15
how I configure lilo with /dev/sda?

I install Slackware 10.2 under an intel Xeon, well the bootable partition in this case is


Root is under /dev/sda1, I use scsi2.s option when I install slackware under my SCSI HD, in the installation method I skip the kernel and use the default vmlinuz, and I install lilo in MBR with the automatically installation, I supposed lilo is searching for /dev/hda instead of /dev/sda since I didn,t use the expert lilo option under installation. Now my questions are:

1-How I chroot to /dev/sda1 so I can edit lilo.conf to point to /dev/sda instead of /dev/hda for root partition.

2-Do I had to create some initrd image for the kernel, to load Scsi? Or I can put it directly to lilo.conf and which type of thing I had to write in lilo.conf to support scsi HD ... sda = scsi maybe?

Any Help will be appreciate....

Last edited by conrado; 09-22-2006 at 11:46 AM.
Old 09-22-2006, 11:49 AM   #2
Registered: Apr 2005
Location: Fargo, ND
Distribution: Slackware, CentOS
Posts: 87

Rep: Reputation: 20
try booting from CD using scsi kernel
edit the lilo.conf
lilo -v (make sure everything worked correctly)
reboot without CD
Old 09-22-2006, 11:57 AM   #3
LQ Newbie
Registered: Apr 2006
Distribution: Slackware-Current
Posts: 23

Original Poster
Rep: Reputation: 15
I had boot from CD using the CD as rescue disk, yes in boot prompt I put again scsi2.s and wait until is up, but I tried to mount /dev/sda to chroot it this way:

root@root# mount -t reiserfs /dev/sda1 /mnt
root@root# chroot /mnt

Here comes the problem, if I do ls, I saw all files and folders

root@root# ls
/bin /boot /etc

And so on, so I cd to /etc here the type of terminal change like this:

root@root/1# vi lilo.conf

And it told me vi doesn,t exist like if the /dev/sda1 wasn,t mount it already, if I cd to another place the terminal type again change like this:

root@root/1# cd /root
root@root/2# cd /bin
root@root/3# exit

Unknow terminal type

So how can I edit lilo.conf if I can,t chroot to it! and after I chroot it, what do I had to put in lilo.conf???? and do I need to pass any extra parameters to lilo.conf to mount the scsi as sda??

Or do I had to create some initrd image in the kernel to use scsi??
Old 09-22-2006, 12:12 PM   #4
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 757

Rep: Reputation: 53
You dont need to chroot anything.
Mount the partition on /mnt as you did before
then you want to
cd /mnt/etc
there will be your fstab and lilo.conf


when you run lilo, you can specify the whereabouts of lilo.conf
with lilo -C /mnt/etc/lilo.conf

(if I remember correctly)

Last edited by tobyl; 09-22-2006 at 12:22 PM.
Old 09-22-2006, 12:59 PM   #5
LQ Newbie
Registered: Apr 2006
Distribution: Slackware-Current
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks that helped a lot


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
forcing the order of /dev/sda /dev/sdb etc.. jdaniel Linux - Software 5 05-23-2006 07:41 AM
/dev/sda and /dev/sda1 disappeared using sii3112A striderstrahan Linux - Software 0 09-16-2004 05:00 AM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:39 PM.

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