What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

dc: How can I let e2fsck repair a (mounted) SSD (or USB) drive?

XIII

Part of the Furniture
The Disk Check script (dc) in amtm reported that the SSD attached to my router was not clean at boot, so I tried to use e2fsck to repair it. However, that refused to do its job because the SSD was mounted and then unmounting failed because the drive was "busy" (all the time). In the end I turned off my router and attached the SSD to a PC running Ubuntu to repair it, but that is a rather clumsy way too achieve this.

What's the proper way (on the router itself) to do this (next time)?
 
The Disk Check will try to fix minor errors automatically. What did the log show?

In most other cases, if the errors are significant the router will refuse to mount the drive.

If it is still mounted, even with errors I would:
1. Disable JFFS custom scripts and configs in the webUI and reboot the router.
2. After the reboot, eject the USB drive through the webUI.
3. Repair the damaged filesystem using the relevant commands.
 
Last edited:
What did the log show?
This:
Code:
Probing 'ext4' on device /dev/sda1
Running disk check with command 'e2fsck -p' on /dev/sda1
ssd: recovering journal
ssd contains a file system with errors, check forced.
ssd: Unattached inode 8130364


ssd: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
       (i.e., without -a or -p options)
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top