Unable to mount USB Flash memory created on CentOS

James B. Byrne byrnejb at harte-lyne.ca
Mon Jul 31 15:50:02 UTC 2017


Lest it be lost in the minutiae of solving this difficulty I thank you
for all your help.


On Sat, July 29, 2017 05:01, Polytropon wrote:
>
> I'd suggest you use the Linux native fsck (e2fsck). If I
> remember correctly, there is also an "ext2 fsck" in the
> port e2fsprogs with the same name.
>
> Or maybe it came with FUSE?
>
> Basically, you'd so something like
>
> 	# fsck -t ext2 /dev/da1
>
> or, as I mentioned,
>
> 	# e2fsck /dev/da1
>
> An automatic file system type detection relies on an entry
> in /etc/fstab, which you don't have, so you need to specify
> the FS type manually.
>
>

When I try to verify the flash drives I see this:

# e2fsck /dev/da1
e2fsck 1.43.4 (31-Jan-2017)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/da1
. . .

So I redid the command using the partition values instead:

# e2fsck /dev/da0s1
e2fsck 1.43.4 (31-Jan-2017)
CA_HLL_2016_BKUP has gone 267 days without being checked, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Error writing file system info: Invalid argument

CA_HLL_2016_BKUP: ***** FILE SYSTEM WAS MODIFIED *****

However, the device remains unmountable in Mate.

This issue is not critical as I am able to manually mount both devices
and have successfully moved their contents onto new media.  But I do
find it annoying that Mate, or whatever process caused the initial
problem, was able to create the problem and yet there is no
self-evident way of correcting whatever injury was done to the
filesystems.

-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3



More information about the freebsd-questions mailing list