can't write modified lilo.conf to external USB drive.
The title describes my problem.
Here is what I have tried. First of all, the external HD was the only drive on my HP netbook. I purchased an SSD, installed it in the netbook, and put the original HD in an external enclosure, without modifying anything on the ( now external ) HD. I can mount the partitions on the external HD without any problems. What I would like to accomplish is to be able to boot from the external HD, mostly for emergencies, if and when I create them. In order to accomplish this, I have modified /etc/fstab and /etc/lilo.conf. I know I need to write the modified lilo.conf to the mbr of the external HD. I have set up a chroot environment, however, when I run the command 'lilo' I get the following errors: Code:
root@duelie:/etc# lilo Both systems are Slackware 14.1 32 bit. I used this link to set up chroot. -->http://blog.tpa.me.uk/2009/09/29/re-...kware-boot-cd/ I looked in /foo/proc /foo/sys and /foo/dev, and I see the same things there I see on the non-chrooted host system, so I think the mount --bind commands worked. I have also modified the /etc/conf file on the SSD netbook, and added an option to boot the external USB HD. That fails also. I suspect the reason is because the new system on the SSD is 64 bit 14.1, and the system on the USB HD is 32 bit. This is not a big deal though, Is my thinking here correct? As always, your comments are welcome. |
What are the contents of your /etc/fstab and /etc/lilo.conf? Also, can you provide the output of ls -la /dev/disk/by-id/? However, I believe the Warning is just that... a warning. It is probably letting you know that the drive you're attempting to write lilo to is not the primary disc (which makes sense, since you're doing it on an external drive). I don't think this will cause any problems. I think your actual issue is related to the "Fatal" error.
It isn't finding the initrd.gz file. Do you have it correctly listed in the stanza? Usually the file is placed in /boot, so the entry should read initrd = /boot/initrd.gz. In addition to the information I requested above, can you also provide the output of ls -la /boot? Have you installed secondary kernels or are you just using the stock kernels Slackware provided? |
bassmadrigal,
Thank-you, the problem was I did not have initrd = /boot/initrd.gz; I had initrd = initrd.gz. I'm marking this solved. For completeness, here is what you asked for. Code:
ls -la /dev/disk/by-id and the /boot dir: Code:
ls -la /boot |
The error is because lilo failed to find "initrd.gz" in your chroot environment.
Check the /etc/lilo.conf for "initrd.gz" and ensure the paths are correct. If you have no joy - post the contents of /etc/lilo.conf KRs, Marc Edit: I type too slow...! :) |
All times are GMT -5. The time now is 09:49 AM. |