LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-29-2007, 08:02 PM   #1
Pyro123
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Rep: Reputation: 0
Installed full dvd, LILO failed, Wont boot.


Alright guys, I installed Slackware once and did not install or configure LILO, so i thought that was my reasoning behind it would not boot. So i reinstalled Slackware and attempted to install LILO but it said it failed on the configuration, i have the commands to manually configure it but they wont work when i boot the install dvd and get to the command prompt. So i don't really know what my problem is, I haven't used Linux in about 5 years so I cant remember anything basically. Also, i don't have a floppy but i can boot to USB or cd/dvd if need be, I'm running windows vista at the moment on the same computer and have a separate partition set up for Slackware. If you guys know anything that i can do, i would really appreciate it.

Thanks
Kyle
 
Old 06-29-2007, 09:29 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Try the following:

Boot from a live CD. (The installation disk might have a rescue mode that would work for this.) Create a mountpoint. (I will assume it is at /mnt/hda1, but you can adjust to suit needs/taste.) Mount your root partition here. Make sure it is not mounted nodev. If you have a separate boot partition, mount it at /mnt/hda1/boot. Edit /mnt/hda1/etc/lilo.conf as required; I'm assuming the directions you have will help you out here. Then run:

Code:
chroot /mnt/hda1 lilo
Reboot and remove the live CD. With any luck, your system will successfully boot from the hard drive.
 
Old 06-29-2007, 10:02 PM   #3
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
You can use the Slackware installation CD for that. Just proceed as if you're making an install, and when you drop to the console, you can do what blackhole54 suggested.
 
Old 06-30-2007, 03:11 AM   #4
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
First please read Slackware-HOWTO and SlackbookBoot from your Slackware DVD. Then boot from DVD and type:
Code:
huge26.s root=/dev/hda1 noinitrd ro
change /dev/hda1 with your Slackware root partition. After that you can login as root and run
Code:
liloconfig
and choose "expert" option.
 
Old 06-30-2007, 03:34 PM   #5
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
Alternatively you can ditch lilo completely, and install grub, which I personally prefer. You'll find the package in extra/grub on the DVD.
Boot up your system with the LiveDVD as Road_map described, then mount the DVD and install the package:

Code:
(From inside the directory)
# installpkg grub*.tgz
You can then set up grub with "grubconfig". The menu interface is pretty straightforward and should get grub working in no time.

-A
 
Old 06-30-2007, 09:50 PM   #6
wakeras
LQ Newbie
 
Registered: Oct 2003
Location: Kota Bharu, Malaysia.
Distribution: Slackware 12.0, Debian Lenny
Posts: 10

Rep: Reputation: 0
can we know on what is your partition layout?
whare are your /boot and / partition?
your /boot partition must be on the first 1024 cylinders of your hdd (IDE). Let say you created 3 partitions
1st partition /boot of hda1 (let say 500MB)
2nd partition swap of hda2 (let say the rest of the hdd)
3rd partion / on another disk hdb1 (let say 20GB)

so your lilo should have
boot=/dev/hda <-------------using mbr
root=/dev/hdb1


this is what I found out when I tried to use multilpe partitions on mutilpe hdds. My system could boot but halted when it could not find the root partition. Slackware always assume the first partition of your first hdd as your root partition eventhough you made (let say) hdd3 or hdc2 as your root partition. So remember where you put your root (/) partition and point to it when the liloconfig wizard as where is the root location located
 
Old 06-30-2007, 11:06 PM   #7
Pyro123
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Alright my partitions are as follows i have 1 HD 160gb, HDA7 is EXT3 8.4gb, HDA6 is swap 2gb. Other partitions are 86gb Vista, 4.88gb recovery, 48gb stuff partition (just has random stuff on it. The only partitions that i can use for this are the HDA7 and HDA6 Vista wont let me make any of the other partitions smaller safely. So my basic problem i have with Slackware right now is I've installed it, and every command i throw at it, it will reject, the cd doesn't have a recovery mode that i have seen unless its a special command, do i have to mnt the disk to the drive to get everything to work ? i went through the installer perfectly fine except the Lilo part that failed in simple mode. but i can boot the install dvd and get to the part were it says "boot:" and it says it is were you enter extra parameters, then if you just hit enter it takes me to the "root@slackware:" and looking for either; pcmcia, setup and i think one other command that was just a hardware setup for like a modem or something. and at the "root@slackware:" is were ive been trying to enter the commands i have tried to do the commands at the "boot:" part but they dont work, and yes ive tried the "sata.i root=/dev/sda7 noinitrd ro" but it will load and then hit me with some errors as the following is from the first error of 4 right before it hangs and does nothing past that point.

kmod: failed to exec /sbin/modprobe -s -k block-major-8, errno = 2

vfs: cannot open root device "sda1" or08:01

please append a correct "root=" boot option

kernel panic: vfs: unable to mount root fs on 08:01

and then it hangs right there. I am willing to try basicly anything you guys can throw at me, except if it involves my vista partition lol. Alright guys let me know what you think.

Thanks
Kyle

Last edited by Pyro123; 07-01-2007 at 12:30 AM.
 
Old 07-01-2007, 03:02 AM   #8
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by wakeras
your /boot partition must be on the first 1024 cylinders of your hdd (IDE).
This used to be true, but I believe with newer BIOSes and/or versions of LILO that it is no longer required. I am not sure GRUB ever had this requirement.

This is a good thing, because based on his last post, I doubt Pyro123 can meet this requirement. (I haven't done an actual calculation based on his figures, but the early partitions sound rather large for a subsequent partition to be within the first 1024 cyliners.)
 
Old 07-01-2007, 03:10 AM   #9
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Pyro123
then if you just hit enter it takes me to the "root@slackware:" and looking for either; pcmcia, setup and i think one other command that was just a hardware setup for like a modem or something. and at the "root@slackware:" is were ive been trying to enter the commands
This sounds like where you would enter the commands I was talking about, if you want to go that route. I am not sure what you are trying to say about pcmcia, etc.
 
Old 07-01-2007, 04:53 AM   #10
Pyro123
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
What exactly does the mnt command do ? do i have to do that and my partitions im using are at the end of my 160gb HD.
 
Old 07-01-2007, 07:33 AM   #11
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
Linux handles everything, even every piece of hardware as a file. Your partitions are all available on your hard drive as files called device nodes. They're inside the /dev directory.
Think of your partition as a floppy disk. If you have one in your hand you can't write anything to it. Once you shove it into a drive, you can write to it via your PC. It's the same with partitions on Linux, you have to "mount" them onto a certain directory so that you can write to them.
And the mount (not mnt btw) command does exactly that. Say you have a partition called /dev/hda3 (Which is the name of the device node by the way). If you want to mount it, open a command line and log in as root:

Code:
# mkdir /mnt/hda3  (This creates a directory inside /mnt called 'hda3'. /mnt is where the system usually mounts CD drives and other media)
# mount /dev/hda3 /mnt/hda3
(And in order to unmount the partition, just like as in "Remove hardware" in windows:)
# umount /dev/hda3  (Like "unmount" but without the first n)
If you enter the directory /mnt/hda3, you'll find all your files from the partition there. Luckily enough you rarely have to do this anymore, as Linux automatically mounts almost anything. Sometimes though it can come in very handy..

-A

Last edited by Ahmed; 07-01-2007 at 07:39 AM.
 
Old 07-01-2007, 10:07 AM   #12
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Pyro123,

Ahmed just showed you exactly how to do what I was talking about in post #2, except in your case you would be using hda7 (or sda7 -- I am not sure) instead of hda3 as Ahmed showed, or hda1 as I used in post #2. I am sorry I was not more explicit.

Also, if you decide to try what I was talking about, after you mount the partition, use the mount command without any parameters. This will show you all the partitions that are currently mounted and info about them. Look for the one you just mounted and make sure it does not have nodev in the paranthetical list after it. (If it does, we may have to tell you how to mount it w/o that option.)

Last edited by blackhole54; 07-01-2007 at 10:09 AM.
 
Old 07-02-2007, 02:40 PM   #13
Pyro123
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Ok the "huge26.s root=/dev/sda7 noinitrd ro" WORKS....
BUT i get another error that says this...


modprobe: FATAL could not load /lib/modules/2.6.17.13/modules.dep: no such file or directory.

/sbin/e2fsck:no such device or addresss while trying to open /dev/sda7 possibly non-exixtan or swap device.

An error occured during the root filesystem check.
You will now be given a chance to log in to the system in single-user mode to fix the problem.
If you are using the ext2 filesystem, running "e2fsck -v -y <partition>" might help.

ok so i dont know why i get this error when im using the ext3 filesystem and im for sure that it is sda7 and sda6 is my swap.

Last edited by Pyro123; 07-02-2007 at 03:24 PM.
 
Old 07-02-2007, 11:01 PM   #14
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Pyro123
ok so i dont know why i get this error when im using the ext3 filesystem
Ext3 is just ext2 with journaling added. They use a lot of the same tools including e2fsck.

I don't know why you are getting the error. You could try the command it suggested. If you would first rather just see what e2fsck has to say about the partition w/o changing any thing, you can specify -n instead of -y.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root partition is full again wont boot ? dolphans1 Mandriva 6 01-17-2006 04:32 PM
Need dual boot help...LILO..Winxp wont boot Scrag Linux - Hardware 2 09-01-2004 12:26 AM
lilo boot screen wont show windows to boot into!! please help Fear58 Linux - General 3 07-10-2004 09:55 PM
linux single user mode and lilo installed failed ckamheng Slackware 1 11-27-2003 01:06 PM
lilo and openmosix was just installed and was added to lilo boot menu but.. kublador Linux - Software 0 06-18-2003 01:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration