Destination Disk Label with Space #171

Open
opened 2023-11-11 14:27:22 +01:00 by ISO8807 · 0 comments
ISO8807 commented 2023-11-11 14:27:22 +01:00 (Migrated from github.com)

When running the current version of rpi-clone, I innocently used a space in the destination label:

Optional destination ext type file system label (16 chars max): Backup 231111

This led to some nasty looking errors:

rpi-clone mount: /mnt/clone: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error

Mount failure of /dev/sda2 on /mnt/clone

I then found it was trying to create a filesystem using "-L Backup 231111" which was understandably being parsed incorrectly.

It would be as well to disallow spaces (and certain other characters) in the destination disk label.

When running the current version of rpi-clone, I innocently used a space in the destination label: ``` Optional destination ext type file system label (16 chars max): Backup 231111 ``` This led to some nasty looking errors: ``` rpi-clone mount: /mnt/clone: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error Mount failure of /dev/sda2 on /mnt/clone ``` I then found it was trying to create a filesystem using "-L Backup 231111" which was understandably being parsed incorrectly. It would be as well to disallow spaces (and certain other characters) in the destination disk label.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Lerking/rpi-clone#171
No description provided.