On 28/03/2019 12:32, Martin Gregorie wrote:
> On Thu, 28 Mar 2019 00:56:36 +0000, Martin Gregorie wrote:
>
>> On Wed, 27 Mar 2019 19:46:42 +0000, Richard Kettlewell wrote:
>>
>>> Does it not work?
>>>
>>
> No, it does not.
>
> 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
sudo fsck -N LABEL=$usb_label
Note: capital N and LABEL=
At least, that worked on one of my systems.
To continue:
umount LABEL=$usb_label
fsck LABEL=$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?
>
> I've opened a bug report and in the meanwhile am using
>
> readlink -e $usb_label
>
> to get the device name.
>
>
--
Chris Elvidge, England
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|