Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I was installing slackware 9.1 and the installation froze when it was setting up LILO. When I go back the installation program wont let me go there without reformatting/reinstalling all the software packages. How can I just install LILO without this setup program?
Consider yourself lucky - at least you still have a valid MBR.
Boot the floppy you made during the install - you *DID*, right ??.
If your windows is an NT derivative (NT, W2000, XP), make sure you *DON'T* install into the MBR. If NT(et al) is the first partition on the first hard disk you are better off using the NT loader to kick off the Linux loader. LILO is (used to be) a pain in that you have to DD the boot sector over every time you update Linux.
I prefer GRUB, but each to his own.
I'm currently running Slack 9.1 as I type this, and don't remember grub being an option.
Did you by any chance previously install RH or one of the other distros that uses it??
Response was to your post, and I don't judge it as snotty at all.
All fact - I haven't tried Slackware, and was unaware it didn't offer either or both LILO and GRUB.
My prior post was an attempt to assist the original problem.
I've booted to the command line and run liloconfig.
I try the simple setup, and whether I try installing it to the MBR or the root partition it says LILO has returned an error. I really don't want to boot from a floppy. =) Any suggestions?
I just tinkered around to get it working enough to realize I prefer GRUB. I've restored the MBR already, and slackware didn't give me the option to install GRUB. It should be somewhere on one of these Red Hat install cds though.. would anybody mind explaining exactly how I could do this?
There really is no need to install the grub package in order to use grub(unless you want the man pages and such).
You can download and use this generic grub disk I created: http://ryantsai.ozforces.com.au/grubdisk.img
There's no config file so it takes you straight into grub console when booted.
First write the image into a floppy disk:
Code:
dd if=grubdisk.img of=/dev/fd0
Mount the floppy disk(or the image if you prefer) tben copy the entire grub directory in boot to your /boot, so your /boot/grub/ now contains various *stage* files.
Create a /boot/grub/grub.conf, this is a sample one:
If you have a separate /boot partition then the kernel/initrd path shouldn't contain "/boot".
Now boot with the grub boot disk, once you get into the grub shell invoke:
Code:
root (hdX,X)
The first X is the driver number, second is the partition, you should set it to where your /boot is(or / if you don't have one). Therefore for example if your /boot is located in the second partition of the first harddrive(usually primary master), then you do "root (hd0,1)", if its in the first partition of the second drive then "root (hd1,0)", so on and so forth. It'll tell you the partition type therefore you can see if you've got it right, and you can keep trying until you do.
After the root is set you can now install grub into the MBR by using:
Code:
setup (hd0)
If you want it in the partition bootsector, add the partition number as well, therefore for example its possbile to do
Code:
setup (hd0,1)
If it sets up correctly now grub should be installed, if its in the MBR next time you boot it'll appear. If you installed it in the partition bootsector you can either set you /boot partition to active(only if its on the first bootable harddrive) or you can extract the grub bootsector then boot it with NT OS loader, you can easily find related info on this forum in case you want to do that.
Demonbane - I'm sure that would work but I'm a little nervous to try that method. I found a .rpm on my red hat install disc 1 with grub in the name, isnt there a simpler way where I can install the whole package and have it create the config file for me (because I'll also probably need the man pages too). Please keep in mind this will be my third *.nix boot =)
Since you're using Slackware you'll have to write one by hand :-), or post your current lilo.conf I can convert it to grub.conf for ya.
If you want the package you can get the source from http://www.gnu.org/software/grub/grub.html
Oh and if you decide to use the one from gnu website then the default config file is menu.lst, for the grub boot disk image I created its grub.conf cus i made it in redhat.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.