WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Set LABEL don't work (alpha 9)  (Read 3005 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Set LABEL don't work (alpha 9)
« on: July 06, 2010, 06:28:09 AM »
Here the code:

Code: [Select]
root@box:~# tune2fs -L micropen /dev/sdb1
tune2fs 1.41.11 (14-Mar-2010)
tune2fs: Bad magic number in super-block while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.

This problem occurs with all of my usb sticks.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Set LABEL don't work (alpha 9)
« Reply #1 on: July 06, 2010, 06:53:26 AM »
Are they valid ext2/3/4? (unmounted, clean)

Which version were they created by?


Can't reproduce, I created an ext2 vol both in 2.11 and 3.0a9, and 3.0a9 tune2fs changed labels on both.
« Last Edit: July 06, 2010, 06:56:28 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Set LABEL don't work (alpha 9)
« Reply #2 on: July 06, 2010, 09:04:51 AM »
This is my operation:
-create a partition with cfdisk (0b fat32)
-format partition with mkfs.vfat
-and groped to change the label with tune2fs

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Set LABEL don't work (alpha 9)
« Reply #3 on: July 06, 2010, 09:20:09 AM »
I didn't try, but don't you need dosfstools-3 to label a fat partition?

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Set LABEL don't work (alpha 9)
« Reply #4 on: July 06, 2010, 09:22:18 AM »
See FAQ http://www.tinycorelinux.com/faq.html#pendrives

Code: [Select]
In order to use labels on other filesystems than ext2/3, see their respective extensions:

- for fat16/32 dosfstools-3.tcz contains the tool dosfslabel
- for JFS jfsutils.tcz contains the tool jfs_tune
- for XFS xfsprogs.tcz contains the tool xfs_admin
10+ Years Contributing to Linux Open Source Projects.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Set LABEL don't work (alpha 9)
« Reply #5 on: July 06, 2010, 10:29:45 AM »
 :o yes, I have wrong all!
The command is "dosfslabel device [label]"
Sorry for my stupidity.