how I configure lilo with /dev/sda?
I install Slackware 10.2 under an intel Xeon, well the bootable partition in this case is
/dev/sda 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.... |
try booting from CD using scsi kernel
edit the lilo.conf lilo -v (make sure everything worked correctly) reboot without CD |
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?? |
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 tobyl edit: when you run lilo, you can specify the whereabouts of lilo.conf with lilo -C /mnt/etc/lilo.conf (if I remember correctly) |
Thanks that helped a lot :)
|
All times are GMT -5. The time now is 05:04 PM. |