Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Filesystem Corruption?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mark_p
n00b
n00b


Joined: 03 Nov 2002
Posts: 24

PostPosted: Fri Jan 17, 2003 12:57 pm    Post subject: Filesystem Corruption? Reply with quote

Hi,
I'm not too sure if this is the best place to post this (I sure hope its not the hardware).
Yesterday I nuked an old fat32 partition on my hard drive using fdisk. I just destroyed the partition and then created a new linux partition. Then I created an ext3 filesystem with the following command
Code:
mkfs.ext3 -j /dev/hdc1
.
Everything seemed fine so I went ahead and moved all my music (MP3s and FLACS) onto that partition.
This morning when I turn on my computer I can't mount that partition! It just says it can't read the superblock. Nor can fsck read the superblock.
Just to make sure that I had the correct device etc. I tried
Code:
dd if=/dev/hdc1 of=tmp.file
and killed it when the file got to about 200MB. I quickly loaded the file into vim and had a glance through it and sure enough I could see some of the names the songs and artists - they were probably the playlist files.
Is there anyway I can recover this filesystem? I've tried using debugfs and recover but they both complain that they can't open the filesystem. It looks like that these tools are useful for undeleting files and not for recovering filesystems.
I'm pretty sure its not a hardware related problem (I've never had any problems with this disk before and there are no errors in the system log).
The output of fdisk is

Code:

Disk /dev/hdc: 46.1 GB, 46115758080 bytes
255 heads, 63 sectors/track, 5606 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1             1      2295  18434587   83  Linux
/dev/hdc2          2296      4207  15358140   83  Linux
/dev/hdc3          4208      5542  10723387+  83  Linux
/dev/hdc4          5543      5606    514080    f  Win95 Ext'd (LBA)
/dev/hdc5          5543      5606    514048+  82  Linux swap


And
Code:
 mount -t ext3 /dev/hdc1 /audio
gives
Code:
 
mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
       or too many mounted file systems
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Fri Jan 17, 2003 1:03 pm    Post subject: Reply with quote

Force it to mount as ext3.

mount -t ext3 /dev/hdc1 /audio

It is common practice to zero out FAT and NTFS partitions before reformatting.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum