Le Mardi 30 Septembre 2003 19:23, Buchan Milne a �crit : > Pascal Cavy wrote: > > The following scenario is implemented in cooker : > > > > 1. connect an usb storage device to usb port > > > > 2. dynamic creates an entry in /etc/fstab with supermount option - an > > icon appears on kde for the device > > > none /mnt/removable supermount > > dev=/dev/sda1,fs=ext2:vfat,--,codepage=850,iocharset=iso8859-15,kudzu 0 0 > > I was under the impression supemount wasn't used, but the 'user' option > was, like this: > /dev/sda1 /mnt/removable auto > user,iocharset=iso8859-15,noauto,kudzu,exec,codepage=850 0 0 > > Maybe you booted up with one attached, and harddrake configured it? > > > 3. click on this icon to access the usb storage filesystem > > Yes, and something mounts it for you (ie KDE). > > > 4. How do I disconnect cleanly this device from the desktop now that is > > automatically mounted ? > > I cannot unmount it from the kde icon since the user option is not in > > /etc/fstab > > Right-click-unmount, or 'unmount /mnt/removable'. > > That is, unless something has changed ...
This is not possible as only root can do it if the 'user' option is not specified in the fstab. Let's clarify the test: 1. disconnect the USBSD (usb storage device) 2. remove any entry referencing it in the fstab 3. connect the USBSD 4. NOTHING is dynamically created in the fstab ******* 5. run harddrake2 6. look at the fstab : none /mnt/hd supermount dev=/dev/sdb1,fs=ext2:vfat,--,kudzu,codepage=850,iocharset=iso8859-15 0 0 this is not correct for 2 reasons: a. only root can unmount it (so if a desktop icon is associated with this entry it cannot be used to unmount the USBSD FS) b. since it is a supermount entry for a removable writable device, writes should be synchronous, thus the sync option is missing or you can loose data on disconnect There is a conflict between hotplug and harddrake somewhere ... hotplug should create a fstab entry upon connect and remove it upon disconnect. harddrake should not interfere with this. Am I wrong somewhere ? -- Pascal __________________________________________________________________ Running 2:05, 1 user, load average: 0.54, 0.37, 0.38 (gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)) Kernel Linux version 2.4.22-10mdkenterprise
