Mailing List Archive


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

Re: [tlug] See USB drive over network [SOLVED]



Hi Dave,

Dave M G wrote:
[   11.967367] EXT4 FS on md0, internal journal on md0:8
[   12.271286] usb-storage: device scan complete
[ 12.274273] scsi 8:0:0:0: Direct-Access HTC Android Phone 0100 PQ: 0 ANSI: 2

It seems like it's identifying itself with some useful information. Surely I can use this to get Ubuntu to name it consistently when mounted?

You can set the device name for the block device in quite a general way using udev, so that it can depend on the USB IDs or something else. Unfortunately udev is not well documented.

Secondly, even once you have the device name, note that it is in fact nautillus/GNOME that does the actual mounting of the device (via notifications from HAL), as far as I understand it.

Maybe one way round this would be to add another line to the udev configuration so that udev calls mount itself (and umount force when it is unplugged . . .)

Alternatively, you could have udev set the device name and actually mount the device at the same time as creating the sshfs mount.

But this is opening a whole new can of worms and setting the filesystem label is, as first suggested, a convenient way that already works so no need to mess with it ;-)


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links