Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
OK this stems from a lot of issues but I think I am finally at the end. This is taken from a previous post because I thought it deserved it own.
OK So I am currently booting off of the slackware live CD. So I mount my root partition, I edit lilo as I need to. But the problem is that I can't run lilo to update the changes. here is what i have tried.
./lilo (in /<mounted root>/sbin)
Fatal: Can't find /etc/lilo.conf
./lilo -C /<mounted root>/etc/lilo.conf
Fatal: creat /boot/boot.0810 No such file or directory
I figured that booting from a boot disk to fix lilo and reboot would be common thing to do so I thought it would be pretty simple.
OK booting of a boot disk... followed your instrution... Got the driver in and the harddrive mounted to /sda I made sure I made all of the changes to the hard drive on /sda and not my boot disk.
The problem is when I get to the end. I am trying to run lilo. so I cd to /sda/sbin/ and type
and it can't find the lilo.conf. No problem:
./lilo -C /sda/etc/lilo.conf
then I get
"Fatal: creat /boot/boot.0810 No such file or directory"
Is there another switch for lilo that I need to throw in there?...
When you change your /etc/lilo/conf on your hard drive, you have to run lilo from the hard drive too. I think that when you have been working, you have actually been using the tools on the boot disk. When you want to edit anything on the hard drive without chroot-ing in to the HD, you have to specify the full path to the file and to the tools you are using. If you want to edit /etc/lilo.conf on your hard drive, you'll have to edit that copy, as your copy on the cdrom won't be edited. Ex: open your editor (I'll use nano as an example, as a lot of distros have it by default and its easy to use):
Pretend your mount point for the HD is /mnt/hda1.
nano -w /mnt/hda1/etc/lilo.conf
edit the file. save it to the place you got it from (as in /mnt/hda1/etc/lilo.conf)
OK look... I can't run lilo as root by just typing "lilo" in the console because I am booting of a minimal boot disk.
The only way I can run it is to manually mount my hard drive and go to the directory which it is in. Because lilo naturally tried to find it's config file in /etc/lilo.conf, I had to use the -C switch so that I could point to to where the lilo.conf was actually located.
(Root partition [/dev/sda1] mounted in folder /sda)
Lilo runs... It just errors out because it is using the / directory as it's root instead of /sda/ which is it's root. All I want to know is how to change a setting or something so that it will recognise /dev/sda1 as being the root directory.
unless i'm misunderstanding you from only getting part of the picture (you mentioned some other thread, so i'm a little unclear on if there is more to the problem), you should be able to boot your system from the slackware disk by entering the right boot parameters at the prompt:
bare.i root=/dev/sda1 noinitrd ro
unless it's some weird scsi issue with your /sda that won't let you ? (or maybe it takes a kernel image other than bare.i). then just run lilo when you're in your system, and not just the cd/disk environment. like i said, i might be misunderstanding your problem, but it seems to me that should work as long as your root system is "viable," so to speak.
In order to install lilo, after editing /mnt/???/etc/lilo.conf, you need to
This changes the root device. When you boot from the CD the root device is ramdisk RAM0. if you try to run lilo from there you get those errors. So you must first change root to wherever you have your root partition mounted.
But if you are booting from hardware whose support is not compiled into any of the Slackware kernels you'll have to make a custom syslinx bootdisk
Originally posted by gnashley In order to install lilo, after editing /mnt/???/etc/lilo.conf, you need to
That was my first premonition, but I thought he'd be able to get in without. Oops.
Try the install instructions for Slack or any of the 'from scratch' distros like LFS or Gentoo. The docs are good and you have to chroot regardless when you install. They'll have a clear way of explaining it (I have seen it on the Gentoo pages under 'installing the system')