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

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. 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"

--- 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™.