Hi! I have an unusual situation in that I'm trying to install Slackware 12 on an old Thinkpad T21 that can't boot from USB and has no internal CDROM drive. (When the original CDRW broke, I got an external.) And the new Slackware 12 doesn't allow floppy drive boots anymore.
My current hard drive is a Slack 11, so I copied the Slack 12 setup boot image and ramdisk, booted up as "setup", and successfully installed Slack 12 to my _new_ drive, connected via USB. My problem is: when I put the new Slack 12 drive into my laptop, it won't boot.
I think I know why: my lilo.conf has boot lines pointing to /dev/sda2 (my bootable partition). When I put the drive into the laptop, it becomes /dev/hda. But I can't then reboot with an external media and rerun lilo, so...now what?
My root partition on the Slack 11 drive happens to be /dev/hda1, not /dev/hda2, so I even tried unmounting /dev/hda2 with the Slack 11 drive inside, then linking /dev/hda2 to /dev/sda2, pivot_root'ing to /dev/sda2, and running lilo, so lilo would install a /dev/hda2 boot to /dev/sda2. It didn't work.
So is there a way to tell lilo, "I want you to install a boot loader that will boot to /dev/hda2, but I want you to put it on /dev/sda2 for now"?
Thanks very much for any help.
I'm thinking it may be the "-b" option, but I'd like to double check before hosing my drive.
Thanks!
Bill
Here's the current /etc/lilo.conf on the Slack12 drive:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda2
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/hda2
label = Slack12
read-only
#