Mailinglist Archive: opensuse (516 mails)
| < Previous | Next > |
[opensuse] Re: [opensuse ] How do I mount USB drive world writable using device notifier?
- From: Marc Chamberlin <marc@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 05 Feb 2011 23:55:01 -0800
- Message-id: <4D4E53D5.2020106@marcchamberlin.com>
On 2/5/2011 6:11 PM, Anton Aylward wrote:
So for my laptop -
/ 192.168.2.0/255.255.255.0(fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check)
/home 192.168.2.0/255.255.255.0(rw,no_root_squash,sync,no_subtree_check)
/tmp 192.168.2.0/255.255.255.0(rw,no_root_squash,sync,no_subtree_check)
cat fstab
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part3 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part2 /boot ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part7 /data ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part5 /home ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part6 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto,devmode=0777,busmode=0777,listmode=0777 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
105 1679 1 0 17:12 ? 00:00:01 /usr/sbin/hald --daemon=yes
root 1885 1679 0 17:12 ? 00:00:00 hald-runner
root 2063 1885 0 17:12 ? 00:00:00 hald-addon-input: Listening on /dev/input/event7 /dev/input/event0 /dev/input/event8 /dev/input/event4 /dev/input/event2 /dev/input/event5 /dev/input/event3 /dev/input/event10 /dev/input/event12 /dev/input/event13
root 2100 1885 0 17:12 ? 00:00:00 /usr/lib/hal/hald-addon-rfkill-killswitch
root 2133 1885 0 17:12 ? 00:00:00 /usr/lib/hal/hald-addon-cpufreq
105 2134 1885 0 17:12 ? 00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 2137 1885 0 17:12 ? 00:00:01 hald-addon-storage: polling /dev/sr0 (every 2 sec)
root 2245 1885 0 17:12 ? 00:00:00 /usr/lib/hal/hald-addon-generic-backlight
root 2247 1885 0 17:12 ? 00:00:00 /usr/lib/hal/hald-addon-generic-backlight
root 9762 4597 0 23:38 pts/2 00:00:00 grep hal
/dev/sdb3 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
devtmpfs on /dev type devtmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,mode=1777)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sdb2 on /boot type ext4 (rw,acl,user_xattr)
/dev/sdb7 on /data type ext4 (rw,acl,user_xattr)
/dev/sdb5 on /home type ext4 (rw,acl,user_xattr)
/dev/sdb6 on /windows/D type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true)
securityfs on /sys/kernel/security type securityfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/proc on /var/lib/ntp/proc type none (ro,nosuid,nodev,bind)
/dev/sdc1 on /media/My Passport type vfat (rw,nosuid,nodev,uid=1000,utf8,shortname=mixed,flush)
/ 192.168.2.0/255.255.255.0
/home 192.168.2.0/255.255.255.0
/tmp 192.168.2.0/255.255.255.0
All mount points on marcslaptop:
192.168.2.100:/
Marc..
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Marc Chamberlin said the following on 02/05/2011 08:37 PM:I do agree something is screwed up! No argument there.... I will have to answer this with two emails, one for each machine, if necessary, though I think I have set up things pretty similar, considering my laptop is running openSuSE11.3 and my wife's and our main server is running 11.2. (I just upgraded my media center and one of my business work computers to 11.3 as well. Same symptoms everywhere..)
Here I tried to cd via a NFS mount to the USB drive on my laptop, and ITo me its looks like you're contorted and making things complex where
am not even allowed to get there. Looks like more d$#*m Linux security
is blocking me!
they should be simple.
marc@bigbang:~> cd /mnt/nfs/marcslaptop/slash/media/My\ Passport/Sorry, Marc, that's not helpful.
bash: cd: /mnt/nfs/marcslaptop/slash/media/My Passport/: Permission denied
If anything it hints as how messed up your configuration is
So for my laptop -
What in your /etc/exports, /etc/fstabcat exports
/ 192.168.2.0/255.255.255.0(fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check)
/home 192.168.2.0/255.255.255.0(rw,no_root_squash,sync,no_subtree_check)
/tmp 192.168.2.0/255.255.255.0(rw,no_root_squash,sync,no_subtree_check)
cat fstab
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part3 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part2 /boot ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part7 /data ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part5 /home ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-Seagate_FreeAgent_GoFlex_NA02C8SY-part6 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto,devmode=0777,busmode=0777,listmode=0777 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
Are your running IVMAN?I don't know what IVMAN is, so I don't know, probably not, or at least not intentionally.....
what's the output ofps -ef | grep hal
# ps -ef | grep hal
105 1679 1 0 17:12 ? 00:00:01 /usr/sbin/hald --daemon=yes
root 1885 1679 0 17:12 ? 00:00:00 hald-runner
root 2063 1885 0 17:12 ? 00:00:00 hald-addon-input: Listening on /dev/input/event7 /dev/input/event0 /dev/input/event8 /dev/input/event4 /dev/input/event2 /dev/input/event5 /dev/input/event3 /dev/input/event10 /dev/input/event12 /dev/input/event13
root 2100 1885 0 17:12 ? 00:00:00 /usr/lib/hal/hald-addon-rfkill-killswitch
root 2133 1885 0 17:12 ? 00:00:00 /usr/lib/hal/hald-addon-cpufreq
105 2134 1885 0 17:12 ? 00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 2137 1885 0 17:12 ? 00:00:01 hald-addon-storage: polling /dev/sr0 (every 2 sec)
root 2245 1885 0 17:12 ? 00:00:00 /usr/lib/hal/hald-addon-generic-backlight
root 2247 1885 0 17:12 ? 00:00:00 /usr/lib/hal/hald-addon-generic-backlight
root 9762 4597 0 23:38 pts/2 00:00:00 grep hal
# mountmount
/dev/sdb3 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
devtmpfs on /dev type devtmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,mode=1777)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sdb2 on /boot type ext4 (rw,acl,user_xattr)
/dev/sdb7 on /data type ext4 (rw,acl,user_xattr)
/dev/sdb5 on /home type ext4 (rw,acl,user_xattr)
/dev/sdb6 on /windows/D type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true)
securityfs on /sys/kernel/security type securityfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/proc on /var/lib/ntp/proc type none (ro,nosuid,nodev,bind)
/dev/sdc1 on /media/My Passport type vfat (rw,nosuid,nodev,uid=1000,utf8,shortname=mixed,flush)
# exportfsexportfs
/ 192.168.2.0/255.255.255.0
/home 192.168.2.0/255.255.255.0
/tmp 192.168.2.0/255.255.255.0
# showmount -ashowmount -a
All mount points on marcslaptop:
192.168.2.100:/
for each machineI will send another machines data tomorrow.. getting too late for me to continue.. Again thanks Anton for your help and time taking a look see for me...
Marc..
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |