Jump to content

unable to restore lilo


nobody
 Share

Recommended Posts

Lo,

 

I'm having some trouble getting my bootloader back so i can swich between windows an mandrake 10.

 

I had mandrake installed, and now i just installed windows xp on an other partition...

 

Now i cant ge the bootloader back with the rescue option and re install bootloader, and an update doen't work either.

 

When i try to reinstall bootloader i first get (while mounting partitions) mount:

wrong fs type, bad aption, bad superblock on /dev/hda3

... my boot partition (i can still mount it via console), the it asks me if i want to reinstall bootloader and when i agree it says:

Fatal open /boot/message: no such file or directory

 

When i try to update i get similar error:

 

First it takes a while when he is checking /dev/hda5 my root partition, then he reaches the bootloader and he says:

 And error occurred no kernel installed.

I press ok and select lil graphical to boot on /dev/hda2 then it says:

 An error occured lilo failed: Warning:'/pro/partitions' does not exist, disk scan bypassed Fatal: opeen /boot/message: no such file or directory

 

Anyone any suggestions? I need to get it back running soon, some deadlines comming up :o :wall:

 

/etc/lilo.config

/dev/hda5  /   ext2 errors=remount-ro,,noatime 0 1
/dev/hda3  /boot  ex2 ...
...
/dev/hda1 /mnt/win_c vfat
/dev/hda2 /mnt/win_d ntfs
/dev/hda6 swap swap sw

 

there are to windows partitions because dell seems to do this one of tem is very small 30mb or so

 

lilo.conf

boot=/dev/hd6 ----> shoudnt this be /dev/hda3
map=/boot/map
...
message=/boot/messag --->problem line
....
image=/boot/vmlinuz
           label='linux'
           root=/dev/hda5
....

 

 

if i try to mount hda3 manually it is complaining about a bad super block

 

 

when i try to mount /dev/hda3 it says i can't guess file system so i do

 

mount -t ext2 /dev/hda3 /mnt/hda3

 

and that gives: zrong fs type, bad option, bad superblock on /dev/hda3, or tou many mounted file systems (aren't you trying to mount en extended partition, isntead of some logical partition inside?)

 

adress of my /dev/hda3 has changed?

Edited by nobody
Link to comment
Share on other sites

Here's what we've found so far in #musb:

 

The partition numbers are correct.

 

boot=/dev/hd6 ----> shoudnt this be /dev/hda3

 

This should actually (on my system, someone else jump in if this isn't correct) be

boot=/dev/hda

 

All of the partitions mount correctly except /dev/hda3 (/boot) which gives an error about guessing the file system.

 

Right now, I'm having him reboot to a livecd and we'll see if we can fix it from there.

Link to comment
Share on other sites

Ok, here's an update:

 

Booted to MandrakeMove, still cannot mount /dev/hda3

 

Tried to re-run lilo, says file not found. I'm thinking that's due to the fact that all of the kernel information is on the partition that can't be mounted...

 

Anyone else have any suggestions?

Link to comment
Share on other sites

LZ... did you chroot to the normal /boot ??

 

You need to do this to just run lilo and let it fix...

another way if you have access to the /etc/lilo.conf is top specifiy the file ... but it needs to have the same mounts as normal.

Link to comment
Share on other sites

We have access to /etc/lilo.conf The top couple of lines are posted above.

 

Do you need to chroot into /boot? In rescue mode (And in MandrakeMove) we mounted the partitions under /mnt then chrooted there; but /dev/hda3 (/boot) would not mount.

Link to comment
Share on other sites

To do it that way you'd chroot into / but /boot would need to be mounted for lilo to work!

 

It sounds like the partitions might have been messed about.

perhaps one deleted ? and the numbers shuffled......

(maybe the hidden Dell partition ????)

Link to comment
Share on other sites

To do it that way you'd chroot into / but /boot would need to be mounted for lilo to work!

 

It sounds like the partitions might have been messed about.

perhaps one deleted ? and the numbers shuffled......

(maybe the hidden Dell partition ????)

i was able to mount it (/dev/hda3) and all images en maps where there, but now i cant mount anymore :(

Link to comment
Share on other sites

:unsure:

I'd say you need to know what the partition table is

:unsure:

 

fdisk -l

 

or if you have parted installed (on mandrakemove?);

parted -i

then;

print

 

If win boots get some sort of shareware app or something that'll tell you your partition table. Until you know what it is and the sizes, etc....you're just shooting in the dark. Do you have a win98 floppy? Use fdisk to list the p/t.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...