LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-01-2003, 12:48 AM   #1
vinay_r99
LQ Newbie
 
Registered: May 2002
Location: Bangalore
Distribution: Linux
Posts: 20

Rep: Reputation: 0
/boot partition corrputed


Hi All,

I have a dual boot system with two hard drives... on the first drive (hda) i have win2k. And the second drive i hv (hdc) Redhat linux 7.2 both was working fine ... no problems was there...

Now the problem is my linux boot partition has corrputed when i select the Redhat linux tooo boot it drops to be a grub shell prompt.... I have a boot floppy when is boot through floppy its boot fines ..... and i get a message say /boot mount can't be mounted ... i guess coz the /boot partition has corrpution .... here is the /var/log/messages i hv when i boot through flpoppy so tht u guys can help me to reslove the problem... Is there a way to put back the /boot parition working fine ...

this is the error i get when i boot through floppy
==============================================

Feb 28 21:54:42 dpen mount: mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
==============================================

Thanx in advance ......

Vinay R
 
Old 03-01-2003, 01:15 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Did you do anything to it? Did you add new hardware? I'm having a bit of trouble understanding you, however I'm guessing you are saying you can boot up with a boot floppy. If that is so, try booting all the way up, and run:
fdisk -l

Watch to see if your partitions have changed. Try mounting the /boot partititon at a temporary location, maybe /mnt/boot

If you didn't have much there to recover, and you've got a working kernel (on your boot floppy) you could simply recreate the partition, copy the boot info back over to the newly recreated partition, and go.

Or, you can always build a new kernel, and do the same thing.

Cool
 
Old 03-02-2003, 10:39 PM   #3
vinay_r99
LQ Newbie
 
Registered: May 2002
Location: Bangalore
Distribution: Linux
Posts: 20

Original Poster
Rep: Reputation: 0
hi,

I have checked i have a /boot partition but .. nothing is there in it other than grub driectory & kernel.h files thats it ...

so u suggest to copy the boot floppy contain to the /boot partition right ??? or else build a new kernel ????? plz let me know ...
 
Old 03-03-2003, 04:33 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, copy the kernel image from the boot floppy or build a new kernel. Personally never built a boot floppy, so I wouldn't know exactly what other files are and aren't there, so if you see a System.map file on the floppy too, copy that to the /boot partition as well. Your kernel will probably be named either vmlinuz or bzImage and might be followed with a -kernelversion or something like that.



You might be better off building a new kernel, however, that's a bit more work than copying files from a floppy, so give that a run first.

Cool
 
Old 03-03-2003, 10:25 PM   #5
vinay_r99
LQ Newbie
 
Registered: May 2002
Location: Bangalore
Distribution: Linux
Posts: 20

Original Poster
Rep: Reputation: 0
Now i am not able to boot through floppy this is the message i get ...
==============================================
mounting /proc filesystem
creating root devices
mounting root filesystem
VFS: Can't find ext3 filesystem on dev ide1(22,2)
mount: error 22 mounting ext3
pivotroot: pivot.root (/sysroot,/sysroot/initrd) failed:2
Freeing unused kernel memory: 220k freed
kernel panic: No init found. Try passing init=option to kernel.
==============================================
can u plz help on this .... as i need very badly to boot coz all my data is in it.....

Rgds,
Vinay R
 
Old 03-03-2003, 11:26 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
It looks like data is corrupting more and more. At this point, you should look into using a rescue disc (maybe your install CD can be used as one, if not, look into using knoppix from google.com/linux ) and getting info off the drive. After recovering what you must have, run an fsck on the drive:
fsck /dev/hdx
You might not be lucky enough to get anything at this point if data is corrupting it that bad. Good Luck!

Cool
 
  


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
Corrputed root partition? dave111 Linux - Software 1 11-14-2004 11:02 AM
howto boot Suse 9.1 from external usb drive through bios-accessable boot partition McHenner Linux - Hardware 2 09-30-2004 07:27 AM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 09:46 AM
GRUB using /boot partition for multiple Linux/Windows boot? cpv204 Linux - Newbie 7 04-01-2003 03:54 PM
creating new partition before boot partition?? rose_bud4201 Linux - General 17 02-07-2003 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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