Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-14-2008, 01:30 AM   #16
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,526
Blog Entries: 6

Rep: Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435
Just time for a quick reply...

Yes - you are booted into Debians filesystem with the Slackware kernel.

It is easy to put back as it was - but you must do it exactly and carefully...

FIRST you must mount the Slackware partition while in your confused boot, create a mount point like slackmnt/ for example, then ...

mount /dev/hda8 slackmnt/

SECOND you must 'chroot' into THAT filesystem...

chroot slackmnt/

THIRD - VERIFY, VERIFY, VERIFY that you are in fact on the slack filesystem - look at some file that only exists there or something...

FOURTH - Edit lilo.conf and change the root=/dev/hda9 BACK to root=/dev/hda8 and run lilo again - this will reinstall the bootloader just as it was before...

FIFTH - Reboot and verify that you are back as it was - then make no more changes until we have a plan...

In the even that you have problems with chroot or running lilo from that location, please just be patient or you might end up with a system that does not boot at all...

Have to run now - hope this helps.
Old 10-14-2008, 05:19 AM   #17
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,658
Blog Entries: 56

Rep: Reputation: Disabled
This is from my lilo.conf, with lilo in the MBR, and Ubuntu's Grub in its root. Obviously the third distro and partition numbers are different, but it may give you some idea of how lilo.conf should look:
# Windows bootable partition config begins
other = /dev/sda1
  label = Windows
  table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-generic-smp-
  initrd = /boot/initrd.gz
  root = /dev/sda2
  label = Slackware_G
image = /boot/vmlinuz
  root = /dev/sda2
  label = Slackware_H
# Linux bootable partition config ends
other = /dev/sda5
  label = Ubuntu
Old 10-14-2008, 08:20 PM   #18
Registered: Sep 2008
Posts: 115

Original Poster
Rep: Reputation: 18
I know how to fix it now. When i login, i installed lilo in the debian system, after that, use liloconfig to configure it, therefor, liloconfig will add my debian and windows entrance to lilo.conf. Ok, i just mount my slack partition and follow astrogeek's guideline to add a entry for slackware, all the things work well now.

but, i get delete the map line, otherwise there would be an error which says 'Syntax error at or above line 75 in file "/etc/lilo.conf"。so, i simply delete the map line, then it can work, but gets a warning like 'The boot sector and the map file have *NOT* been altered', i installed it, and it can lead me to my debian and slackware well. Then i login my slackware and installed lilo again, all the things were then same.
my debian entrance like:
image = /mnt/hd/debian/boot/vmlinuz
root = /dev/hda9
initrd = /mnt/hd/debian/boot/initrd.img
#map = /mnt/hd/debian/boot/coffee.bmp
label = Debian

*: I had copy a new file with a short filename from the old ones.


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
multibooting simcox1 Mandriva 4 07-13-2005 11:36 AM
Multibooting How-To RodimusProblem Member Success Stories 3 02-22-2005 06:06 AM
Multibooting different Linuces and lilo Burgin Linux - Newbie 1 04-30-2004 01:53 PM
Problem with Lilo not updating (yes I ran lilo after changing the conf) webguy Linux - General 2 06-24-2001 08:12 PM
Swapping Drive Letters in Windows while multibooting with LILO akfnphx2 Linux - General 2 05-27-2001 08:34 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:17 AM.

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