Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
jfs_fsck ends with fatal error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 457
Location: Belgium

PostPosted: Tue Apr 16, 2019 6:57 pm    Post subject: jfs_fsck ends with fatal error Reply with quote

Since a day or 2 I cannot access /dev/sdb1 which has a jfs filesystem. No idea what happened, I didn't have a power fail, everything was closed before I shut down etc. It isn't a very important disk, more used like for downloads that I want to check out before I organise them, some spare copies of important files (that are backed up elsewhere) etc. But there is rather a lot of stuff on it and I'd like to check what is on it before I just toss the 1.4GB disk. So I did a jfs_fsck and got this result:
Code:
desktop /home/ikke # jfs_fsck -v -f /dev/sdb1
jfs_fsck version 1.1.15, 04-Mar-2011
processing started: 4/16/2019 21:51:41
The current device is:  /dev/sdb1
Open(...READ/WRITE EXCLUSIVE...) returned rc = 0
Primary superblock is valid.
The type of file system for the device is JFS.
Block size in bytes:  4096
Filesystem size in blocks:  366284000
**Phase 0 - Replay Journal Log
LOGREDO:  Log record for Sync Point at:    0x04317ae0
LOGREDO:  Beginning to update the Inode Allocation Map.
ujfs_rw_diskblocks: read 0 of 4096 bytes at offset 1391569969152
LOGREDO:   Read Inode Alloc Map data extents failed.
LOGREDO:  Write Inode Alloc Map control page failed in UpdateMaps().
LOGREDO:  Unable to update map(s).
logredo failed (rc=-236).  fsck continuing.
**Phase 1 - Check Blocks, Files/Directories, and  Directory Entries
ujfs_rw_diskblocks: read 0 of 4096 bytes at offset 1391569969152
Unrecoverable error reading M from /dev/sdb1.  CANNOT CONTINUE.
Fatal error (-10021,30) accessing the filesystem (1,1391569969152,4096,0).
processing terminated:  4/16/2019 21:52:06  with return code: -10021  exit code: 8.


Any idea how I can make visible what is left? The error seems to be rather far into the disk.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5714

PostPosted: Wed Apr 17, 2019 12:41 am    Post subject: Reply with quote

You'll need to clone the partition to another device using dd or similar if you want to run a full fsck; jfs doesn't seem to have any option to continue on disk errors.

The other option is to just run jfs_fsck -p, or nothing at all, but that risks rendering the entire thing lost.
Back to top
View user's profile Send private message
Spanik
Guru
Guru


Joined: 12 Dec 2003
Posts: 457
Location: Belgium

PostPosted: Wed Apr 17, 2019 6:33 pm    Post subject: Reply with quote

Ant P. wrote:
You'll need to clone the partition to another device using dd or similar if you want to run a full fsck; jfs doesn't seem to have any option to continue on disk errors.

The other option is to just run jfs_fsck -p, or nothing at all, but that risks rendering the entire thing lost.


How would that help? I'm not a specialist in recovery, but if I dd this to another disk I'll just end up with another jfs disk with the same faults I think.I started doing a jfs_fsck -v without any other options to start but this gave the same error.

Is there a way to just mount it and get it to access the files that don't have an error? Never mind if I miss a few files. It will be easier than having to find back all the others on the net and in my well organised back-ups.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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