PDA

View Full Version : Disk not mounting anymore



sho.gun
04-03-2005, 08:45 PM
I've had a linux machine running as a fileserver, it's actually a clarkconnect gateway/firewall machine and I've installed samba on it. It's been working fine for over a year until I found out tonight that I wasn't able to access any of my shares on it. It was actually a specific folder shared from a disk that wasn't working. I thought "hmm i'll just reboot and see what happens". Now the entire disk was unable to be mounted with the following error:



wrong fs type, bad option, bad superblock on /dev/hdc1, or too many mounted file systems


Craps!

fdisk shows:



[root@servicore data]# fdisk -l /dev/hdc1

Disk /dev/hdc1: 163.9 GB, 163921572864 bytes
255 heads, 63 sectors/track, 19928 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdc1 doesn't contain a valid partition table
[root@servicore data]#


Arg no partition table?! The disk was formatted with the ext3 filesystem. Is there a simple fix? I admit I'm not a proficient linux user and I'm just hoping that my data isn't lost...

Help :(

doolittle
04-03-2005, 09:05 PM
thats a pretty standard disk failure error, looks gone to me dude. you could replace the cable. or pray thats its the mobo.

shocky123
04-03-2005, 09:06 PM
I have had a similar issue with mounting a floppy disk, granted I dont know the fix because I havent looked into it yet... but I will be fixing the issue tomorrow morning on a machine at work.
So when I figure it out, I'll post back the solution.

~Kyle

doolittle
04-04-2005, 08:40 PM
do you have knoppix? this is where this os realy comes in handy, troubleshooting critical hardware and software issues.

sho.gun
04-05-2005, 11:35 PM
do you have knoppix? this is where this os realy comes in handy, troubleshooting critical hardware and software issues.

I can get knoppix...

I guess the problem is that for some reason I've lost the partition table to my disk. Now I've stumbled upon this tool here http://www.stud.uni-hannover.de/user/76201/gpart/ but I haven't figured out how to use it yet.

Does knoppix have a partition guesser tool in it?

edit:

Okay, now this is just weird. Out of curiosity I was checking on my other drive (hda) and for hda1, hda2, etc it says it doesn't have a partition table. I guess this makes sense, they're partitions... :P

So I'm back at square one, fdisk -l /dev/hdc shows:



[root@servicore root]# fdisk -l /dev/hdc

Disk /dev/hdc: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 19929 160079661 83 Linux
[root@servicore root]#


and when I try to mount, I still get the following:


[root@servicore root]# mount -t ext3 /dev/hdc1 /data
mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
or too many mounted file systems
[root@servicore root]#


any suggestions anyone? This drive has all the pictures that I've taken over the years and I'd hate to find out they're gone.

doolittle
04-06-2005, 01:09 AM
Now both drives arent reading? wierd and its getting harder to troubleshoot. if both drives arent reading, the odds of both of them going are very slim. so i would start with replacing the power supply, then ram, then cpu. did you check the hd ribbons? could be that, i doubt it but worth a try. you could plug the drive into another machine boot to knoppix and take a look and see if it responds.

http://csociety-ftp.ecn.purdue.edu/pub/knoppix/ look at the packages.txt thats everything thats included with knoppix. besides the OS

btw. im sure you dont want to hear this, but huhhum this is the reason for back ups

sho.gun
04-08-2005, 07:03 PM
I figure I'd post what happened:

I took the drive to work and hooked it up to a Fedora Core 3 machine we have there. I was able to mount it but 1 folder containing all my documents, pictures, etc was giving Input/Output errors whenever it was accessed. I was able to share it over samba and grab my music and tv eps off of it, but that one folder seems to be gone.

Ran e2fsck with the -c option and left it overnight, today I came to the office and say that it had a bunch of bad blocks. Anyway, after all that I don't even see the folder anymore so I guess all my crap is gone. :(

doolittle
04-08-2005, 07:10 PM
ouch, well at least yo got some of the stuff off of it. sorry to hear about your loss. :neartears been there.

shocky123
04-11-2005, 10:02 AM
sounds like you may need to flush the disk and start over... if you have bad blocks and everything, the last hting you want is to keep them there. do a hardcore format and repartition the drive. hopefully this should take care of those blocks. sorry bout the drive.

anyways.. to repost how i fixed my problem... i had to remount it specifying some weird options that told the system what type of filesystem the drive was to be mounted as. was weird, but it worked for me...

good luck,

~Kyle