What’s the name of a USB stick when its label is empty?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I changed the label of my USB stick to empty by using the e2label command, then it is mounted as /media/USER/NAME in Debian, I want to know what the NAME stands for and how to change it?







share|improve this question


















  • 1




    This has nothing to do with debian, it's something that's done by the automounter called by your DE so tag the question appropriately. Assuming your DE is GNOME 3 which underneath uses udisks2 to automount - if you check the source code you can see how the path is constructed e.g. for the NAME part start reading at line 951
    – don_crissti
    Nov 19 '17 at 12:21















up vote
0
down vote

favorite












I changed the label of my USB stick to empty by using the e2label command, then it is mounted as /media/USER/NAME in Debian, I want to know what the NAME stands for and how to change it?







share|improve this question


















  • 1




    This has nothing to do with debian, it's something that's done by the automounter called by your DE so tag the question appropriately. Assuming your DE is GNOME 3 which underneath uses udisks2 to automount - if you check the source code you can see how the path is constructed e.g. for the NAME part start reading at line 951
    – don_crissti
    Nov 19 '17 at 12:21













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I changed the label of my USB stick to empty by using the e2label command, then it is mounted as /media/USER/NAME in Debian, I want to know what the NAME stands for and how to change it?







share|improve this question














I changed the label of my USB stick to empty by using the e2label command, then it is mounted as /media/USER/NAME in Debian, I want to know what the NAME stands for and how to change it?









share|improve this question













share|improve this question




share|improve this question








edited Nov 19 '17 at 5:14

























asked Nov 19 '17 at 5:09









tmpbin

1231111




1231111







  • 1




    This has nothing to do with debian, it's something that's done by the automounter called by your DE so tag the question appropriately. Assuming your DE is GNOME 3 which underneath uses udisks2 to automount - if you check the source code you can see how the path is constructed e.g. for the NAME part start reading at line 951
    – don_crissti
    Nov 19 '17 at 12:21













  • 1




    This has nothing to do with debian, it's something that's done by the automounter called by your DE so tag the question appropriately. Assuming your DE is GNOME 3 which underneath uses udisks2 to automount - if you check the source code you can see how the path is constructed e.g. for the NAME part start reading at line 951
    – don_crissti
    Nov 19 '17 at 12:21








1




1




This has nothing to do with debian, it's something that's done by the automounter called by your DE so tag the question appropriately. Assuming your DE is GNOME 3 which underneath uses udisks2 to automount - if you check the source code you can see how the path is constructed e.g. for the NAME part start reading at line 951
– don_crissti
Nov 19 '17 at 12:21





This has nothing to do with debian, it's something that's done by the automounter called by your DE so tag the question appropriately. Assuming your DE is GNOME 3 which underneath uses udisks2 to automount - if you check the source code you can see how the path is constructed e.g. for the NAME part start reading at line 951
– don_crissti
Nov 19 '17 at 12:21











1 Answer
1






active

oldest

votes

















up vote
0
down vote













Can you explain what NAME reads?

Is this a placeholder for something a command is outputting? Where are you reading this device path from?

Can you use the lsblk command to locate the block device and paste the output? This would be helpful in me finding out what you need/want to change.

The USB should be listed as /dev/sd[x] with x being an alphanumeric character



change block device label with e2label: $ e2label device [ new-label ]



device can be the entire drive or a partition.

/dev/sda is the entire drive

/dev/sda1 is the first partition of device /dev/sda

/dev/sda2 is the second partition of device /dev/sda



eg. to show the label of /dev/sda1 and /dev/sda3



$ e2label /dev/sda1

/boot



$ e2label /dev/sda3

/



To change the label for /dev/sda3, do as follows,
$ e2label /dev/sda3 changed-label



and to confirm the change was done sucessfully,

$ e2label /dev/sda3

changed-label



if you want a / in front of the label,



$ e2label /dev/sda3 /changed-label



to verify that the change was done,



$ e2label /dev/sda3

/changed-label



if you want the server to be able to boot next time round, ensure changes are made to /etc/fstab as well. Otherwise, on the next boot, you may be prompted with errors, eg.



fsck.ext3: Unable to resolve 'LABEL=/boot'
fsck.ext3: Unable to resolve 'LABEL=/'



Source with more info: http://www.xssist.com/blog/e2label,%20fdisk,%20etc%20fstab,%20mount,%20linux%20rescue,%20rescue%20disk,%20CentOS.htm






share|improve this answer




















  • I just changed the label of the first partition, I now know it is the label of the entire stick, how to change it?
    – tmpbin
    Nov 19 '17 at 5:38











  • I'm sorry but I do not know if I understand. You changed the name of the partition? Not the device? To change the devices, do it without the number at the end sdx no number
    – PuzzledCuber
    Nov 19 '17 at 5:52






  • 1




    Of course e2label cannot change the label of the stick
    – tmpbin
    Nov 19 '17 at 5:58










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405544%2fwhat-s-the-name-of-a-usb-stick-when-its-label-is-empty%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Can you explain what NAME reads?

Is this a placeholder for something a command is outputting? Where are you reading this device path from?

Can you use the lsblk command to locate the block device and paste the output? This would be helpful in me finding out what you need/want to change.

The USB should be listed as /dev/sd[x] with x being an alphanumeric character



change block device label with e2label: $ e2label device [ new-label ]



device can be the entire drive or a partition.

/dev/sda is the entire drive

/dev/sda1 is the first partition of device /dev/sda

/dev/sda2 is the second partition of device /dev/sda



eg. to show the label of /dev/sda1 and /dev/sda3



$ e2label /dev/sda1

/boot



$ e2label /dev/sda3

/



To change the label for /dev/sda3, do as follows,
$ e2label /dev/sda3 changed-label



and to confirm the change was done sucessfully,

$ e2label /dev/sda3

changed-label



if you want a / in front of the label,



$ e2label /dev/sda3 /changed-label



to verify that the change was done,



$ e2label /dev/sda3

/changed-label



if you want the server to be able to boot next time round, ensure changes are made to /etc/fstab as well. Otherwise, on the next boot, you may be prompted with errors, eg.



fsck.ext3: Unable to resolve 'LABEL=/boot'
fsck.ext3: Unable to resolve 'LABEL=/'



Source with more info: http://www.xssist.com/blog/e2label,%20fdisk,%20etc%20fstab,%20mount,%20linux%20rescue,%20rescue%20disk,%20CentOS.htm






share|improve this answer




















  • I just changed the label of the first partition, I now know it is the label of the entire stick, how to change it?
    – tmpbin
    Nov 19 '17 at 5:38











  • I'm sorry but I do not know if I understand. You changed the name of the partition? Not the device? To change the devices, do it without the number at the end sdx no number
    – PuzzledCuber
    Nov 19 '17 at 5:52






  • 1




    Of course e2label cannot change the label of the stick
    – tmpbin
    Nov 19 '17 at 5:58














up vote
0
down vote













Can you explain what NAME reads?

Is this a placeholder for something a command is outputting? Where are you reading this device path from?

Can you use the lsblk command to locate the block device and paste the output? This would be helpful in me finding out what you need/want to change.

The USB should be listed as /dev/sd[x] with x being an alphanumeric character



change block device label with e2label: $ e2label device [ new-label ]



device can be the entire drive or a partition.

/dev/sda is the entire drive

/dev/sda1 is the first partition of device /dev/sda

/dev/sda2 is the second partition of device /dev/sda



eg. to show the label of /dev/sda1 and /dev/sda3



$ e2label /dev/sda1

/boot



$ e2label /dev/sda3

/



To change the label for /dev/sda3, do as follows,
$ e2label /dev/sda3 changed-label



and to confirm the change was done sucessfully,

$ e2label /dev/sda3

changed-label



if you want a / in front of the label,



$ e2label /dev/sda3 /changed-label



to verify that the change was done,



$ e2label /dev/sda3

/changed-label



if you want the server to be able to boot next time round, ensure changes are made to /etc/fstab as well. Otherwise, on the next boot, you may be prompted with errors, eg.



fsck.ext3: Unable to resolve 'LABEL=/boot'
fsck.ext3: Unable to resolve 'LABEL=/'



Source with more info: http://www.xssist.com/blog/e2label,%20fdisk,%20etc%20fstab,%20mount,%20linux%20rescue,%20rescue%20disk,%20CentOS.htm






share|improve this answer




















  • I just changed the label of the first partition, I now know it is the label of the entire stick, how to change it?
    – tmpbin
    Nov 19 '17 at 5:38











  • I'm sorry but I do not know if I understand. You changed the name of the partition? Not the device? To change the devices, do it without the number at the end sdx no number
    – PuzzledCuber
    Nov 19 '17 at 5:52






  • 1




    Of course e2label cannot change the label of the stick
    – tmpbin
    Nov 19 '17 at 5:58












up vote
0
down vote










up vote
0
down vote









Can you explain what NAME reads?

Is this a placeholder for something a command is outputting? Where are you reading this device path from?

Can you use the lsblk command to locate the block device and paste the output? This would be helpful in me finding out what you need/want to change.

The USB should be listed as /dev/sd[x] with x being an alphanumeric character



change block device label with e2label: $ e2label device [ new-label ]



device can be the entire drive or a partition.

/dev/sda is the entire drive

/dev/sda1 is the first partition of device /dev/sda

/dev/sda2 is the second partition of device /dev/sda



eg. to show the label of /dev/sda1 and /dev/sda3



$ e2label /dev/sda1

/boot



$ e2label /dev/sda3

/



To change the label for /dev/sda3, do as follows,
$ e2label /dev/sda3 changed-label



and to confirm the change was done sucessfully,

$ e2label /dev/sda3

changed-label



if you want a / in front of the label,



$ e2label /dev/sda3 /changed-label



to verify that the change was done,



$ e2label /dev/sda3

/changed-label



if you want the server to be able to boot next time round, ensure changes are made to /etc/fstab as well. Otherwise, on the next boot, you may be prompted with errors, eg.



fsck.ext3: Unable to resolve 'LABEL=/boot'
fsck.ext3: Unable to resolve 'LABEL=/'



Source with more info: http://www.xssist.com/blog/e2label,%20fdisk,%20etc%20fstab,%20mount,%20linux%20rescue,%20rescue%20disk,%20CentOS.htm






share|improve this answer












Can you explain what NAME reads?

Is this a placeholder for something a command is outputting? Where are you reading this device path from?

Can you use the lsblk command to locate the block device and paste the output? This would be helpful in me finding out what you need/want to change.

The USB should be listed as /dev/sd[x] with x being an alphanumeric character



change block device label with e2label: $ e2label device [ new-label ]



device can be the entire drive or a partition.

/dev/sda is the entire drive

/dev/sda1 is the first partition of device /dev/sda

/dev/sda2 is the second partition of device /dev/sda



eg. to show the label of /dev/sda1 and /dev/sda3



$ e2label /dev/sda1

/boot



$ e2label /dev/sda3

/



To change the label for /dev/sda3, do as follows,
$ e2label /dev/sda3 changed-label



and to confirm the change was done sucessfully,

$ e2label /dev/sda3

changed-label



if you want a / in front of the label,



$ e2label /dev/sda3 /changed-label



to verify that the change was done,



$ e2label /dev/sda3

/changed-label



if you want the server to be able to boot next time round, ensure changes are made to /etc/fstab as well. Otherwise, on the next boot, you may be prompted with errors, eg.



fsck.ext3: Unable to resolve 'LABEL=/boot'
fsck.ext3: Unable to resolve 'LABEL=/'



Source with more info: http://www.xssist.com/blog/e2label,%20fdisk,%20etc%20fstab,%20mount,%20linux%20rescue,%20rescue%20disk,%20CentOS.htm







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 19 '17 at 5:30









PuzzledCuber

938




938











  • I just changed the label of the first partition, I now know it is the label of the entire stick, how to change it?
    – tmpbin
    Nov 19 '17 at 5:38











  • I'm sorry but I do not know if I understand. You changed the name of the partition? Not the device? To change the devices, do it without the number at the end sdx no number
    – PuzzledCuber
    Nov 19 '17 at 5:52






  • 1




    Of course e2label cannot change the label of the stick
    – tmpbin
    Nov 19 '17 at 5:58
















  • I just changed the label of the first partition, I now know it is the label of the entire stick, how to change it?
    – tmpbin
    Nov 19 '17 at 5:38











  • I'm sorry but I do not know if I understand. You changed the name of the partition? Not the device? To change the devices, do it without the number at the end sdx no number
    – PuzzledCuber
    Nov 19 '17 at 5:52






  • 1




    Of course e2label cannot change the label of the stick
    – tmpbin
    Nov 19 '17 at 5:58















I just changed the label of the first partition, I now know it is the label of the entire stick, how to change it?
– tmpbin
Nov 19 '17 at 5:38





I just changed the label of the first partition, I now know it is the label of the entire stick, how to change it?
– tmpbin
Nov 19 '17 at 5:38













I'm sorry but I do not know if I understand. You changed the name of the partition? Not the device? To change the devices, do it without the number at the end sdx no number
– PuzzledCuber
Nov 19 '17 at 5:52




I'm sorry but I do not know if I understand. You changed the name of the partition? Not the device? To change the devices, do it without the number at the end sdx no number
– PuzzledCuber
Nov 19 '17 at 5:52




1




1




Of course e2label cannot change the label of the stick
– tmpbin
Nov 19 '17 at 5:58




Of course e2label cannot change the label of the stick
– tmpbin
Nov 19 '17 at 5:58

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405544%2fwhat-s-the-name-of-a-usb-stick-when-its-label-is-empty%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?