TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: A. DUMAS
from: MARTIN GREGORIE
date: 2019-03-28 15:44:00
subject: Re: Mounting USB drives v

On Thu, 28 Mar 2019 13:52:45 +0100, A. Dumas wrote:

> Martin Gregorie wrote, on 28-03-2019 13:32:
>> The manual says that labels can be used equivalently to /dev/sdn or
>> UUIDs,
>> but while
>>
>> usb_label="USB_SNAPSHOT"
>> usb_disk="/media/snapshot"
>> sudo mount -t ext4 -L "$usb_label" "$usb_disk"
>>
>> works correctly
>>
>> sudo fsck -n $usb_label
>>
>> outputs an "Emergency help:" message listing the fsck options etc and
>>
>> sudo fsck.ext4 -n $usb_label
>>
>> outputs the error
>>
>> e2fsck 1.44.2 (14-May-2018)
>> fsck.ext4: No such file or directory while trying to open USB_SNAPSHOT
>> Possibly non-existent device?
>
>  From where do you get the -n option? I don't see it in the man page for
> Linux (Raspbian) fsck except as an option to e2fsck meaning
> non-interactive non-errorcorrecting mode.
>
Yes, thats where its documented, along with the fsck manpage saying that
any options it doesn't recognise are passed to the filesystem type-
specific subsystem, in this case fsck.ext4

> Also the man page clearly
> states, and Richard quoted, how to specify a label: "e.g.
> UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root"
>
Missed seeing that. I'd have laid out the manpage a bit differently,
probably using a device specifier per line in a vertical list.


--
Martin    | martin at
Gregorie  | gregorie dot org

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.