LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2009, 12:49 PM   #1
itazev
LQ Newbie
 
Registered: Jul 2006
Location: Brazil
Distribution: Slackware
Posts: 12

Rep: Reputation: 0
Slackware lilo


Hey everyone.

I'm sure there's a lot of wikihow & docs on lilo but I'm here asking for this particular problem.


Well I installed slackware64 v13 on this machine which runs windows7 too.
On the lilo setup i forgot to add the linux entry so, on the boot screen it only shows "boot windows".

I've a bootable usb with slax and it boots ok whenever I plug it in.

The question is how can I add the linux entry to slackware (must be /dev/sda4)?

Thanks.
 
Old 09-27-2009, 12:52 PM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
You have to use a live CD and mount the Linux partition,chroot in it and then edit the file /etc/lilo.conf
Add this at bottom
Code:
image = /boot/vmlinuz
  root = /dev/sda4
  label = Linux
  read-only
Then run:
Code:
lilo
 
Old 09-27-2009, 02:04 PM   #3
itazev
LQ Newbie
 
Registered: Jul 2006
Location: Brazil
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
good. thanks!

but when i run 'lilo' command it works on the usb memory, not on the hard drive.
must be some switches to write to the HDD's MBR, not the usb disk.
 
Old 09-27-2009, 03:07 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
Remember to 'chroot' into that environment otherwise it will not work.
 
Old 09-27-2009, 04:01 PM   #5
itazev
LQ Newbie
 
Registered: Jul 2006
Location: Brazil
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
how does chroot works?
 
Old 09-27-2009, 04:17 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Quote:
Originally Posted by itazev View Post
how does chroot works?
Lots of good explanations here.
 
Old 09-27-2009, 09:35 PM   #7
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by itazev View Post
how does chroot works?
After mounting the partition,
Code:
mount /dev/sda4 /mnt 
chroot /mnt /bin/bash
 
Old 09-28-2009, 08:06 AM   #8
itazev
LQ Newbie
 
Registered: Jul 2006
Location: Brazil
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks Shylock.

it wouldn't work without the '/bin/bash' and it isn't on the man command.

I'll try it again (away from home right now).

Thanks
 
Old 09-28-2009, 10:56 PM   #9
PPGodOfLove
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Rep: Reputation: 0
Same problem and setup here (dual boot Slackware 13x64/Win7 Pro) and LILO isn't installing. It's not the first time I try to install LILO, i've done it with other distributions without problems.

I saw at the installation that there is a problem with my video controler that do not support vesa (O.o ?) and it cannot show the screen in 256 colors. The result is the same than Mr. itazev : it boots in Win7 without giving me any choices.

No solutions aparently easy to find on the net.

Imma tryin those solutions this week. If anyone has a better idea, say it !
 
Old 09-28-2009, 11:12 PM   #10
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
In any case, you must re-run "liloconfig" or manually edit the /etc/lilo.conf file by mounting the root partition and chrooting in that environment. I don't see any other alternative besides re-install.
 
Old 09-29-2009, 12:52 AM   #11
chuckie
LQ Newbie
 
Registered: Jul 2009
Location: Blm. IL. USA
Distribution: slackware
Posts: 13

Rep: Reputation: 0
You can try booting up using the Slackware install DVD. At the first screen where it says "In a pinch", follow the directions that say something like

boot: huge.s root=/dev/<your_slack_partion> rdinit= ro

If the system will boot, log in and rerun liloconfig in expert mode.

Last edited by chuckie; 10-02-2009 at 02:04 AM. Reason: needed to be worded better.
 
Old 10-02-2009, 06:17 PM   #12
itazev
LQ Newbie
 
Registered: Jul 2006
Location: Brazil
Distribution: Slackware
Posts: 12

Original Poster
Rep: Reputation: 0
thanks chuckie! worked!

chroot wouldn`t work as slax bootable is 32bit and slackware13 installed is 64.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
lilo ntldr missing after running lilo after slackware install SeriousArnoud Slackware 1 08-16-2005 09:07 AM
slackware lilo help Bilot Linux - Newbie 5 04-01-2005 06:22 AM
LILO on Slackware 10 Cikotic Slackware 16 08-21-2004 05:19 PM
LILO and SLACKWARE HELP!!! Sriganesh Slackware 3 04-07-2004 12:59 PM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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