LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-25-2004, 09:40 PM   #1
bandofmercy
Member
 
Registered: Dec 2002
Distribution: Slack 9
Posts: 84

Rep: Reputation: 15
grub/lilo conflicts in mbr


whoops...
i just finished installing ubuntu linux for the 4th time (i think) in the last 20 hours. everything in installation went fine up to the point of configuring GRUB, which i didn't really want to do because i had a perfectly fine-working lilo dual-booting slack 10 and xp as it was. after getting a bit more used to ubuntu and getting sick of all the problems i was having i ended up scrapping the entire slack and installing ubuntu. my current setup is something like this:

hda1 xp (ntfs)
hdb1 ubuntu /
hdb2 swap
hdb3 mp3s (vfat)
hdb4 empty

looking back, if i'd stopped the ubuntu installer from putting grub on i'd probably have been fine, just had to reboot into slackware and edit my lilo.conf file to include ubuntu--no problem. but instead i decided to go out, do lots of drugs and come back and find a more creative way to fix it, which in this case meant reinstalling the damn os several more times.

i'm not quite familiar exactly what happens when i used to select windows from lilo aside from the fact that it started loading (looks for windows' boot.ini?), so i'm concerned that with all the grub and lilo fighting over things last night i may have messed up something in my mbr and thats why even if i edit lilo.conf to include windows in the menu it fails to load. i'm not sure what this means, but i'm afraid it might lend something to that fear:
Code:
# fdisk /dev/hda

The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

i get a similar error for /dev/hdb, but 77545 cylinders instead of 4765

if windows were completely unsalvageable, i have about 5 gigabytes of data that i'd like to save from it before starting windows over from scratch, but when i try to mount hda1 i get:
Code:
s# modprobe ntfs
ubuntu:/home/eds# mount -t ntfs /dev/hda1 /mnt/win-c
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
       or too many mounted file systems
is this the same problem?

----

after doing a little work with lilo.conf and running lilo i get this message:

Code:
# lilo
Warning: '/proc/partitions' does not match '/dev' directory structure.
    Name change: '/dev/dm-0' -> '/dev/evms/hda1'
Warning: The boot sector and map file are on different disks.

upon booting i have a menu with windows xp as an option but selecting it takes me to a grub console, apparently left over from a previous install. i don't know how to use the grub shell. if i could delete that and generate a new map file for lilo... i don't know, i'm just really overwhelmed right now.

thanks in advance for help! i am digging my own grave!
 
Old 09-25-2004, 10:02 PM   #2
rakriege
Member
 
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
If you have a lilo boot disk, boot off it log on as root and execute lilo
 
Old 09-25-2004, 10:12 PM   #3
bandofmercy
Member
 
Registered: Dec 2002
Distribution: Slack 9
Posts: 84

Original Poster
Rep: Reputation: 15
alls i have is the lilo that came with the os... why would i need a boot disk and how would i get one?
 
Old 09-25-2004, 10:28 PM   #4
rakriege
Member
 
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
by executing lilo from a boot disk your MBR should be repaired....the MBR must be within the 1024 cylnders, upon further reading it appears yours may not be...
 
Old 09-25-2004, 10:33 PM   #5
rakriege
Member
 
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
use a Knopix disk cd/ to your ubuntu hd and edit (VI) your boot file
 
Old 09-25-2004, 11:54 PM   #6
bandofmercy
Member
 
Registered: Dec 2002
Distribution: Slack 9
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by rakriege
by executing lilo from a boot disk your MBR should be repaired....the MBR must be within the 1024 cylnders, upon further reading it appears yours may not be...
how can i access my mbr to see what cylinders it is taking up? i don't know how this would have changed as i never edited my partition tables or did anything other than authorize installing grub and/or lilo on the mbr.

once i find myself a floppy disk i will create a lilo boot disk and try that out i believe.
 
  


Reply



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
grub and lilo on MBR with Windows xp blotch Linux - General 6 11-18-2005 09:57 PM
Floppy Booting without Lilo or Grub MBR crazihouse Linux - Newbie 4 02-24-2005 01:12 AM
lilo / grub in MBR? neilcpp Slackware 4 03-28-2004 10:26 AM
restore mbr (in lilo and grub) abs Slackware 5 02-07-2004 02:39 PM
Does lilo/grub have to be in the MBR? wincen Linux - General 9 06-20-2002 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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