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.
I was running bittorent on my external HDD (which had ext3).
Suddenlly the bittorrent client gave a write error, and all the files in the external HDD vanished.
How should I do a disk check ?
Also, what is the best filesystem for an external HDD ?
# fsck.ext3 -r -v /dev/sdb
e2fsck 1.38 (30-Jun-2005)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext3: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
Use the device for the partition, and not the disk.
Try /dev/sdb1 instead.
If you still get that error, then look at the output of "tune2fs -l /dev/sdb1". It may provide information on the locations of the alternate superblocks.
Use the device for the partition, and not the disk.
Try /dev/sdb1 instead.
If you still get that error, then look at the output of "tune2fs -l /dev/sdb1". It may provide information on the locations of the alternate superblocks.
Yup, that did the trick.
However there were thousands of errors. I got tired of presssing y after a while (it would not accept the a option).
I reformatted it, but now it seems the HDD has died
now it seems the HDD has died
... this is usually the case.
Quote:
Originally Posted by AceofSpades19
the best format for
... "best" is not a good descriptor as it is just sooo subjective. B'sides, you have based your assessment on only one metric.
eg. fat32 is a poor choice as it is non-journaling and doesn't preserve permissions - it also responds poorly to unclean disconnections, which are more likely in an external drive - these things may outweigh the desire for portability, especially if the client is happy to install alternative fs support to non-linux machines.
If the drive needs to store very large files, or needs to be able to handle a great number of small files rapidly, the equation changes again.
See how the inclusion of other metrics changes your assessment. There was simply not enough information to make a recommendation.
Further, OP's issue was about a bad drive... using a different fs probably wouldn't have helped. It fact, ext3 at least offered some hope of recovering the lost data. (ext2 would, maybe, have been easier in this regard.)
You're normally more thoughtful than this... had a rough night?
I was running bittorent on my external HDD (which had ext3).
Suddenlly the bittorrent client gave a write error, and all the files in the external HDD vanished.
How should I do a disk check ?
Also, what is the best filesystem for an external HDD ?
He asked what the best filesystem was for externel harddrives, I'm used to flashdrives that have to be read on windows and linux machines
Yup, that did the trick.
However there were thousands of errors. I got tired of presssing y after a while (it would not accept the a option).
I reformatted it, but now it seems the HDD has died
If you add the -y flag you won't have to hit yes each time. If you tried to fsck the device "/dev/sda" it could cause serious filesystem damage. As could fscking while mounted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.