LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2013, 03:27 PM   #1
D.V
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Rep: Reputation: Disabled
How can I remove a disk label on my USB drive


hello

I have a USB stick and each time I mount it, it says /media/Crunchbang, I did a full dd on the USB stick and created a new partition and formatted it as vfat. However it stills mount as /media/Crunchbang. How can I remove the Crunchbang label?

thanks

Last edited by D.V; 09-17-2013 at 03:28 PM.
 
Old 09-17-2013, 04:35 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
http://linux.die.net/man/8/tune2fs

tune2fs is your friend.
 
Old 09-17-2013, 06:54 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,163

Rep: Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347
http://gparted.sourceforge.net/displ...artition-label

Gparted and many other apps might do it also.
 
Old 09-18-2013, 02:48 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,356

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Are you sure it's actually got that label? Check your /etc/fstab to see if the device isn't specifically named with a mount point of /media/Crunchbang
 
Old 09-18-2013, 05:25 AM   #5
Inkit
Member
 
Registered: Feb 2011
Location: India
Distribution: Mint 10
Posts: 142

Rep: Reputation: 15
I second Jefro. Gparted gives you the option of changing the label. All you do is right click on the partition and choose label. As simple as can be.
 
Old 09-18-2013, 11:48 PM   #6
D.V
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
I've tried all suggestions but there is no label on the filesystem nor any label reference in the /etc/fstab file.

It just automounts as /media/Crunchbang as TenTenths suspects. I've used the dd command to write the hybrid iso image onto the usb stick. Even though I dd the whole USB stick with zeros and created a new partition it still mounts as /media/Crunchbang.

Anyway, I am still able to write other iso images or use unetbootin on the USB stick as usual, I just have to get used to my USB stick being called Crunchbang.

Thanks again folks
 
Old 09-19-2013, 02:49 AM   #7
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Hi D.V,

1. Insert usb.
2. Check the name of the device with fdisk -l
3. For example your usb is decected as /dev/sdc1, then un mount it.
3. umount /dev/sdc1
4. mkfs.vfat -F 32 -n DV_Device /dev/sdc1 (Here -F 32 is FAT32 and -n is for name of your device)
 
Old 09-19-2013, 12:06 PM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by bkcreddy17 View Post
Hi D.V,

1. Insert usb.
2. Check the name of the device with fdisk -l
3. For example your usb is decected as /dev/sdc1, then un mount it.
3. umount /dev/sdc1
4. mkfs.vfat -F 32 -n DV_Device /dev/sdc1 (Here -F 32 is FAT32 and -n is for name of your device)
no need to format the USB device again, just change the label...

Code:
# tune2fs -L foo /dev/sdX#
that simple were X is the drive letter and # is the partition and foo is the label you wish to assign.
 
Old 09-19-2013, 12:52 PM   #9
D.V
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
Code:
# tune2fs -L foo /dev/sdX#
After unmounting the USB key, I ran the command above and there were no errors and I assumed it had worked. I inserted the USB key for the new changes to take effect but it still mounts as /media/Crunchbang. It was worth a try.

Quote:
Originally Posted by bkcreddy17 View Post
Hi D.V,

1. Insert usb.
2. Check the name of the device with fdisk -l
3. For example your usb is decected as /dev/sdc1, then un mount it.
3. umount /dev/sdc1
4. mkfs.vfat -F 32 -n DV_Device /dev/sdc1 (Here -F 32 is FAT32 and -n is for name of your device)
This had work. Thanks

Last edited by D.V; 09-19-2013 at 12:54 PM.
 
Old 09-20-2013, 09:16 AM   #10
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
i have to say that is very odd, relabeling a device should not require a format. glad you got it fixed.
 
Old 09-20-2013, 09:26 AM   #11
D.V
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
i have to say that is very odd, relabeling a device should not require a format. glad you got it fixed.
Yeah, I did found it odd as well since there were no errors after running the command. Not sure but maybe tunefs is for linux based filesystems. Just my guess...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /dev/disk/by-label DISAPPEARED! Can't mount USB flash drive ShellyCat Linux - Desktop 5 11-16-2010 11:30 PM
Label and Format USB Drive carlosinfl Linux - General 3 06-16-2010 03:36 PM
can't change the disk label of my new 500gig usb drive oskar Linux - Hardware 12 08-01-2007 06:14 PM
Changing disk drive label Davisgwin Linux - Hardware 8 09-29-2004 02:50 AM


All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration