Linux MintThis forum is for the discussion of Linux Mint.
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 playing my mp3 files. When banshe crashed. I restarted the pc, and I'm unable to mount the partition.
When I use mount /dev/sda2 /storage I get:
Code:
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
When I do dmesg | tail:
Code:
[177757.276624] sd 2:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[177757.276629] sd 2:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]
[177757.276635] Descriptor sense data with sense descriptors (in hex):
[177757.276639] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[177757.276651] 2e e8 60 20
[177757.276656] sd 2:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed
[177757.276663] sd 2:0:0:0: [sda] CDB: Read(10): 28 00 2e e8 60 20 00 00 08 00
[177757.276675] end_request: I/O error, dev sda, sector 786980896
[177757.276683] Buffer I/O error on device sda2, logical block 83886084
[177757.276713] ata3: EH complete
When I do fsck:
Code:
fsck from util-linux-ng 2.17.2
fsck.jfs version 1.1.12, 24-Aug-2007
processing started: 1/4/2012 18.1.51
Using default parameter: -p
The current device is: /dev/sda2
Block size in bytes: 4096
Filesystem size in blocks: 229703936
**Phase 0 - Replay Journal Log
ujfs_rw_diskblocks: read 0 of 4096 bytes at offset 343597400064
logredo failed (rc=-242). fsck continuing.
**Phase 1 - Check Blocks, Files/Directories, and Directory Entries
ujfs_rw_diskblocks: read 0 of 16384 bytes at offset 343597400064
Unrecoverable error reading M from /dev/sda2. CANNOT CONTINUE.
Can you reformat the partition? If your drive is really fine (and the controller) that should fix the problem. (Of course, the old data will get wiped.)
Sun of a bees wax. That is what I am trying to prevent. This would be the third time I lost data, because of similar issues. What file system would be the best for my back up partition. I basicly use my mint pc as a file server. I currently have that partition as jfs and the partition with mint is ext3.
sudo badblocks -nvs /dev/sda2
Checking for bad blocks in non-destructive read-write mode
From block 0 to 918815743
Checking for bad blocks (non-destructive read-write test)
Testing with random pattern: 335544320one, 28:35:53 elapsed
335544336one, 28:36:24 elapsed
335544337one, 28:36:40 elapsed
335544338one, 28:36:55 elapsed
335544339one, 28:37:11 elapsed
done
Pass completed, 5 bad blocks found.
Would the program mark the blocks so nothing will be written to it? I received the same error before and after badblocks.
dumpe2fs 1.41.14 (22-Dec-2010)
dumpe2fs: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda1
Couldn't find valid filesystem superblock.
Output of /dev/sda2 (one that has issue)
Code:
dumpe2fs 1.41.14 (22-Dec-2010)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sda2
Couldn't find valid filesystem superblock
sudo fsck -f -b 32768 /dev/sda2
fsck from util-linux-ng 2.17.2
fsck.jfs version 1.1.12, 24-Aug-2007
processing started: 1/13/2012 2.31.55
fsck.jfs: invalid option -- 'b'
Usage: fsck.jfs [-afnpvV] [-j journal_device] [--omit_journal_replay] [--replay_journal_only] device
Emergency help:
-a Automatic repair.
-f Force check even if file system is marked clean.
-j journal_device Specify external journal device.
-n Check read only, make no changes to the file system.
-p Automatic repair.
-v Be verbose.
-V Print version information only.
--omit_journal_replay Omit transaction log replay.
--replay_journal_only Only replay the transaction log.
so I remove the -b and get:
Code:
fsck from util-linux-ng 2.17.2
fsck.jfs version 1.1.12, 24-Aug-2007
processing started: 1/13/2012 2.32.9
Error: Device not specified or command format error
Usage: fsck.jfs [-afnpvV] [-j journal_device] [--omit_journal_replay] [--replay_journal_only] device
Emergency help:
-a Automatic repair.
-f Force check even if file system is marked clean.
-j journal_device Specify external journal device.
-n Check read only, make no changes to the file system.
-p Automatic repair.
-v Be verbose.
-V Print version information only.
--omit_journal_replay Omit transaction log replay.
--replay_journal_only Only replay the transaction log.
Well since no one can help, and I can't find anything online that will work. I am going to reformat that partition. Should I do jfs again. Or is another file system better like ReiserFS.
Well since no one can help, and I can't find anything online that will work. I am going to reformat that partition. Should I do jfs again. Or is another file system better like ReiserFS.
Any specific reason why you are doing something other than EXT4?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.