LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-24-2007, 07:29 AM   #1
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Slackware's LILO was overwritten by Vector's LILO


hi just would like to ask, in my Slackware's LILO, i have the following (and THIS IS My Default Loader)

Windows
Slackware
VectorLinux
Zenwalk 4
OpenBSD

when i was installing vector 5.8, i missed that it's LILO should be placed in the root partition and NOT in the MBR... but i chosed the MBR option SO my slack's LILO, was overwritten by vector's LILO... NOW i can't see my slack's LILO..

hmmm is it erased? ? how can i retrieve my slack's LILO again? thanks


i have tried chroot (using my slack cd 1 ) though i still saw my slack's partition and lilo.conf BUT i can't anymore retrieve my slack's LILO... please help
 
Old 02-24-2007, 07:32 AM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
If you chroot to the Slack partition and run the command lilo it should rewrite it to the MBR.
 
Old 02-24-2007, 07:39 AM   #3
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
yup i did it.. BUT the problem is.. everytime i mount slack's partitions .. it cant read the /boot .. in short.. every time i mount them.. it shows no contents BUT when i check "df -h" it shows space usage ...

my slack's partitions:

/boot
/tmp
/usr
/var
/home - its ok even its not mounted (For the chroot activity)
/swap
/
 
Old 02-24-2007, 07:55 AM   #4
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Ok, easier solution. Boot into Vector, edit it's lilo.conf to show Slack. Run lilo. Reboot into Slack and rerun lilo from there.
 
Old 02-24-2007, 08:00 AM   #5
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by masonm
Ok, easier solution. Boot into Vector, edit it's lilo.conf to show Slack. Run lilo. Reboot into Slack and rerun lilo from there.
sir IF im getting it right, meaning I will MAKE vector the main MBR? and place slack on it? ok.. since i have listed 2 versions of vector
this 2 were detected in the LILO config section while reading vector 5.8,

" where would u like to install your lilo? "

/dev/hdc2 -> vector 5.8
/dev/hdc12 -> vector 5.1 SOHO

would IT be better IF i will config lilo in my 5.1 version (which i have been using for almost a year)

OR would u suggest that il use 5.8 version ? (that i just installed this day)

thank you very much for the help
 
Old 02-24-2007, 08:24 AM   #6
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Install the lilo in Slack's Root (not MBR) from the Slackware Login,

in the vector's lilo.conf do other=/dev/<place where slack is installed> and install the vector lilo to the MBR. Chain Loading is much less troublesome beleive me. Don't try to use a common lilo.

But I really hope you try and manage to use a common lilo... the way I told is a really poor HACK.
 
Old 02-24-2007, 08:36 AM   #7
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by duryodhan
Install the lilo in Slack's Root (not MBR) from the Slackware Login,

in the vector's lilo.conf do other=/dev/<place where slack is installed> and install the vector lilo to the MBR. Chain Loading is much less troublesome beleive me. Don't try to use a common lilo.

But I really hope you try and manage to use a common lilo... the way I told is a really poor HACK.

the bad news is i cant anymore BOOT slackware.. after the CHROOT attempt.. i tried editing vector's lilo thru the CD.. placing its lilo on ROOT instead of the MBR..
then after doing so.. after a reboot..

i cant anymore load any distro even my windows.. (

digits such this appears after the BIOS :

A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9
A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9
A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9
A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9
A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9 A9

(though i have not tried MASONM's advice ) im still in the office now
 
Old 02-24-2007, 09:30 AM   #8
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
hello,

boot with slackware CD and run
Code:
liloconfig
and install lilo on MBR

Last edited by ygloo; 02-24-2007 at 09:37 AM.
 
Old 02-25-2007, 07:41 AM   #9
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
thanks to MASONM.. followed his advice.. now im able to boot my winXX and newly installed VL 5.8 (but i think my modem /dev/ttyS0 was not configured)

note:

i think that i messed up my /boot (slack)..even if i addded slack in my vector's MBR.. errors/ warnings are shown in the output of /sbin/lilo -v -v .. il update this thread once i have copied the saved output in my text file.. (just forgot to copy it in my usb flash drive)


in short.. i cant anymore boot my slackware.. but il still search on this one..
 
Old 02-26-2007, 03:59 AM   #10
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
here is the output when i edited vector 5.8 lilo.conf :

Quote:
vector:/~
root:# /sbin/lilo -v -v
LILO version 22.7.2.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 07-Jul-2006 and compiled at 14:14:35 on Jul 26 2006.

Warning: LBA32 addressing assumed
raid_setup returns offset = 00000000 ndisk = 0
BIOS VolumeID Device
Reading boot sector from /dev/hda
pf_hard_disk_scan: ndevs=2
0300 2E1B2E1A /dev/hda
1600 542D2676 /dev/hdc
device codes (user assigned pf) = 0
device codes (user assigned) = 0
device codes (BIOS assigned) = 3
device codes (canonical) = 3
mode = 0x03, columns = 80, rows = 25, page = 0
Using BITMAP secondary loader
Calling map_insert_data
Secondary loader: 19 sectors (0x3800 dataend).
Warning: The boot sector and map file are on different disks.
bios_boot = 0x80 bios_map = 0x81 map==boot = 0 map S/N: 542D2676
Mapping bitmap file /boot/bitmap/boot.bmp -> boot-lava.bmp
Calling map_insert_file
Bitmap: 603 sectors.
BIOS data check was okay on the last boot

Boot other: /dev/hda1, on /dev/hda, loader CHAIN
Mapped 6 (4+1+1) sectors.
Added Win

Boot image: /boot/vmlinuz -> vmlinuz-2.6.18.5
Setup length is 15 sectors.
Mapped 4801 sectors.
Added linux *

Boot image: /boot/vmlinuz -> vmlinuz-2.6.18.5
Setup length is 15 sectors.
Mapped 4801 sectors.
Added linux-tui

Boot image: /boot/vmlinuz -> vmlinuz-2.6.18.5
Setup length is 15 sectors.
Mapped 4801 sectors.
Added linux-gui

Boot image: /boot/tamu/vmlinuz-linux-hdc2
Setup length is 14 sectors.
Mapped 3829 sectors.
Mapping RAM disk /boot/tamu/initrd-linux-hdc2
RAM disk: 1068 sectors.
Added ZWalk4.2

Boot image: /boot/tamu/vmlinuz-vector-hdc12
Setup length is 15 sectors.
Mapped 4063 sectors.
Added vector5.1

BIOS VolumeID Device
80 2E1B2E1A 0300
81 542D2676 1600
Writing boot sector.
/boot/boot.0300 exists - no boot sector backup copy made.
Map file size: 452608 bytes.
RAID device mask 0x0000
2 warnings were issued.

 
  


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
Adding Sabayon to Slackware's lilo config file. drkmessiah Linux - General 3 11-23-2006 10:13 AM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 04:50 PM
Made a bootdisk with RedHat 7.1 to boot: Gave me SYSLINUX, not LILO:Want to use LILO Colonel Panic Linux - Software 0 08-17-2001 06:21 PM

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

All times are GMT -5. The time now is 09:38 PM.

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