Hi
I am trying to get my system to allow users to plug in a usb [ mass_storage ] device in such a way that they need only plug it in - read/write - and disconnect it, all without having to use the command line.
To date I have done everything required by the HOWTO at this link - http://www.tldp.org/HOWTO/Flash-Memory-HOWTO/linux-2.6.html .
Two things now to resolve:
1.) [EMAIL PROTECTED] mnt]# mount /udev/64MB1 -t vfat /mnt/64MB
And it should work.
And it does. Still have one problem though. Can not access the device as user.
Before mounting:
[EMAIL PROTECTED] mnt]# ls -al total 127 drwxr-xr-x 16 root root 4096 Dec 24 01:26 ./ drwxr-xr-x 24 root root 4096 Dec 23 19:53 ../ drwxr-xr-x 2 frank frank 4096 Dec 24 01:22 16MB/ drwxr-xr-x 2 frank frank 4096 Dec 24 01:22 64MB/ drwxr-xr-x 2 frank frank 4096 Dec 24 01:22 Camera/ <SNIP>
After mounting:
[EMAIL PROTECTED] mnt]# mount /udev/16MB1 -t vfat /mnt/16MB [EMAIL PROTECTED] mnt]# ls -al total 139 drwxr-xr-x 16 root root 4096 Dec 24 01:26 ./ drwxr-xr-x 24 root root 4096 Dec 23 19:53 ../ drwxr--r-- 2 root root 16384 Jan 1 1970 16MB/ drwxr-xr-x 2 frank frank 4096 Dec 24 01:22 64MB/ drwxr-xr-x 2 frank frank 4096 Dec 24 01:22 Camera/ <SNIP>
As you can see, mounting as user is still not working as the system changes the owner/group of the mounted device to root.
As I understood the HOWTO, I ought to have been able to access the device as user, so I am obviously missing something.
2.) Upon a reboot I issued :
# ls /udev
And instead of simply seeing my usb device status, as before the reboot, I get to see my whole system. See attachment " udev.txt "
So now I'm completely at a loss as to how to proceed.
To help further, I have also included as attachments, my /etc/fstab and etc/udev.rules files.
Anyone know how I ought to proceed from here?
Using Mandrake10 Official / KDE3.2 / kernel 2.6.3-7 -- Regards
SnapafunFrank
Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213
[EMAIL PROTECTED] frank]$ ls /udev 536ep0 64MB 64MB0 64MB1 adsp agpgart apm_bios audio console core@ dsp fd@ fd0 full hda hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hdb hdb1 hdb2 hdb3 hdb5 hdb6 hdb7 hdb8 hdb9 hdc hdd input/ kmem kmsg lp0 md0 mem mixer null nvidia0 nvidiactl port psaux ptmx ram0 ram1 ram10 ram11 ram12 ram13 ram14 ram15 ram2 ram3 ram4 ram5 ram6 ram7 ram8 ram9 random rfcomm0 rfcomm1 rfcomm10 rfcomm100 rfcomm101 rfcomm102 rfcomm103 rfcomm104 rfcomm105 rfcomm106 rfcomm107 rfcomm108 rfcomm109 rfcomm11 rfcomm110 rfcomm111 rfcomm112 rfcomm113 rfcomm114 rfcomm115 rfcomm116 rfcomm117 rfcomm118 rfcomm119 rfcomm12 rfcomm120 rfcomm121 rfcomm122 rfcomm123 rfcomm124 rfcomm125 rfcomm126 rfcomm127 rfcomm128 rfcomm129 rfcomm13 rfcomm130 rfcomm131 rfcomm132 rfcomm133 rfcomm134 rfcomm135 rfcomm136 rfcomm137 rfcomm138 rfcomm139 rfcomm14 rfcomm140 rfcomm141 rfcomm142 rfcomm143 rfcomm144 rfcomm145 rfcomm146 rfcomm147 rfcomm148 rfcomm149 rfcomm15 rfcomm150 rfcomm151 rfcomm152 rfcomm153 rfcomm154 rfcomm155 rfcomm156 rfcomm157 rfcomm158 rfcomm159 rfcomm16 rfcomm160 rfcomm161 rfcomm162 rfcomm163 rfcomm164 rfcomm165 rfcomm166 rfcomm167 rfcomm168 rfcomm169 rfcomm17 rfcomm170 rfcomm171 rfcomm172 rfcomm173 rfcomm174 rfcomm175 rfcomm176 rfcomm177 rfcomm178 rfcomm179 rfcomm18 rfcomm180 rfcomm181 rfcomm182 rfcomm183 rfcomm184 rfcomm185 rfcomm186 rfcomm187 rfcomm188 rfcomm189 rfcomm19 rfcomm190 rfcomm191 rfcomm192 rfcomm193 rfcomm194 rfcomm195 rfcomm196 rfcomm197 rfcomm198 rfcomm199 rfcomm2 rfcomm20 rfcomm200 rfcomm201 rfcomm202 rfcomm203 rfcomm204 rfcomm205 rfcomm206 rfcomm207 rfcomm208 rfcomm209 rfcomm21 rfcomm210 rfcomm211 rfcomm212 rfcomm213 rfcomm214 rfcomm215 rfcomm216 rfcomm217 rfcomm218 rfcomm219 rfcomm22 rfcomm220 rfcomm221 rfcomm222 rfcomm223 rfcomm224 rfcomm225 rfcomm226 rfcomm227 rfcomm228 rfcomm229 rfcomm23 rfcomm230 rfcomm231 rfcomm232 rfcomm233 rfcomm234 rfcomm235 rfcomm236 rfcomm237 rfcomm238 rfcomm239 rfcomm24 rfcomm240 rfcomm241 rfcomm242 rfcomm243 rfcomm244 rfcomm245 rfcomm246 rfcomm247 rfcomm248 rfcomm249 rfcomm25 rfcomm250 rfcomm251 rfcomm252 rfcomm253 rfcomm254 rfcomm255 rfcomm26 rfcomm27 rfcomm28 rfcomm29 rfcomm3 rfcomm30 rfcomm31 rfcomm32 rfcomm33 rfcomm34 rfcomm35 rfcomm36 rfcomm37 rfcomm38 rfcomm39 rfcomm4 rfcomm40 rfcomm41 rfcomm42 rfcomm43 rfcomm44 rfcomm45 rfcomm46 rfcomm47 rfcomm48 rfcomm49 rfcomm5 rfcomm50 rfcomm51 rfcomm52 rfcomm53 rfcomm54 rfcomm55 rfcomm56 rfcomm57 rfcomm58 rfcomm59 rfcomm6 rfcomm60 rfcomm61 rfcomm62 rfcomm63 rfcomm64 rfcomm65 rfcomm66 rfcomm67 rfcomm68 rfcomm69 rfcomm7 rfcomm70 rfcomm71 rfcomm72 rfcomm73 rfcomm74 rfcomm75 rfcomm76 rfcomm77 rfcomm78 rfcomm79 rfcomm8 rfcomm80 rfcomm81 rfcomm82 rfcomm83 rfcomm84 rfcomm85 rfcomm86 rfcomm87 rfcomm88 rfcomm89 rfcomm9 rfcomm90 rfcomm91 rfcomm92 rfcomm93 rfcomm94 rfcomm95 rfcomm96 rfcomm97 rfcomm98 rfcomm99 rtc sequencer sequencer2 snd/ stderr@ stdin@ stdout@ tty tty0 tty1 tty10 tty11 tty12 tty13 tty14 tty15 tty16 tty17 tty18 tty19 tty2 tty20 tty21 tty22 tty23 tty24 tty25 tty26 tty27 tty28 tty29 tty3 tty30 tty31 tty32 tty33 tty34 tty35 tty36 tty37 tty38 tty39 tty4 tty40 tty41 tty42 tty43 tty44 tty45 tty46 tty47 tty48 tty49 tty5 tty50 tty51 tty52 tty53 tty54 tty55 tty56 tty57 tty58 tty59 tty6 tty60 tty61 tty62 tty63 tty7 tty8 tty9 ttyS0 ttyS1 ttyS2 ttyS3 ttyS4 ttyS5 ttyS6 ttyS7 urandom video0 zero
[EMAIL PROTECTED] frank]# vim /etc/fstab /dev/hda5 / ext2 defaults 1 1 /dev/hda1 /boot ext2 iocharset=iso8859-1,codepage=850 0 0 none /dev/pts devpts mode=0620 0 0 /dev/hda8 /home ext2 defaults 0 0 #I added to following three lines but before the reboot they were the last thre entries here???? /udev/16MB1 /mnt/16MB vfat,ext2 user,noauto,rw 0 0 /udev/64MB1 /mnt/64MB vfat,ext2 user,noauto,rw 0 0 /udev/Camera1 /mnt/Camera vfat,ext2 user,noauto,rw 0 0 /dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0 /dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0 /dev/hda3 /mnt/empty ext2 defaults 1 2 /dev/hdb2 /mnt/hdb2_boot ext2 defaults 1 2 /dev/hdb5 /mnt/hdb5_root ext2 defaults 1 2 /dev/hdb6 /mnt/hdb6_var ext2 defaults 1 2 /dev/hdb7 /mnt/hdb7_usr ext2 defaults 1 2 /dev/hdb9 /mnt/hdb9_home ext2 defaults 1 2 #Commented out the following line to try to get usb mass_storage to work for user - have put it back in before any more reboots. none /mnt/removable supermount dev=/dev/sda1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,codepage=850,noauto,nosuid,nodev,kudzu 0 0 /dev/hdb1 /mnt/win_c2 vfat umask=0,iocharset=iso8859-1,codepage=850 0 0 /dev/hda4 /mnt/win_h vfat umask=0,iocharset=iso8859-1,codepage=850 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/hda6 /usr ext2 defaults 1 2 /dev/hda9 /var ext2 defaults 1 2 /dev/hda7 swap swap swap 1 2 /dev/hdb8 swap swap defaults 0 0
# There are a number of modifiers that are allowed to be used in some of the # fields. See the udev man page for a full description of them. # # See the udev.rules.examples file for more examples of how to create rules #
# if this is a ide cdrom, name it the default name, and create a symlink to cdrom BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom" # create a symlink named after the device map name # note devmap_name comes with extras/multipath KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c" # DRI devices always go into a subdirectory (as per the LSB spec) KERNEL="card*", NAME="dri/card%n" # Flash Memory 16MB BUS="scsi", SYSFS_vendor="M-Sys*", NAME="16MB%n" # Flash Memory 64MB BUS="scsi", SYSFS_vendor="USB*", NAME="64MB%n" # Card Reader for MyCanonCamera BUS="scsi", SYSFS_vendor="SIIG*", NAME="Camera%n" # alsa devices KERNEL="controlC[0-9]*", NAME="snd/%k" KERNEL="hw[CD0-9]*", NAME="snd/%k" KERNEL="pcm[CD0-9cp]*", NAME="snd/%k" KERNEL="midi[CD0-9]*", NAME="snd/%k" KERNEL="timer", NAME="snd/%k" KERNEL="seq", NAME="snd/%k" # input devices KERNEL="mice", NAME="input/%k" KERNEL="mouse*", NAME="input/%k" KERNEL="event*", NAME="input/%k" KERNEL="js*", NAME="input/%k" KERNEL="ts*", NAME="input/%k"
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________