First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 77692
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Evgeniy Dushistov <dushistov@mail.ru>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
log # emerge util-linux > log 2>&1 text/plain Evgeniy Dushistov 2005-01-13 07:03 0000 85.51 KB Details
e2fsprogs-1.38-vfat-label.patch add ability to read vfat labels for every type of "vfat partition" patch Evgeniy Dushistov 2005-12-16 07:51 0000 6.24 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 77692 depends on: Show dependency tree
Bug 77692 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-12 08:08 0000
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 From Gregorio Guidi (RETIRED) 2005-01-12 08:21:56 0000 -------
*** Bug 77693 has been marked as a duplicate of this bug. ***

------- Comment #2 From SpanKY 2005-01-12 15:15:23 0000 -------
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 From Evgeniy Dushistov 2005-01-13 06:54:27 0000 -------
>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 From Evgeniy Dushistov 2005-01-13 07:03:46 0000 -------
Created an attachment (id=48392) [edit]
# 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 From SpanKY 2005-01-13 07:14:32 0000 -------
it seems that only vfat labels are broken atm ... e2fsprogs bug really

------- Comment #6 From SpanKY 2005-03-09 15:39:40 0000 -------
could you try e2fsprogs-1.36-r1 ?

------- Comment #7 From Evgeniy Dushistov 2005-03-10 07:31:33 0000 -------
>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 From SpanKY 2005-03-10 07:59:18 0000 -------
what version of util-linux ?  2.12q should have the segfault fixed ...

------- Comment #9 From Evgeniy Dushistov 2005-03-10 12:24:03 0000 -------
>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 From SpanKY 2005-03-10 20:07:03 0000 -------
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 From Evgeniy Dushistov 2005-03-11 11:00:10 0000 -------
>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 From Robin Johnson 2005-03-17 19:00:19 0000 -------
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 From Evgeniy Dushistov 2005-03-21 07:21:22 0000 -------
>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 From Evgeniy Dushistov 2005-12-16 07:49:53 0000 -------
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 From Evgeniy Dushistov 2005-12-16 07:51:21 0000 -------
Created an attachment (id=74886) [edit]
add ability to read vfat labels for every type of "vfat partition" 

------- Comment #16 From SpanKY 2005-12-18 19:15:23 0000 -------
added to 1.38-r1, thanks

First Last Prev Next    No search results available      Search page      Enter new bug