Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mandrake 10.1 Community on athlon XP2000+
Posts: 24
Rep:
Bad superblock when mounting hard drive...
Hi there
i was writing data to one of my hard drives and the program crashed (amule). i rebooted my machine as it was running slow and now it wont mount my hard drive..... i get an error message saying
"unable to mount /dev/hdf1 : Can't read superblock"
now as im a bit of a n00b when it comes to linux i dont know what to do... on some of the other threads ive searched it said to do a file system check, but when im in a console it says "fsck :command not found"
this is all on Mandrake 10.1 community edition btw.
any help that can be given would be great... would like to get the 150gb of data back...
You have corruptions on your disk, the best way to check it is by booting into your mandrake cd (install disk) and using the utilities on there to check it. So, once you have booted the mandrake cd, press CTRL+ALT+F2 (F1 - F6 are your text mode terminals and should all be useable, I just always go for F2, or F6 if F2 is not available). From there you should be able to log in as root, type in "man fsck" and get the manual page. If you can't get the man page then just try "fsck" and you should see a "usage" message.
First of all you need to know or find out where your corrupt partition(s) is(are), run something like "fsck -y /dev/hda1" (where hda1 is the first partition of hda (usually "C" in windows) and -y means fix automatically (generally safe)). Try different combinations of hda, hdb, hdc and hdd - hda# is the most likely though (primary master disk).
Bad superblocks can be recovered but I have only ever had to do that with "ufs" on solaris machines, you most likely use ext2, ext3 or reiserfs.
Distribution: Mandrake 10.1 Community on athlon XP2000+
Posts: 24
Original Poster
Rep:
right... managed to run fsck through /sbin/fsck... and this is the output i got..
[code[
/sbin/fsck /dev/hdf1
fsck 1.35 (28-Feb-2004)
fsck: fsck.vfat: not found
/sbin/fsck: Error 2 while executing fsck.vfat for /dev/hdf1[/code]
can anyone tell me what this means? is it saying that there is no recognised file system on there? and if so is there ay way to recover it or am i fooked?
Ah, fsck can't scan a fat32 filesystem, you will need to scan it under windows (using scandisk). If windows isn't installed then you can always plop your hard disk into a machine that does run windows, then scan it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.