Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2016 14:07:55 -0400 (EDT)
From:      doug <doug@fledge.watson.org>
To:        Bernt Hansson <bah@bananmonarki.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can not mount USB device
Message-ID:  <alpine.BSF.2.20.1610191402590.74981@fledge.watson.org>
In-Reply-To: <5d9c3ba3-11b1-c6c7-a65f-ff1c47212582@bananmonarki.se>
References:  <alpine.BSF.2.20.1610161606090.78426@fledge.watson.org> <5d9c3ba3-11b1-c6c7-a65f-ff1c47212582@bananmonarki.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 19 Oct 2016, Bernt Hansson wrote:

> On 2016-10-17 22:25, doug wrote:
>> The system is FreeBSD 10.3-RELEASE-p7 #0. All commands are execured as 
>> root.
>> 
>> file -s /dev/da0s1
>> /dev/da0s1: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "MSDOS5.0", 
>> sectors/cluster 8, reserved sectors 38, Media descriptor 0xf8, 
>> sectors/track 63, heads 16, hidden sectors 8192, sectors 831488 (volumes > 
>> 32 MB) , FAT (32 bit), sectors/FAT 813, serial number 0x482393a9, unlabeled
>> 
>> I ended up with the following attempts
>> 
>> mount -t msdosfs -o -m=644 /dev/da0s1 /mnt/
>> 5mount_msdosfs: /dev/da0s1: Permission denied
>> 
>> dmesg:
>> (da0:umass-sim0:0:0:0): Error 13, Unretryable error
>> g_vfs_done():da0s1[WRITE(offset=19456, length=4096)]error = 13
>> (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 00 00 00 20 26 00 00 08 00
>> (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
>> (da0:umass-sim0:0:0:0): SCSI status: Check Condition
>> (da0:umass-sim0:0:0:0): SCSI sense: DATA PROTECT asc:27,0 (Write protected)
>> 
>> mount -t msdosfs -o -m=644,-M=644 /dev/da0s1 /mnt/
>> mount_msdosfs: /dev/da0s1: Permission denied
>> 
>> dmesg:
>> (da0:umass-sim0:0:0:0): Error 13, Unretryable error
>> g_vfs_done():da0s1[WRITE(offset=19456, length=4096)]error = 13
>> 
>> All other variations got the same error (Permission denied)
>> 
>> The USB stick is readable in windows 10. I thought it was a data disk it 
>> turns out to have 2 install program files one for windows and one for mac.
> Is the filesystem clean?
>
> Try running fsck.

This was answered: mount -t msdosfs -r /dev/da0s1 /mnt/
works.

Some how this thread was broken, at least on some email clients. It turns out 
that '-r' is not in the man page for mount_msdosfs. It is the page for mount. 
Again, thanks to all who replied.

Doug



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1610191402590.74981>