* [gentoo-user] gnome-volume-manager @ 2006-02-07 1:04 Iain Buchanan 2006-02-07 1:26 ` Ryan Tandy 0 siblings, 1 reply; 16+ messages in thread From: Iain Buchanan @ 2006-02-07 1:04 UTC (permalink / raw To: gentoo-user Hi, due to the recent discussions about automounting usb drives, I thought I'd try gnome-volume-manager again. I compiled it, started dbus and hald, started gnome-volume-manager, restarted gnome (just in case), but when I plug in a drive I get (in /var/log/messages): Feb 7 10:31:08 orpheus FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Feb 7 10:31:08 orpheus Unable to load NLS charset utf8 Feb 7 10:31:08 orpheus FAT: IO charset utf8 not found hmmm, why can't it find utf8? thanks, -- Iain Buchanan <iain at netspace dot net dot au> Parting is such sweet sorrow. -William Shakespeare -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-07 1:04 [gentoo-user] gnome-volume-manager Iain Buchanan @ 2006-02-07 1:26 ` Ryan Tandy 2006-02-07 12:29 ` Iain Buchanan 0 siblings, 1 reply; 16+ messages in thread From: Ryan Tandy @ 2006-02-07 1:26 UTC (permalink / raw To: gentoo-user Iain Buchanan wrote: > Hi, > > due to the recent discussions about automounting usb drives, I thought > I'd try gnome-volume-manager again. I compiled it, started dbus and > hald, started gnome-volume-manager, restarted gnome (just in case), but > when I plug in a drive I get (in /var/log/messages): > > > Feb 7 10:31:08 orpheus FAT: utf8 is not a recommended IO charset for > FAT filesystems, filesystem will be case sensitive! > Feb 7 10:31:08 orpheus Unable to load NLS charset utf8 > Feb 7 10:31:08 orpheus FAT: IO charset utf8 not found > > hmmm, why can't it find utf8? > > thanks, > Make sure you have the utf8 charset compiled into your kernel - in my menuconfig it's File Systems -> Native Language Support -> NLS UTF8 (the bottommost option). Also under File Systems, you can change the default code page and IO charset for vfat filesystems, which should remove the warning. HTH. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-07 1:26 ` Ryan Tandy @ 2006-02-07 12:29 ` Iain Buchanan 2006-02-07 12:44 ` Iain Buchanan 0 siblings, 1 reply; 16+ messages in thread From: Iain Buchanan @ 2006-02-07 12:29 UTC (permalink / raw To: gentoo-user On Mon, 2006-02-06 at 17:26 -0800, Ryan Tandy wrote: > Also under File Systems, you can change the > default code page and IO charset for vfat filesystems, which should > remove the warning. any suggestions for these last two? I don't really have much of an idea... thanks, -- Iain Buchanan <iain at netspace dot net dot au> Every country has the government it deserves. -- Joseph De Maistre -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-07 12:29 ` Iain Buchanan @ 2006-02-07 12:44 ` Iain Buchanan 2006-02-08 1:33 ` Ryan Tandy 0 siblings, 1 reply; 16+ messages in thread From: Iain Buchanan @ 2006-02-07 12:44 UTC (permalink / raw To: gentoo-user On Tue, 2006-02-07 at 21:59 +0930, Iain Buchanan wrote: > On Mon, 2006-02-06 at 17:26 -0800, Ryan Tandy wrote: > > > Also under File Systems, you can change the > > default code page and IO charset for vfat filesystems, which should > > remove the warning. > > any suggestions for these last two? I don't really have much of an > idea... I left them as is, and compiled nsl_utf8 as a module (so I don't have to restart). When I load the module and plug in the drive, /var/log/messages now shows: Feb 7 22:07:18 orpheus FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! but the drive still mounts... -- Iain Buchanan <iain at netspace dot net dot au> "Besides, I think [Slackware] sounds better than 'Microsoft,' don't you?" (By Patrick Volkerding) -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-07 12:44 ` Iain Buchanan @ 2006-02-08 1:33 ` Ryan Tandy 2006-02-08 1:58 ` Iain Buchanan 0 siblings, 1 reply; 16+ messages in thread From: Ryan Tandy @ 2006-02-08 1:33 UTC (permalink / raw To: gentoo-user Iain Buchanan wrote: > On Tue, 2006-02-07 at 21:59 +0930, Iain Buchanan wrote: > >> On Mon, 2006-02-06 at 17:26 -0800, Ryan Tandy wrote: >> >> >>> Also under File Systems, you can change the >>> default code page and IO charset for vfat filesystems, which should >>> remove the warning. >>> >> any suggestions for these last two? I don't really have much of an >> idea... >> Depends on your location and what NLS you normally use. I'm in North America, so I use the ISO 8859-1 charset and code page 437, both for Western European language support. If you don't intend to use your computer in any language other than English, those are probably fine. > > I left them as is, and compiled nsl_utf8 as a module (so I don't have to > restart). When I load the module and plug in the > drive, /var/log/messages now shows: > > Feb 7 22:07:18 orpheus FAT: utf8 is not a recommended IO charset for > FAT filesystems, filesystem will be case sensitive! > > but the drive still mounts... > This is a warning, not an error. You can use Unicode on vfat filesystems, but it's not recommended as vfat is not usually used in a case sensitive context. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-08 1:33 ` Ryan Tandy @ 2006-02-08 1:58 ` Iain Buchanan 2006-02-08 2:14 ` Ryan Tandy 0 siblings, 1 reply; 16+ messages in thread From: Iain Buchanan @ 2006-02-08 1:58 UTC (permalink / raw To: gentoo-user On Tue, 2006-02-07 at 17:33 -0800, Ryan Tandy wrote: > Iain Buchanan wrote: [snip] > > I left them as is, and compiled nsl_utf8 as a module (so I don't have to > > restart). When I load the module and plug in the > > drive, /var/log/messages now shows: > > > > Feb 7 22:07:18 orpheus FAT: utf8 is not a recommended IO charset for > > FAT filesystems, filesystem will be case sensitive! > > > > but the drive still mounts... > > > This is a warning, not an error. You can use Unicode on vfat > filesystems, but it's not recommended as vfat is not usually used in a > case sensitive context. So what do I do if I don't want it to be case sensitive? If I don't load nls_utf8, then I can't access the drive... But to access the drive I need nls_utf8... hmmm.... -- Iain Buchanan <iain at netspace dot net dot au> Never ask two questions in a business letter. The reply will discuss the one you are least interested, and say nothing about the other. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-08 1:58 ` Iain Buchanan @ 2006-02-08 2:14 ` Ryan Tandy 2006-02-09 5:38 ` Iain Buchanan 0 siblings, 1 reply; 16+ messages in thread From: Ryan Tandy @ 2006-02-08 2:14 UTC (permalink / raw To: gentoo-user Iain Buchanan wrote: > On Tue, 2006-02-07 at 17:33 -0800, Ryan Tandy wrote: > >> Iain Buchanan wrote: >> > [snip] > >>> I left them as is, and compiled nsl_utf8 as a module (so I don't have to >>> restart). When I load the module and plug in the >>> drive, /var/log/messages now shows: >>> >>> Feb 7 22:07:18 orpheus FAT: utf8 is not a recommended IO charset for >>> FAT filesystems, filesystem will be case sensitive! >>> >>> but the drive still mounts... >>> >>> >> This is a warning, not an error. You can use Unicode on vfat >> filesystems, but it's not recommended as vfat is not usually used in a >> case sensitive context. >> > > So what do I do if I don't want it to be case sensitive? If I don't > load nls_utf8, then I can't access the drive... But to access the drive > I need nls_utf8... > > hmmm.... > From man mount: Mount options for fat (Note: fat is not a separate filesystem, but a common part of the msdos, umsdos and vfat filesystems.) <snip> codepage=value Sets the codepage for converting to shortname characters on FAT and VFAT filesystems. By default, codepage 437 is used. <snip> iocharset=value Character set to use for converting between 8 bit characters and 16 bit Unicode characters. The default is iso8859-1. Long filenames are stored on disk in Unicode format. Try compiling the nls_iso8859-1 module, and mount the drive using that iocharset. The man page notwithstanding, the default CP and iocharset can both be changed in the kernel config. If that doesn't work, then I've misunderstood the error/warning, and you need to look at the 'utf8' option for vfat in man mount. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-08 2:14 ` Ryan Tandy @ 2006-02-09 5:38 ` Iain Buchanan 2006-02-09 5:55 ` Ow Mun Heng ` (2 more replies) 0 siblings, 3 replies; 16+ messages in thread From: Iain Buchanan @ 2006-02-09 5:38 UTC (permalink / raw To: gentoo-user OK, I finally got some more time to spend on this, and I'll give all info again, just in case anyone can help. gnome-volume-manager kind-of works! When I insert a usb storage drive, I get this message in /var/log/messages: [Attached scsi disk blah...] Feb 9 14:48:31 orpheus FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Feb 9 14:48:31 orpheus Unable to load NLS charset utf8 Feb 9 14:48:31 orpheus FAT: IO charset utf8 not found But when I mount the drive manually: sudo mount /dev/sdd1 /mnt/tmp or sudo mount -o codepage=437,iocharset=iso8859-1 /dev/sdd1 /mnt/tmp/ it mounts fine, gnome-volume-manager detects that I've mounted it and opens a window in the "root" folder of the drive (/mnt/tmp). So why doesn't it do it automatically? I tried building the module nls_utf8. When I load the module and plug in the drive, /var/log/messages now shows: Feb 7 22:07:18 orpheus FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! but the drive still mounts... This doesn't seem to be the right way to go, as I can mount the drive _without_ nls_utf8, but gnome-volume-manager can't... thanks for any comments! -- Iain Buchanan <iain at netspace dot net dot au> "I gained nothing at all from Supreme Enlightenment, and for that very reason it is called Supreme Enlightenment." -- Gotama Buddha -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-09 5:38 ` Iain Buchanan @ 2006-02-09 5:55 ` Ow Mun Heng 2006-02-09 6:43 ` Iain Buchanan 2006-02-10 4:58 ` Iain Buchanan 2006-02-09 18:32 ` Ryan Tandy 2006-02-09 19:52 ` [gentoo-user] gnome-volume-manager Harm Geerts 2 siblings, 2 replies; 16+ messages in thread From: Ow Mun Heng @ 2006-02-09 5:55 UTC (permalink / raw To: gentoo-user On Thu, 2006-02-09 at 15:08 +0930, Iain Buchanan wrote: > OK, I finally got some more time to spend on this, and I'll give all > info again, just in case anyone can help. > > gnome-volume-manager kind-of works! When I insert a usb storage drive, > I get this message in /var/log/messages: > > [Attached scsi disk blah...] > Feb 9 14:48:31 orpheus FAT: utf8 is not a recommended IO charset for > FAT filesystems, filesystem will be case sensitive! > Feb 9 14:48:31 orpheus Unable to load NLS charset utf8 > Feb 9 14:48:31 orpheus FAT: IO charset utf8 not found Not sure.. is UTF8 compiled in? I don't get this warning at all. $grep -i utf /usr/src/linux/.config CONFIG_NLS_DEFAULT="utf8" CONFIG_NLS_UTF8=y $egrep -i '(437|8859)' /usr/src/linux/.config CONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_ISO8859_1=y -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 13:55:11 up 3 days, 4:55, 6 users, load average: 1.61, 1.07, 0.89 -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-09 5:55 ` Ow Mun Heng @ 2006-02-09 6:43 ` Iain Buchanan 2006-02-10 4:58 ` Iain Buchanan 1 sibling, 0 replies; 16+ messages in thread From: Iain Buchanan @ 2006-02-09 6:43 UTC (permalink / raw To: gentoo-user On Thu, 2006-02-09 at 13:55 +0800, Ow Mun Heng wrote: > On Thu, 2006-02-09 at 15:08 +0930, Iain Buchanan wrote: > > OK, I finally got some more time to spend on this, and I'll give all > > info again, just in case anyone can help. > > > > gnome-volume-manager kind-of works! When I insert a usb storage drive, > > I get this message in /var/log/messages: > > > > [Attached scsi disk blah...] > > Feb 9 14:48:31 orpheus FAT: utf8 is not a recommended IO charset for > > FAT filesystems, filesystem will be case sensitive! > > Feb 9 14:48:31 orpheus Unable to load NLS charset utf8 > > Feb 9 14:48:31 orpheus FAT: IO charset utf8 not found > > Not sure.. is UTF8 compiled in? I don't get this warning at all. hmmm, my options are different slightly: > CONFIG_NLS_DEFAULT="utf8" > CONFIG_NLS_UTF8=y CONFIG_NLS_DEFAULT="iso8859-1" # CONFIG_NLS_UTF8 is not set > CONFIG_FAT_DEFAULT_CODEPAGE=437 > CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" > CONFIG_NLS_CODEPAGE_437=y > CONFIG_NLS_ISO8859_1=y same as mine. let me try that and see... -- Iain Buchanan <iain at netspace dot net dot au> Three o'clock in the afternoon is always just a little too late or a little too early for anything you want to do. -- Jean-Paul Sartre -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-09 5:55 ` Ow Mun Heng 2006-02-09 6:43 ` Iain Buchanan @ 2006-02-10 4:58 ` Iain Buchanan 1 sibling, 0 replies; 16+ messages in thread From: Iain Buchanan @ 2006-02-10 4:58 UTC (permalink / raw To: gentoo-user On Thu, 2006-02-09 at 13:55 +0800, Ow Mun Heng wrote: > On Thu, 2006-02-09 at 15:08 +0930, Iain Buchanan wrote: > > OK, I finally got some more time to spend on this, and I'll give all > > info again, just in case anyone can help. > > > > gnome-volume-manager kind-of works! When I insert a usb storage drive, > > I get this message in /var/log/messages: > > > > [Attached scsi disk blah...] > > Feb 9 14:48:31 orpheus FAT: utf8 is not a recommended IO charset for > > FAT filesystems, filesystem will be case sensitive! > > Feb 9 14:48:31 orpheus Unable to load NLS charset utf8 > > Feb 9 14:48:31 orpheus FAT: IO charset utf8 not found > > Not sure.. is UTF8 compiled in? I don't get this warning at all. > > $grep -i utf /usr/src/linux/.config > CONFIG_NLS_DEFAULT="utf8" > CONFIG_NLS_UTF8=y hey, can you tail /var/log/messages for me when you plug in a drive, and tell me if you see: Feb 10 14:26:38 orpheus FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! I just recompiled my kernel like yours, above, and I still get this message (but at least g-v-m auto mounts the drive :) thanks, -- Iain Buchanan <iain at netspace dot net dot au> A little suffering is good for the soul. -- Kirk, "The Corbomite Maneuver", stardate 1514.0 -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] gnome-volume-manager 2006-02-09 5:38 ` Iain Buchanan 2006-02-09 5:55 ` Ow Mun Heng @ 2006-02-09 18:32 ` Ryan Tandy 2006-02-09 19:52 ` [gentoo-user] gnome-volume-manager Harm Geerts 2 siblings, 0 replies; 16+ messages in thread From: Ryan Tandy @ 2006-02-09 18:32 UTC (permalink / raw To: gentoo-user Iain Buchanan wrote: <snip> > This doesn't seem to be the right way to go, as I can mount the drive > _without_ nls_utf8, but gnome-volume-manager can't... > > thanks for any comments! > So GVM is trying to force it to utf8. I would try two things: 1) I'm not familiar with GVM at all, but see if there's an option somewhere to make it *not* mount vfat partitions as Unicode. 2) Failing that, make gvm USE -unicode -utf8. HTH. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-user] Re: gnome-volume-manager 2006-02-09 5:38 ` Iain Buchanan 2006-02-09 5:55 ` Ow Mun Heng 2006-02-09 18:32 ` Ryan Tandy @ 2006-02-09 19:52 ` Harm Geerts 2006-02-09 23:59 ` Iain Buchanan 2 siblings, 1 reply; 16+ messages in thread From: Harm Geerts @ 2006-02-09 19:52 UTC (permalink / raw To: gentoo-user On Thursday 09 February 2006 06:38, Iain Buchanan wrote: > [Attached scsi disk blah...] > Feb 9 14:48:31 orpheus FAT: utf8 is not a recommended IO charset for > FAT filesystems, filesystem will be case sensitive! > Feb 9 14:48:31 orpheus Unable to load NLS charset utf8 > Feb 9 14:48:31 orpheus FAT: IO charset utf8 not found > > But when I mount the drive manually: > sudo mount /dev/sdd1 /mnt/tmp > or > sudo mount -o codepage=437,iocharset=iso8859-1 /dev/sdd1 /mnt/tmp/ > > it mounts fine, gnome-volume-manager detects that I've mounted it and > opens a window in the "root" folder of the drive (/mnt/tmp). > > So why doesn't it do it automatically? I tried building the module > nls_utf8. When I load the module and plug in the > drive, /var/log/messages now shows: > > Feb 7 22:07:18 orpheus FAT: utf8 is not a recommended IO charset for > FAT filesystems, filesystem will be case sensitive! > > but the drive still mounts... > > This doesn't seem to be the right way to go, as I can mount the drive > _without_ nls_utf8, but gnome-volume-manager can't... I *think* gvm uses fstab to override defaults. You can try to add an entry for your usb device to /etc/fstab /dev/sdd1 /gvm/mountpoint vfat noauto,user,codepage=437,iocharset=iso8859-1 0 0 -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: gnome-volume-manager 2006-02-09 19:52 ` [gentoo-user] gnome-volume-manager Harm Geerts @ 2006-02-09 23:59 ` Iain Buchanan 2006-02-10 1:45 ` Harm Geerts 0 siblings, 1 reply; 16+ messages in thread From: Iain Buchanan @ 2006-02-09 23:59 UTC (permalink / raw To: gentoo-user On Thu, 2006-02-09 at 20:52 +0100, Harm Geerts wrote: > On Thursday 09 February 2006 06:38, Iain Buchanan wrote: > > This doesn't seem to be the right way to go, as I can mount the drive > > _without_ nls_utf8, but gnome-volume-manager can't... > I *think* gvm uses fstab to override defaults. > You can try to add an entry for your usb device to /etc/fstab > > /dev/sdd1 /gvm/mountpoint vfat noauto,user,codepage=437,iocharset=iso8859-1 0 > 0 could do, but I have multiple drives (media readers, external hd's, etc) so I can't do this for all of them, especially when I plug them in random orders. And I don't want to play with udev (just yet :) -- Iain Buchanan <iain at netspace dot net dot au> Reader, suppose you were an idiot. And suppose you were a member of Congress. But I repeat myself. -- Mark Twain -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* [gentoo-user] Re: gnome-volume-manager 2006-02-09 23:59 ` Iain Buchanan @ 2006-02-10 1:45 ` Harm Geerts 2006-02-10 4:55 ` Iain Buchanan 0 siblings, 1 reply; 16+ messages in thread From: Harm Geerts @ 2006-02-10 1:45 UTC (permalink / raw To: gentoo-user On Friday 10 February 2006 00:59, Iain Buchanan wrote: > On Thu, 2006-02-09 at 20:52 +0100, Harm Geerts wrote: > > On Thursday 09 February 2006 06:38, Iain Buchanan wrote: > > > This doesn't seem to be the right way to go, as I can mount the drive > > > _without_ nls_utf8, but gnome-volume-manager can't... > > > > I *think* gvm uses fstab to override defaults. > > You can try to add an entry for your usb device to /etc/fstab > > > > /dev/sdd1 /gvm/mountpoint vfat noauto,user,codepage=437,iocharset=iso8859 > >-1 0 0 > > could do, but I have multiple drives (media readers, external hd's, etc) > so I can't do this for all of them, especially when I plug them in > random orders. And I don't want to play with udev (just yet :) udev is great for this. As an example I'll try to go through the config for my usbstick. With my thanks to http://www.reactivated.net/writing_udev_rules.html for the great guide, here comes the cliffnote version :) My usbstick comes up as /dev/sdc # udevinfo -a -p $(udevinfo -q path -n /dev/sdc) <snipped> looking at device '/devices/pci0000:00/0000:00:02.1/usb1/1-9': ID=="1-9" BUS=="usb" DRIVER=="usb" SYSFS{configuration}=="Storage" SYSFS{serial}=="ABCD12345678" SYSFS{product}=="2.0 Card Driver" SYSFS{manufacturer}=="Singim" SYSFS{maxchild}=="0" SYSFS{version}==" 2.00" SYSFS{devnum}=="5" SYSFS{speed}=="480" SYSFS{bMaxPacketSize0}=="64" SYSFS{bNumConfigurations}=="1" SYSFS{bDeviceProtocol}=="00" SYSFS{bDeviceSubClass}=="00" SYSFS{bDeviceClass}=="00" SYSFS{bcdDevice}=="014f" SYSFS{idProduct}=="2005" SYSFS{idVendor}=="0dda" SYSFS{bMaxPower}=="500mA" SYSFS{bmAttributes}=="80" SYSFS{bConfigurationValue}=="1" SYSFS{bNumInterfaces}==" 1" I've removed some device entries returned by udevinfo, but this is the device entry that is usefull for what I want. It gives us information on how I can let udev recognize the usbstick. BUS=="usb" SYSFS{serial}=="ABCD12345678" SYSFS{product}=="2.0 Card Driver" SYSFS{manufacturer}=="Singim" These are the keys I'll use to match the usbstick, udevinfo already formatted them for use in udev rules. Note: You cannot mix keys from different device entries! I've chosen the device entry /devices/pci0000:00/0000:00:02.1/usb1/1-9, so I can only use keys from that device in the rule. The only exception are global keys, KERNEL (the kernel device name) is a global which can be used with all device entries. The usbstick came up as /dev/sdc, so I can use this in for the KERNEL key. KERNEL=="sd*" This will match sda2, sdb, sdc1 etc. so it doesn't matter in when the usbstick is inserted or how many partitions are on it. Now I should have enough keys to distinct the usbstick from other devices, I only need to name it. NAME="%k" %k is replaced with the kernel device name (sd*) Note: I'm using = for assignment instead of == for matching And now the most important part, a symlink with a fixed name so even us humans can recognize the usbstick. Now I will always be able to access the usbstick on the same location, the symlink will always point to the device file of my usbstick. SYMLINK="singim%n" %n is replaced with the partitionnumber of the drive It creates a symlink to the value in NAME Now I have all the data to complete the rule, the keys are seperated with a comma ',' Note: this goes on 1 line !!! # cat /etc/udev/rules.d/10-local.rules KERNEL=="sd*", BUS=="usb ",SYSFS{serial}=="ABCD12345678 ",SYSFS{manufacturer}=="Singim",SYSFS{product}=="2.0Card Driver", NAME="%k", SYMLINK="singim%n" After you've added/changed a rule run udevstart to let the changes take effect # udevstart If the device didn't show up you probably made a mistake in the udev rule # ls -l /dev/singim* lrwxrwxrwx 1 root root 3 feb 10 01:39 /dev/singim -> sdc lrwxrwxrwx 1 root root 4 feb 10 01:39 /dev/singim1 -> sdc1 Done! No matter what, my usbstick can always be accessed through /dev/singim Note: http://www.reactivated.net mentions something about GVM not being able to use symlinks, in that case you could swap the NAME and SYMLINK values. NAME="singim%n", SYMLINK="%k" Good luck :-) -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [gentoo-user] Re: gnome-volume-manager 2006-02-10 1:45 ` Harm Geerts @ 2006-02-10 4:55 ` Iain Buchanan 0 siblings, 0 replies; 16+ messages in thread From: Iain Buchanan @ 2006-02-10 4:55 UTC (permalink / raw To: gentoo-user On Fri, 2006-02-10 at 02:45 +0100, Harm Geerts wrote: > On Friday 10 February 2006 00:59, Iain Buchanan wrote: > > On Thu, 2006-02-09 at 20:52 +0100, Harm Geerts wrote: > > > On Thursday 09 February 2006 06:38, Iain Buchanan wrote: > > > > This doesn't seem to be the right way to go, as I can mount the drive > > > > _without_ nls_utf8, but gnome-volume-manager can't... > > > > > > I *think* gvm uses fstab to override defaults. > > > You can try to add an entry for your usb device to /etc/fstab > > > > > > /dev/sdd1 /gvm/mountpoint vfat noauto,user,codepage=437,iocharset=iso8859 > > >-1 0 0 > > > > could do, but I have multiple drives (media readers, external hd's, etc) > > so I can't do this for all of them, especially when I plug them in > > random orders. And I don't want to play with udev (just yet :) > > udev is great for this. I know, but look at the length of your udev howto - It doesn't compare to gvm, which should do it as simply as emerge then plug-in. Especially if I'm setting up multiple machines, for any arbitrary usb-disk - what then? udev rules can't help me. thanks anyway :) -- Iain Buchanan <iain at netspace dot net dot au> Life is a whim of several billion cells to be you for a while. -- gentoo-user@gentoo.org mailing list ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2006-02-10 5:05 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-02-07 1:04 [gentoo-user] gnome-volume-manager Iain Buchanan 2006-02-07 1:26 ` Ryan Tandy 2006-02-07 12:29 ` Iain Buchanan 2006-02-07 12:44 ` Iain Buchanan 2006-02-08 1:33 ` Ryan Tandy 2006-02-08 1:58 ` Iain Buchanan 2006-02-08 2:14 ` Ryan Tandy 2006-02-09 5:38 ` Iain Buchanan 2006-02-09 5:55 ` Ow Mun Heng 2006-02-09 6:43 ` Iain Buchanan 2006-02-10 4:58 ` Iain Buchanan 2006-02-09 18:32 ` Ryan Tandy 2006-02-09 19:52 ` [gentoo-user] gnome-volume-manager Harm Geerts 2006-02-09 23:59 ` Iain Buchanan 2006-02-10 1:45 ` Harm Geerts 2006-02-10 4:55 ` Iain Buchanan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox