Re: LABEL=music doesn't work for /dev/sdg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 02, 2007 at 02:15:41PM +0100, Kay Sievers wrote:
> On Nov 2, 2007 11:09 AM, Harald Dunkel <harald.dunkel@xxxxxxxxxxx> wrote:
> > My /etc/fstab contains
> >
> > LABEL=music    /music    auto    user,noauto,relatime    0 0
> >
> > to mount my usb music player on request. But if I try to run
> > "mount /music", then I get
> >
> >      mount: No medium found
> >
> > If I change fstab to
> >
> > /dev/disk/by-label/music /music    auto    user,noauto,relatime    0 0
> 
> What does:
>   /sbin/blkid /dev/sdg
> 
> and:
>   /lib/udev/vol_id /dev/sdg

 and also

   cat /proc/partitions

 and

   ldd /bin/mount


 BTW, if I read correctly code in e2fsprogs/lib/blkid/devname.c
 it doesn't work as expected when you have in /proc/partitions:

    sda
    sda1
    sdb    <---- !
    loop0

 in that case the heuristic in the probe_all() function skips
 unpartitioned disk "sdb".

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux