cagemaster Posted October 30, 2021 Share Posted October 30, 2021 (edited) I unmounted an external drive, and when trying to re-mount I get a "bad superblock" error from the unassigned devices plugin: Mount of '/dev/sdj1' failed: 'mount: /mnt/disks/TOSHIBA_HDWG11A_6160A04UFATG: wrong fs type, bad option, bad superblock on /dev/sdj1, missing codepage or helper program, or other error. ' And also this: Oct 30 12:20:05 Mercury kernel: XFS (sdj1): Filesystem has duplicate UUID baf836bb-2c2a-4c07-9b57-3c25e5706a96 - can't mount How can I mount the drive without loosing the contents of the drive? I'm happy to provide any more information if needed. Any help is very much appreciated! Disk information: Disk /dev/sdj: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors Disk model: ASM1156-PM Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: F6FD07F5-FB6A-433B-8892-89A656D64606 Device Start End Sectors Size Type /dev/sdj1 64 19532873694 19532873631 9.1T Linux filesystem I also tried to change the UUID in the unassigned devices plugin but got this error: Oct 30 12:51:54 Mercury unassigned.devices: Changing partition '/dev/sdj1' UUID. Result: ERROR: The filesystem has valuable metadata changes in a log which needs to be replayed. Mount the filesystem to replay the log, and unmount it before re-running xfs_admin. If you are unable to mount the filesystem, then use the xfs_repair -L option to destroy the log and attempt a repair. Note that destroying the log may cause corruption -- please attempt a mount of the filesystem before doing this. Edited October 30, 2021 by cagemaster updated with disk information Quote Link to comment
cagemaster Posted October 30, 2021 Author Share Posted October 30, 2021 Solved: I ran: xfs_repair -v -L /drv/sdj1 and after that had finished I changed the UUID from the unassigned devices plugin. I was then able to mount the drive after this! Note that this may cause corruption but for me it worked fine!! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.