LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 07-09-2010, 05:32 PM   #1
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Rep: Reputation: 16
New Install, lilo wont work and grub is not there. Help


Hi!
Today I bought a new system ^_^ and installed slackware 13.1 64 bit version on it, but the lilo wont install and I dont know how to install grub so m stuck!

Specs:
i7 860 with 8 GM RAM and 250GB x2 SATA drives.
After installation lilo complains that it cannot install on both disks. (I tried installing manually on a single /dev/sda mbr as well but it just wont install, keeps complaining something about two disks!) Now at that time I could not find the package source dir on dvd so rebooted the system and now m wondering if there is any way to install grub without installing the whole system again. Is there a way to login to the shell of my already installed slack system?

Sort of like this:
http://wiki.archlinux.org/index.php/...g_Linux#Chroot

Any help is greatly appreciated, thanks.
 
Old 07-09-2010, 06:55 PM   #2
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
I would try to fix that with Super Grub Disk

http://www.supergrubdisk.org/

Or System Rescue CD:

http://www.sysresccd.org/Sysresccd-P...a-damaged-Grub
 
Old 07-09-2010, 07:16 PM   #3
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Original Poster
Rep: Reputation: 16
okay, if anybody could point me where the tar.gz packages are stored on the live dvd and how slackwre names the first(and only) sata optical drive[cdrecorder cdrecorder0 and cdrecorder1 cdrom cdrom0 cdrom1] are my current options!

Once I know that I can give my idea a shot coz I know that grub as a package included in live dvd....
 
Old 07-09-2010, 07:35 PM   #4
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
I don't think the grub package is there:

http://slackware.mirrors.tds.net/pub...e/PACKAGES.TXT

http://www.slackware.com/releasenotes/packages13.1.php

Unfortunately, the Package Browser has been removed for more than one year. Whoever was taking care of it says it was broken:

http://packages.slackware.it/

Not for me, it used to work very well, but instead of leaving the old one there as it used to be, they just killed it and put nothing in its place. FOSS people sometimes take some pretty weird decisions...

Maybe you can try one of these...

http://www.linuxpackages.net/search_...name=grub&ver=

Last edited by lucmove; 07-09-2010 at 07:43 PM.
 
Old 07-09-2010, 07:59 PM   #5
timetraveler
Member
 
Registered: Apr 2010
Posts: 243
Blog Entries: 2

Rep: Reputation: 31
During the install, right before I click finish I alt-ctrl-f3 to a terminal and run lilo by hand, specifying the lilo.conf with the -C option. Making sure to use the /mnt/mydisk/etc/lilo.conf

Might get better answers by providing more useful info too.
 
Old 07-09-2010, 08:02 PM   #6
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
The optical is probably /dev/sr0. I think you should be able to boot with the install disk, chroot into the existing install, mount the optical drive under the chroot environment and use pkgtool to install lilo. Grub isn't an option with slackware 64 unless you install it from an outside source.

I don't understand what you mean by
Quote:
After installation lilo complains that it cannot install on both disks. (I tried installing manually on a single /dev/sda mbr as well but it just wont install, keeps complaining something about two disks!
You only need to install lilo to one disk. Lilo entries will look like
Quote:
image = /boot/vmlinuz
root = /dev/sda1
label = generic
read-only
image = /boot/vmlinuz-2.6.33
root = /dev/sda1
label = 2.6.33
read-only
image = /mnt/newslack/boot/vmlinuz
root = /dev/sdb2
label = LFS_BUILD
read-only
image = /mnt/damanLFS/boot/LFS
root = /dev/sdb3
label = LFS
initrd = /mnt/damanLFS/boot/initrd-lfskernel-2.6.27.4.img
read-only
image = /boot/vmlinuz-2.6.34-rc1
root = /dev/sda1
label = 2.6.34-rc1
read-only
image = /mnt/salix/boot/vmlinuz
root = /dev/sdb5
label = SalixOS
read-only
image = /mnt/arch/boot/vmlinuz26
root = /dev/sdb6
label = ARCH
initrd = /mnt/arch/boot/kernel26.img
read-only
image = /mnt/arch/boot/vmlinuz-2.6.35-rc3
root = /dev/sdb6
label = arch-RC3
read-only
where those image paths are relative to the primary slackware installation on /dev/sda1 so I have created an /mnt/SOME-DISTRO under the original installation which get mounted when I need to update, so that lilo can find the image when it is run.

Last edited by damgar; 07-09-2010 at 08:08 PM.
 
Old 07-10-2010, 06:19 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
To get into an installed Slackware system, boot with the DVD.
At boot prompt, follow the example which says:
Code:
Welcome to Slackware64 version 13.1 (Linux kernel 2.6.33.4)!

If you need to pass extra parameters to the kernel, enter them at the prompt
below after the name of the kernel to boot (huge.s etc).

In a pinch, you can boot your system from here with a command like:

boot: huge.s root=/dev/sda1 rdinit= ro

In the example above, /dev/sda1 is the / Linux partition.

This prompt is just for entering extra parameters.  If you don't need to enter
any parameters, hit ENTER to boot the default kernel "huge.s" or press [F2]
for a listing of more kernel choices.
Substitute your / partition for /dev/sda1 and boot into Slackware.

This will put you into your installed system, which IMO is better
than a chroot. Then you can find out what your problem is, and post
some better information. Start with:

fdisk -l (to see your disk(s) and partition(s)

less /etc/fstab (to see your filesystems)

less /etc/lilo.conf (to see if/how LiLO is setup)

mount (to see what partition/filesystems are mounted where)

dmesg | tail -50 (to see any errors when booting: -50 = last 50 lines, adjust as needed)

After checking things out, you can run "liloconfig" again and try to
set up LiLO for your system. If you can't figure out what is wrong,
you should now know enough things to post for someone to help you.
And you could also post the exact command you run, and the exact error
message you get. (If nothing else, take a photo, and post it.)

(If you don't know your / filesystem, just hit enter and after logging
in run "cfdisk /dev/sda" then "cfdisk /dev/sdb" to find out how you
have partitioned your system. Then you can start this over, or if you
prefer, chroot as others have mentioned.)
 
Old 07-10-2010, 09:30 AM   #8
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Original Poster
Rep: Reputation: 16
Alright I tried what Bruce Hill suggested & it's getting more n more interesting..

Using live dvd I was able to boot into my existing system!
After that I logged in as root and ran liloconfig...It gave me a graphical menu, then I selected lilo to be setup automatically and voila! It installed without any errors(so could not replicate the error, but I did try this earlier and it did give a error message: both drives are registered to some common...mmm..dam it bad memory)

After rebooting the system the lilo boot screen showed up offering option for win and linux.
Win option works just fine however when I select linux(currently only slackware)the kernel boots in fb and the screen just freezes while booting at random points.

However if I again boot using the live dvd, the system lets me boot just fine! help!

I have attached an image describing this plus my lilo.conf

Partition details: sda- sda1,sda2 & sda3 -- All ntfs
sdb- sdb1&2(reserved for FreeBSD), sdb3(slack root), sdb5(swap) and sdb6(home)...all slack partitions are ext4.

thanks.
Attached Thumbnails
Click image for larger version

Name:	DSC00794.jpg
Views:	14
Size:	259.9 KB
ID:	4082  
Attached Files
File Type: txt dmeseg.txt (3.1 KB, 26 views)
File Type: txt lilo.conf.txt (2.1 KB, 8 views)
 
Old 07-10-2010, 09:48 AM   #9
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
It looks like you are loading the nouveau driver. That should be blacklisted by Slackware with the package xf86-video-nouveau-blacklist-noarch-1.txz. Check for it in /var/log/packages. It's in the X series. Are you intentionally trying to load it?

From when the package was introduced:
Quote:
x/xf86-video-nouveau-blacklist-noarch-1.txz: Added.
This is NOT the nouveau driver! It installs a file in /etc/modprobe.d/
to prevent the kernel module from autoloading. We don't want the nouveau
loaded since we do not ship the nouveau driver (yet), and having the
module loaded prevents the nv and binary nVidia drivers from working.
x/xf86-video-xgixp-1.7.99.4-i486-1.txz: Removed.
This driver breaks X -configure and running X.Org without a config file.
Besides that, x.x.99.x is not a stable release version.
If anyone actually uses this driver, please let us know.
 
Old 07-10-2010, 10:12 AM   #10
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Original Poster
Rep: Reputation: 16
Quote:
This is NOT the nouveau driver! It installs a file in /etc/modprobe.d/
to prevent the kernel module from autoloading.
This!

I thought its the nouveau driver and so I didnt install that package at the time of installation. However I have installed it now and slack boots up fine. Thanks a lot you guyz

damgar, if its not much trouble then please can you tell me what I need to do to include FreeBSD bootloader in Lilo. Am familiar with grub, where I just used to chainload the partition where FreeBSD was installed and grub would pass on to FreeBSD loader. Will this be the same in lilo as well?
 
Old 07-10-2010, 10:20 AM   #11
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
I'm sorry my only experiences with *BSD are in vm's so I can't give an answer I have confidence in. A quick google gives this

Quote:
The LILO Boot Manager: To install this boot manager so it will also boot FreeBSD, first start Linux and add the following to your existing /etc/lilo.conf configuration file:

other=/dev/hdXY
table=/dev/hdX
loader=/boot/chain.b
label=FreeBSD
In the above, specify FreeBSD's primary partition and drive using Linux specifiers, replacing X with the Linux drive letter and Y with the Linux primary partition number. If you are using a SCSI drive, you will need to change /dev/hd to read something similar to /dev/sd. The loader=/boot/chain.b line can be omitted if you have both operating systems on the same drive. Now run /sbin/lilo -v to commit your new changes to the system; this should be verified by checking its screen messages.
 
Old 07-10-2010, 10:53 AM   #12
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Original Poster
Rep: Reputation: 16
no worries mate, and thanks again for all your help
 
  


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
[SOLVED] Before Install: Slackware over Ubuntu (Grub to LILO), Dual w/Vista: LILO question Ubunoob001 Slackware - Installation 3 03-01-2010 03:01 PM
wireless driver wont install,ethernet wont work Reanimator Linux - Newbie 4 05-05-2008 08:22 AM
Can't Install grub, lilo doesn't seem to work mcmillan Linux - Software 3 01-10-2006 08:32 PM
LILO wont run - Grub error dave`2005 Linux - Newbie 2 10-10-2005 10:54 AM
Can't get rid of Lilo, grub wont load why not? johnnybezak Linux - General 6 02-13-2004 05:27 PM

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

All times are GMT -5. The time now is 07:11 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