Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77692 - e2fsprogs: cannot read vfat LABELs
Summary: e2fsprogs: cannot read vfat LABELs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 77693 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-12 08:08 UTC by Evgeniy Dushistov
Modified: 2005-12-18 19:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
# emerge util-linux > log 2>&1 (log,85.51 KB, text/plain)
2005-01-13 07:03 UTC, Evgeniy Dushistov
Details
add ability to read vfat labels for every type of "vfat partition" (e2fsprogs-1.38-vfat-label.patch,6.24 KB, patch)
2005-12-16 07:51 UTC, Evgeniy Dushistov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeniy Dushistov 2005-01-12 08:08:20 UTC
for example in /etc/fstab i have such line:
LABEL=DATA               /mnt/data       vfat            iocharset=koi8-r,codepage=866,nouser,nosuid,rw,umask=002,gid=100,showexec 0 0

with old util-linux all will fine, but 
now I get this:
# mount /mnt/data/
mount: special device LABEL=DATA does not exist

Reproducible: Always
Steps to Reproduce:
1.KEYWORD="~x86" emerge util-linux
2.
3.
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-12 08:21:56 UTC
*** Bug 77693 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2005-01-12 15:15:23 UTC
you neglected to post `emerge info` like the bug report page told you to

also, could you please run `emerge util-linux >& log` and post the 'log' file as an attachment ?
Comment 3 Evgeniy Dushistov 2005-01-13 06:54:27 UTC
>you neglected to post `emerge info` like the bug report page told you to

My apologies. I post three bug posts in one day, and on third time,
fogot to post emerge info

$ emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /u
sr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/te
xmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.gentoo.ru/pub/mirror/gentoo/ 
http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/evgeniy/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl alsa apm avi berkdb bitmap-fonts crypt cups directfb doc emacs encode esd f77 fam flac font-ser
ver foomaticdb fortran gdbm gif gimpprint gpm gtk gtk2 imagemagick imlib ipv6 java jpeg libg++ libwww mad mikmod
 mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readlin
e sdl slang spel spell sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb x86 xml
2 xmms xv zlib"


Comment 4 Evgeniy Dushistov 2005-01-13 07:03:46 UTC
Created attachment 48392 [details]
# emerge util-linux > log 2>&1

>emerge util-linux >& log

I don't know how it help,
may be you want /etc/fstab?
Comment 5 SpanKY gentoo-dev 2005-01-13 07:14:32 UTC
it seems that only vfat labels are broken atm ... e2fsprogs bug really
Comment 6 SpanKY gentoo-dev 2005-03-09 15:39:40 UTC
could you try e2fsprogs-1.36-r1 ?
Comment 7 Evgeniy Dushistov 2005-03-10 07:31:33 UTC
>could you try e2fsprogs-1.36-r1 ?

Nothing change.

Realy strange that I have in /etc/fstab two lines like this:

/dev/sda5               /mnt/data       vfat            iocharset=koi8-r,codepage=866,nouser,nosuid,rw,umask=002,gid=100,showexec 0 0

LABEL=TEMP               /mnt/tmp       vfat            iocharset=koi8-r,codepage=866,nouser,nosuid,rw,umask=002,gid=100,showexec 0 0

in second line LABEL works fine,
but if I change /dev/sda5 to
LABEL="it's name"
in case of 
mount /mnt/data
I get that there no partition with such label
in case of
mount -a
I get segmentation fault

Comment 8 SpanKY gentoo-dev 2005-03-10 07:59:18 UTC
what version of util-linux ?  2.12q should have the segfault fixed ...
Comment 9 Evgeniy Dushistov 2005-03-10 12:24:03 UTC
>what version of util-linux ?  2.12q should have the segfault fixed ...

make ACCEPT_KEYWORDS="~x86"

and emerge util-linux, this help with segfault.

but if earlier this work


>LABEL=TEMP               /mnt/tmp       vfat            iocharset=koi8-r,codepage=866,nouser,nosuid,rw,umask=002,gid=100,showexec 0 0

now mount say that it can not find partiotion with label TEMP
Comment 10 SpanKY gentoo-dev 2005-03-10 20:07:03 UTC
forgive my ignorance, but ive never done labels before ... how do you generate labels for your vfat partitions (so that i can reproduce / test / etc... over here) ?
Comment 11 Evgeniy Dushistov 2005-03-11 11:00:10 UTC
>forgive my ignorance, but ive never done labels before ... how do you generate labels for your vfat >partitions (so that i can 
>reproduce / test / etc... over here) ?

man mkfs.vfat

-n volume-name
              Sets the volume name (label) of the filesystem.  The volume name
              can be up to 11 characters long.  The default is no label.
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-17 19:00:19 UTC
I can't reproduce this at all.
Tested using util-linux-2.12p or util-linux-2.12q.
And e2fsprogs-1.35-r1 and e2fsprogs-1.36-r[23]

mkfs.vfat -F 32 -n FATTEST -v /dev/md/7
mkdir -p /tmp/fattest
blkid -t LABEL=FATTEST 
(show /dev/md/7 as the location)
mount LABEL=FATTEST /tmp/fattest
(mounts perfectly fine)
umount /tmp/fattest

echo "LABEL=FATTEST /tmp/fattest auto defaults 0 0" >>/etc/fstab
mount /tmp/fattest
(mount works perfectly fine)
umount /tmp/fattest
Comment 13 Evgeniy Dushistov 2005-03-21 07:21:22 UTC
>I can't reproduce this at all.

$blkid -t LABEL=TEMP
/dev/sda6: UUID="F467-4E0E" TYPE="vfat" LABEL="TEMP"

$ mount LABEL=TEMP /mnt/tmp/
mount: special device LABEL=TEMP does not exist

$ mount /dev/sda6 /mnt/tmp/
all fine

and addition info
$qpkg -i -I util-linux
sys-apps/util-linux-2.12q *

$mkdir /tmp/test
$cd /tmp/test
$tar xzvf /usr/portage/distfiles/util-linux-2.12q.tar.gz
$ cd util-linux-2.12q/
$ ./configure && make
$/mount/mount LABEL=TEMP /mnt/tmp/
all fine
$umount /mnt/tmp
$mount LABEL=TEMP /mnt/tmp
mount: special device LABEL=TEMP does not exist

so as I can understand all problems in patches
Comment 14 Evgeniy Dushistov 2005-12-16 07:49:53 UTC
I made some investigations,
and find out that "vfat lables" can be two types:
1)part of "vfat superblock"
2)file in root directory with attribute "volume label"

e2fsprogs 1.38 support only the first type.

current development version of e2fsprogs support the first and  the second type.

This ability required changing only a couple of lines in e2fsprogs

Here is patch for ebuild:

--- /usr/portage/sys-fs/e2fsprogs/e2fsprogs-1.38.ebuild 2005-11-10 07:06:24.000000000 +0300
+++ e2fsprogs-1.38-r1.ebuild    2005-12-16 10:34:35.021972250 +0300
@@ -28,6 +28,10 @@
        epatch "${FILESDIR}"/e2fsprogs-1.36-makefile.patch
        # Fix segfault with disconnected inodes #91751
        epatch "${FILESDIR}"/${P}-disconnected-inodes.patch
+       # add ability to read vfat label not only from "vfat superblock" #77692
+       epatch "${FILESDIR}"/${P}-vfat-label.patch
+
+
 
        # kernel headers use the same defines as e2fsprogs and can cause issues #48829
        sed -i \

patch for e2fsprogs in attachment
Comment 15 Evgeniy Dushistov 2005-12-16 07:51:21 UTC
Created attachment 74886 [details, diff]
add ability to read vfat labels for every type of "vfat partition"
Comment 16 SpanKY gentoo-dev 2005-12-18 19:15:23 UTC
added to 1.38-r1, thanks