Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: vinnie on July 06, 2010, 06:28:09 AM

Title: Set LABEL don't work (alpha 9)
Post by: vinnie 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.
Title: Re: Set LABEL don't work (alpha 9)
Post by: curaga 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.
Title: Re: Set LABEL don't work (alpha 9)
Post by: vinnie 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
Title: Re: Set LABEL don't work (alpha 9)
Post by: Juanito on July 06, 2010, 09:20:09 AM
I didn't try, but don't you need dosfstools-3 to label a fat partition?
Title: Re: Set LABEL don't work (alpha 9)
Post by: roberts 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
Title: Re: Set LABEL don't work (alpha 9)
Post by: vinnie on July 06, 2010, 10:29:45 AM
 :o yes, I have wrong all!
The command is "dosfslabel device [label]"
Sorry for my stupidity.