Can't setup usbmount on Ubuntu 12.04.1 LST
Hi,
on my newly installed Ubuntu 12.04.1 LST system I removed unity because I prefer Window Maker. Now I must to setup some things, like automount USB sticks. I installed the usbmount package and setup it in /etc/usbmount/usbmount.conf file: ENABLED=1 MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3 /media/usb4 /media/usb5 /media/usb6 /media/usb7" FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus" MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime ,rw" FS_MOUNTOPTIONS="-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" VERBOSE=no Now, when I plug the USB Stick I can't open it's directory: /media/usb0 It has permissions: $ ls -l /media lrwxrwxrwx 1 root root 4 aug 30 10:46 usb -> usb0 drwxrwx--- 2 root floppy 4096 jan 1 1970 usb0 I added my username to floppy group by running 'sudo vigr' and 'sudo vigr -s'. In the syslog I have these messages: Aug 30 11:20:27 ubuntucsp kernel: [15046.346009] sd 15:0:0:0: [sdc] Attached SCSI removable disk Aug 30 11:20:27 ubuntucsp usbmount[13585]: /dev/sdc does not contain a filesystem or disklabel Aug 30 11:20:27 ubuntucsp usbmount[13606]: executing command: mount -tvfat -osync,noexec,nodev,noati me,nodiratime,rw,gid=floppy,dmask=0007,fmask=0117 /dev/sdc1 /media/usb0 Aug 30 11:20:27 ubuntucsp usbmount[13606]: executing command: run-parts /etc/usbmount/mount.d When I changed the /etc/usbmount/usbmount.conf file to: VERBOSE=yes I get followings messages: Aug 30 11:29:44 ubuntucsp kernel: [15602.978197] sd 16:0:0:0: [sdc] Attached SCSI removable disk Aug 30 11:29:44 ubuntucsp usbmount[13769]: loaded usbmount configurations Aug 30 11:29:44 ubuntucsp usbmount[13769]: trying to acquire lock /var/run/usbmount/.mount.lock Aug 30 11:29:44 ubuntucsp usbmount[13769]: acquired lock /var/run/usbmount/.mount.lock Aug 30 11:29:44 ubuntucsp usbmount[13769]: /dev/sdc does not contain a filesystem or disklabel Aug 30 11:29:44 ubuntucsp usbmount[13793]: loaded usbmount configurations Aug 30 11:29:44 ubuntucsp usbmount[13793]: trying to acquire lock /var/run/usbmount/.mount.lock Aug 30 11:29:44 ubuntucsp usbmount[13793]: acquired lock /var/run/usbmount/.mount.lock Aug 30 11:29:44 ubuntucsp usbmount[13793]: /dev/sdc1 contains filesystem type vfat Aug 30 11:29:44 ubuntucsp usbmount[13793]: mountpoint /media/usb0 is available for /dev/sdc1 Aug 30 11:29:44 ubuntucsp usbmount[13793]: executing command: mount -tvfat -osync,noexec,nodev,noati me,nodiratime,rw,gid=floppy,dmask=0007,fmask=0117 /dev/sdc1 /media/usb0 Aug 30 11:29:44 ubuntucsp usbmount[13793]: executing command: run-parts /etc/usbmount/mount.d Aug 30 11:29:44 ubuntucsp usbmount[13793]: usbmount execution finished What is the solution? -- Regards from Pal -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Can't setup usbmount on Ubuntu 12.04.1 LST
On 30/08/12 19:31, Csányi Pál wrote:
Hi, on my newly installed Ubuntu 12.04.1 LST system I removed unity because I prefer Window Maker. Now I must to setup some things, like automount USB sticks. I installed the usbmount package and setup it in /etc/usbmount/usbmount.conf file: ENABLED=1 MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3 /media/usb4 /media/usb5 /media/usb6 /media/usb7" FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus" MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime ,rw" FS_MOUNTOPTIONS="-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" VERBOSE=no Now, when I plug the USB Stick I can't open it's directory: /media/usb0 In the first instance, the usb stick will be designated as dev/sddX[***] and not usb0. Secondly, the usb stick has to be formatted and when you do this it will have a partition sdd1. Assuming that you youself have not formatted it (for, say, ext4, it would be formatted at factory to vfat) so if you want to mount it you would, in a terminal, issue this command: mount -t vfat /dev/sdd1 /media and you should then be able to access it. HOWEVER, I will bet my bottom dollar that you will only be able to access it if you were root because the usb is "owned" at the moment by root. So, if you want to access it as a user then, as root, issue these commands (in a terminal): chown -R <youruserloginname>.group /dev/sdd1 [ENTER] chmod -R u=rwx,g=rx,o= /dev/sdd1 [Enter] and you will then be able to access it as a user. Oh, there is no need to do anything about any entries in fstab for it because it will be mounted as soon as you plug it in. [***] The allocation of the 'sd' depends on what other devices you have on your system. For example if you have 2 HDDs and a CDROM reader and DEV writer these will be 'named; sda, sdb, sdc, sdd so the USB stick will end up being sde - if you see what I mean. BC -- Using openSUSE 12.2 x86_64 KDE 4.8.4 & kernel 3.5.3-1 on a system with- AMD FX 8-core 3.6/4.2GHz processor 16GB PC14900/1866MHz Quad Channel Corsair "Vengeance" RAM Gigabyte AMD3+ m/board; Gigabyte nVidia GTX550Ti 1GB DDR5 GPU -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Can't setup usbmount on Ubuntu 12.04.1 LST
Basil Chupin <blchupin@iinet.net.au> writes:
> On 30/08/12 19:31, Csányi Pál wrote: >> >> on my newly installed Ubuntu 12.04.1 LST system I removed unity because >> I prefer Window Maker. >> >> Now I must to setup some things, like automount USB sticks. >> >> I installed the usbmount package and setup it in >> /etc/usbmount/usbmount.conf file: >> >> ENABLED=1 >> MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3 >> /media/usb4 /media/usb5 /media/usb6 /media/usb7" >> FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus" >> MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime ,rw" >> FS_MOUNTOPTIONS="-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" >> VERBOSE=no >> >> Now, when I plug the USB Stick I can't open it's directory: >> /media/usb0 > > In the first instance, the usb stick will be designated as > dev/sddX[***] and not usb0. /media/usb0 is the mount point only. > Secondly, the usb stick has to be formatted and when you do this it > will have a partition sdd1. > > Assuming that you youself have not formatted it (for, say, ext4, it > would be formatted at factory to vfat) so if you want to mount it you > would, in a terminal, issue this command: > > mount -t vfat /dev/sdd1 /media > > and you should then be able to access it. The USB was formatted as fat32 filesystem so in 'usbmount.config' are lines for this: FS_MOUNTOPTIONS="-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" I don't want to mount it but want to ,et it mount automatically by 'usbmount'. > HOWEVER, I will bet my bottom dollar that you will only be able to > access it if you were root because the usb is "owned" at the moment by > root. So, if you want to access it as a user then, as root, issue > these commands (in a terminal): > > chown -R <youruserloginname>.group /dev/sdd1 [ENTER] > > chmod -R u=rwx,g=rx,o= /dev/sdd1 [Enter] > > and you will then be able to access it as a user. As I said, I'm using 'usbmount' so I should not mount it manually, right? > Oh, there is no need to do anything about any entries in fstab for it > because it will be mounted as soon as you plug it in. Maybe I didn't mentioned before: I purged nautilus and as many as I could Unity's stuff. So, when I plug it in, it is automounted because I have now installed usbmount. But, only root can acces the USB drive, however /media/usb0 as a mountpoint has permissions root:floppy and my username is in hte 'floppy' group. Still I don't understand why can access the drive as root only? > [***] The allocation of the 'sd' depends on what other devices you > have on your system. For example if you have 2 HDDs and a CDROM reader > and DEV writer these will be 'named; sda, sdb, sdc, sdd so the USB > stick will end up being sde - if you see what I mean. The usb drive is present in mtab as: /dev/sdc1 /media/usb0 vfat rw,noexec,nodev,sync,noatime,nodiratime,gid=25,dma sk=0007,fmask=0117 0 0 -- Regards from Pal -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Can't setup usbmount on Ubuntu 12.04.1 LST
On 31/08/12 04:32, Csányi Pál wrote:
Basil Chupin <blchupin@iinet.net.au> writes: On 30/08/12 19:31, Csányi Pál wrote: [............] The usb drive is present in mtab as: /dev/sdc1 /media/usb0 vfat rw,noexec,nodev,sync,noatime,nodiratime,gid=25,dma sk=0007,fmask=0117 0 0 Change these to read, "dmask=0000, fmask=0111". BC -- Using openSUSE 12.2 x86_64 KDE 4.8.4 & kernel 3.5.3-1 on a system with- AMD FX 8-core 3.6/4.2GHz processor 16GB PC14900/1866MHz Quad Channel Corsair "Vengeance" RAM Gigabyte AMD3+ m/board; Gigabyte nVidia GTX550Ti 1GB DDR5 GPU -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Can't setup usbmount on Ubuntu 12.04.1 LST
Basil Chupin <blchupin@iinet.net.au> writes:
> On 31/08/12 04:32, Csányi Pál wrote: >> Basil Chupin <blchupin@iinet.net.au> writes: >> >>> On 30/08/12 19:31, Csányi Pál wrote: > > [............] > > > >> The usb drive is present in mtab as: /dev/sdc1 /media/usb0 vfat >> rw,noexec,nodev,sync,noatime,nodiratime,gid=25,dma sk=0007,fmask=0117 >> 0 0 > > Change these to read, "dmask=0000, fmask=0111". I did so and it solve my problem. Thanks! -- Regards from Pal -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 05:46 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.