You are not logged in.
Pages: 1
Topic closed
I`m trying to rename my usb-stick with following command:
mlabel -i /dev/sdc1 ::newnameoutput:
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 testWell, 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 testAny suggestions?
Offline
man mlabelYou 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
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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
@Gusar: dosfslabel worked fine, thank you!
dosfslabel /dev/sdc1 "newlabel"But i still can`t see whats wrong with my approach using mlabel.
Offline
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
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
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
Pages: 1
Topic closed