I have a 2Gb usb data stick that previously had a Debian iso on it, having been placed there by the use of a dd command.
Since then, wishing to repurpose the stick, I have used parted and done mklabel. Choosing gpt, this allowed me also to rename the stick. Then I used 'mkfs.ext3 /dev/sdb1' to create the file system. Here's the output of the parted 'print' command:
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Kingston DataTraveler 2.0 (scsi)
Disk /dev/sdb: 2046MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 2046MB 2045MB ext3 usbstick
I can see from the above that the parted 'name' sub-command changed the name of partition number 1 only, not the name of the whole device.
So, when I insert the drive under the Debian GUI file system, it still comes up under /media/martin/ as 'Debian 10.4.0 amd64 n', as a left-over from its former incarnation.
I want to copy some files to it, and that 'name', 'title', or whatever it is, makes the operation impossible to complete.
How can I get it named as something sensible, so that I can copy to it? Or is there a way of formulating a command line incantation such that it will achieve the result of copying files to the device?