LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2008, 08:11 PM   #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
recreating LILO


my current problem is.. i have 2 HD Primary master Windows and 2ndary Master is LINUX. . LILO as the loader. . the problem started when i changed my motherboard battery; all of a sudden, windows does not load anymore but LINUX does. . everytime i choose windows it just hangs. .

now i saw something in the net which enables to "re enable the loader"

in the CLI i should type /sbin/lilo -u /dev/hda

then run it again /sbin/lilo

to be able to "refresh" my boot loader..

any comments?
 
Old 09-21-2008, 09:03 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

You should 'man lilo'. The '-u' switch;

Code:
excerpt from 'man lilo';
 -u [device-name]
              Uninstall lilo by copying the saved boot sector back.  The  '-s'
              and '-C' switches may be used with this option.  The device-name
              is optional.  A time-stamp is checked.
If you want to repair the M$ bootloader then use the recovery console and issue 'fdisk /mbr' or 'fixboot'. The choice will depend on the M$ OS.

Code:
~#vi lilo.conf                       #edit lilo.conf, if need be
~#lilo -v -t -b /dev/your_device     #sda, hda this will only test 
~#lilo -v -b /dev/your_device        #this will write MBR to your_device
The above code would be a way of repairing the lilo bootloader.

As I said 'man lilo'.
 
Old 09-21-2008, 09:10 PM   #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
Quote:
Originally Posted by onebuck View Post
Hi,

You should 'man lilo'. The '-u' switch;

Code:
excerpt from 'man lilo';
 -u [device-name]
              Uninstall lilo by copying the saved boot sector back.  The  '-s'
              and '-C' switches may be used with this option.  The device-name
              is optional.  A time-stamp is checked.
If you want to repair the M$ bootloader then use the recovery console and issue 'fdisk /mbr' or 'fixboot'. The choice will depend on the M$ OS.

Code:
~#vi lilo.conf                       #edit lilo.conf, if need be
~#lilo -v -t -b /dev/your_device     #sda, hda this will only test 
~#lilo -v -b /dev/your_device        #this will write MBR to your_device
The above code would be a way of repairing the lilo bootloader.

As I said 'man lilo'.
hello sir, actually iv already checked the man lilo that's why i have knew the meaning of "-u" from the site i visited. .

and i cannot anymore access my M$ OS . .
 
Old 09-22-2008, 07:52 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Post your '/etc/lilo.conf' fle.
 
Old 09-23-2008, 08:01 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
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
append = "=ide-scsi"
default = linux
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
bitmap = /boot/bitmap/boot.bmp
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769


# End LILO global section
# Partition 1 : DOS/Windows
other = /dev/hda1
label = Windows
table = /dev/hda
# Partition 2: Linux GUI mode
image = /boot/vmlinuz
root = /dev/hdc3
label = linux
append = " "
read-only

# Partition 3: Linux TUI mode
image = /boot/vmlinuz
root = /dev/hdc3
label = linux-tui
append = "2  "
read-only

# Partition 4: Linux GUI mode
image = /boot/vmlinuz
root = /dev/hdc3
label = linux-gui
append = "4  "
read-only

# Partition 5: Linux
#image = /boot/tamu/vmlinuz-linux-hdc2
#root = /dev/hdc2
#label = ZW4.6.1 
#read-only
#initrd = /boot/tamu/initrd-linux-hdc2

# Partition 6: Linux
image = /boot/tamu/vmlinuz-vector-hdc12
root = /dev/hdc12
label = Vector5.1
read-only

# Partition 7 : Linux
#other = /dev/hdc5
#label = Slackware

# Partition 8: OpenBSD
other = /dev/hdc1
label = OpenBSD

# Slackware
other = /dev/hdc5
label = Slack12.0

# Zenwalk
other = /dev/hdc2
label = Zenwalk4.6.1
 
Old 09-23-2008, 08:24 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Changing the batteries may have made changes in your bios settings. Make sure that the hard drives are detected the same way as they were before.
It may not be a LILO issue. Also, do you have a quick boot menu to choose the device to boot up from?
 
Old 09-23-2008, 08:30 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 jschiwal View Post
Changing the batteries may have made changes in your bios settings. Make sure that the hard drives are detected the same way as they were before.
It may not be a LILO issue. Also, do you have a quick boot menu to choose the device to boot up from?

yes sir the 2HD are dtected in the bios..

what do u mean by ur 2nd question? (about the quick boot)
 
Old 09-23-2008, 09:08 AM   #8
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
update :

i have "re install of lilo" in my VL's vasm .. but still windows does not boot.

steps:

1. chose install LILO -- actually it has 2 choices the othe one is .. MS-SYS (choose this IF grub is still on ur MBR when u have already installed LILO ) -- since i dont have grub.. i did not chose this one.

2. LILO asked where i would like to install the MBR, /hda(windows detected), or /hdc(linux HD).. of course i chosed hda...

LILO installed with the default values. ..

3. instead running the new LILO.conf.. i just copied the recent LILO.conf im using (wherein additional distros are added).. and that's the one i run..
 
Old 09-24-2008, 08:09 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
UPDATE :::

1. did a fixmbr on windows recovery . .. done--no errors seen..

2. but still.. it does not boot. . .
 
  


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
xfce: recreating my default session xri Linux - Desktop 2 06-26-2007 07:49 PM
Recreating /home (Xubuntu) Ishkabibble Linux - Newbie 1 10-19-2006 03:32 PM
Recreating RPMs from their installed components jdaniels73 Linux - Software 1 07-21-2006 01:31 PM
problem recreating xorg.conf rconan Debian 6 05-08-2006 07:25 PM
Recreating boot record/LILO hassles Malibyte Linux - General 2 03-08-2003 12:35 PM


All times are GMT -5. The time now is 09:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration