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.
*** Bug 77693 has been marked as a duplicate of this bug. ***
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 ?
>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"
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?
it seems that only vfat labels are broken atm ... e2fsprogs bug really
could you try e2fsprogs-1.36-r1 ?
>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
what version of util-linux ? 2.12q should have the segfault fixed ...
>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
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) ?
>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.
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
>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
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
Created attachment 74886 [details, diff] add ability to read vfat labels for every type of "vfat partition"
added to 1.38-r1, thanks