Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Thats all I see. It just stops there. Here are more details:
This only happens when I actually open my computer and disconnect the hard drive (this is the second time it happened. the first time I reinstalled Slack.). When I reconnect it and try to boot up, thats what I get. Only that. If I reinstall, I'm fine...until I have to disconnect it again. (and yes, I have legitimate reasons for disconnecting it somewhat frequently. I do use a static-free wristband (has a ground to the case).
Essentially, its come down to this:
1. Is it a mbr error, or something like that, and if it is, can I repair it without having to reinstall?
2. Is the hard drive faulty and I should therefore buy a new one?
Either you are removing the drive that contains the second part of lilo, or the BIOS is remapping the drive from /dev/sdb to /dev/sda for example. One thing that might help for the latter is changing which controller and/or cable that the drive that remains is connected to. You want it to always be the first one with or without the second drive.
Since it works with the second drive in, it doesn't sound like you need to reinstall. Configure lilo.conf so that the drive you remove isn't referenced at all and then update lilo.
The grub boot loader is more flexible. As long as grub loads, you can enter the grub shell and use tab completion to locate the kernel and initrd files.
Well, I would agree with you, but you missed a few things (or I didn't say them correctly).
First, at all times, I only have on hard drive plugged in to my computer. I unplug one, plug in the other, use a LiveCD. My hard drive is IDE, not SATA or SCSI, so it doesn't change where it supposed to boot.
Here is what my lilo.conf looks like:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda1
#message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 800x600x256
vga = 771
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda1
label = Slack12
read-only
init = /boot/initrd.gz
#
Lilo saves the location of the kernel on the drive. By this, I mean the starting location on the drive itself. It loads the kernel and initrd file directly and doesn't use a filesystem when loading.
I didn't realize that you were swapping drives, I though you were popping in and out an extra drive.
I don't know why you would HAVE TO use grub if you only have one disk in at a time. When you swap disks whatever OS on the disk should work. But, if you had both in when installing and wrote LILO to the MBR of the wrong disk that could cause problems. The same problem can happen with grub if it is written to the MBR of disk1 and then disk1 is changed to disk2, by the user, in bios. I know as I have done this at least twice. Luckily the XP disk can fix its mbr. But, you said you didn't do this.
Anyway, I use grub on slackware. You can find the package in the extra subdirectory on your disk or download it. Search at, http://packages.slackware.it. There's a couple of versions. I had to use the newer one for my mboard and sata hd. Used the previous one for years. You should probably use the newer which is found under current or 12.1.
You'll have to read up on how to install grub as I can't remember. The docs are in the package. Might be something as simple as grub-config or grub-install.
Once the MBR is rewritten and you have grub setup, LILO will not matter so you shouldn't have to do anything to remove it. If you compile your own kernel, do not do "make install" as I think that updates lilo and might cause problems. With grub you manually update the menu.1st file which will be in /boot/grub and then copy kernel and relevant files to /boot manually. Others here will correct me if I'm wrong.
Please post your solution so I'll know what to do when I see a bunch of 9s.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.