You are not logged in.

#1 2013-04-16 14:42:27

gandhi
Member
Registered: 2013-04-16
Posts: 4

Problem renaming device with mlabel

I`m trying to rename my usb-stick with following command:

mlabel -i /dev/sdc1 ::newname

output:

Total number of sectors (15633376) not a multiple of sectors per track (62)!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test

Well, i created a file .mtoolsrc with the appropriate content.

But the label didnt change and mlabel is still complainining:

Total number of sectors (15633376) not a multiple of sectors per track (62)!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test

Any suggestions?

Offline

#2 2013-04-16 16:56:08

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Problem renaming device with mlabel

man mlabel

You are trying to name a partition instead of the drive.

you can even try mkfs and pass in the flag to set the label -- this will of course re-format, so make sure you don't have any data on it. Other options are e2label and tunefs

Also see this :: https://wiki.archlinux.org/index.php/Pe … ng_methods


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-16 17:15:01

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Problem renaming device with mlabel

Instead of mlabel, use dosfslabel from dosfsutils.

@Inxsible: These are filesystem labels, so using sdc1 and not sdc is the correct thing to do. There's also partition labels (different thing from filesystem labels), but only with GPT.

Offline

#4 2013-04-17 11:59:20

gandhi
Member
Registered: 2013-04-16
Posts: 4

Re: Problem renaming device with mlabel

@Gusar: dosfslabel worked fine, thank you!

dosfslabel /dev/sdc1 "newlabel"

But i still can`t see whats wrong with my approach using mlabel.

Offline

#5 2013-04-17 12:15:14

gandhi
Member
Registered: 2013-04-16
Posts: 4

Re: Problem renaming device with mlabel

Sorry for the dumb thread.
Because i needed to use root for mlabel i had to add "mtools_skip_check=1" to /etc/mtools.conf instead of .mtoolsrc

Offline

#6 2015-04-06 12:43:07

frankensane
Member
Registered: 2015-04-06
Posts: 1

Re: Problem renaming device with mlabel

Just signed up to thank gandhi for updating the thread after figuring out what was wrong with mlabel -- I had exactly the same problem where mdir/mlabel refuses to work and prints misleading information, and gandhi's update in #5 helped me get past this. Thanks!

Offline

#7 2015-04-07 18:07:36

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Problem renaming device with mlabel

Welcome to the forums frankensane. This thread is rather old. Closing. Forum Etquette: Old Threads / Necro-Bumping


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB