WhatâÂÂs the name of a USB stick when its label is empty?
Clash 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?
debian usb-drive
add a comment |Â
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?
debian usb-drive
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 usesudisks2
to automount - if you check the source code you can see how the path is constructed e.g. for theNAME
part start reading at line 951
â don_crissti
Nov 19 '17 at 12:21
add a comment |Â
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?
debian usb-drive
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?
debian usb-drive
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 usesudisks2
to automount - if you check the source code you can see how the path is constructed e.g. for theNAME
part start reading at line 951
â don_crissti
Nov 19 '17 at 12:21
add a comment |Â
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 usesudisks2
to automount - if you check the source code you can see how the path is constructed e.g. for theNAME
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
add a comment |Â
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
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 endsdx
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
add a comment |Â
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
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 endsdx
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
add a comment |Â
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
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 endsdx
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
add a comment |Â
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
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
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 endsdx
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
add a comment |Â
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 endsdx
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 theNAME
part start reading at line 951â don_crissti
Nov 19 '17 at 12:21