LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-11-2008, 01:58 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Changing Partition Label on Ext3


OK - I have an external USB drive that is mounted on my system as ext3.

/dev/sdc1 which mounts as /media/MUSIC on my Debian system.

Now I am attempting to rename the label from MUSIC to stuff using the e2label command and for some reason I am doing something wrong. First off in order for this to work can I have the file system mounted or should I unmount the system before I make changes?

Would this command be correct?

Code:
tunafish:/home/carlos# e2label /dev/sdc1 stuff
e2label: Bad magic number in super-block while trying to open /dev/sdc1
Couldn't find valid filesystem superblock.
I tried this command with the device mounted and umounted and neither seem to work...
 
Old 04-11-2008, 03:10 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
That should work although e2label seems to work primarily with ext2. Have you tried tune2fs -L label device?
 
Old 04-11-2008, 05:33 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Oops - its FAT32. Will this still work?
 
Old 04-11-2008, 05:38 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
That won't work. Try mlabel.
 
Old 04-12-2008, 01:28 AM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
mlabel has possibly the worst man page known to man (no pun intended)
 
Old 04-12-2008, 03:18 AM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
mlabel -c drive:label ?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disc cloning and changing drive label mtdew3q Linux - Hardware 1 10-05-2007 03:18 AM
fsck.ext3: Unable to resolve 'LABEL= pm02368 Linux - Newbie 4 09-12-2006 07:15 PM
fsck.ext3: Unable to resolve 'LABEL=/home' Azzath Linux - General 14 04-03-2005 04:45 AM
fsck.ext3 unable to resolve 'LABEL=/home yeehi Linux - General 2 10-20-2004 08:15 AM
Changing disk drive label Davisgwin Linux - Hardware 8 09-29-2004 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:32 AM.

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
Open Source Consulting | Domain Registration