LinuxQuestions.org
Register a domain and help support LQ
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 10-14-2008, 12:30 AM   #16
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,977

Rep: Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771Reputation: 771
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, 04:19 AM   #17
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,049
Blog Entries: 52

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:
Code:
# 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-2.6.24.5-smp
  initrd = /boot/initrd.gz
  root = /dev/sda2
  label = Slackware_G
  read-only
image = /boot/vmlinuz
  root = /dev/sda2
  label = Slackware_H
  read-only
# Linux bootable partition config ends
other = /dev/sda5
  label = Ubuntu
 
Old 10-14-2008, 07:20 PM   #18
kcynice
Member
 
Registered: Sep 2008
Posts: 94

Original Poster
Rep: Reputation: 16
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
read-only

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


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


All times are GMT -5. The time now is 02:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration