Le Mercredi 1 Octobre 2003 12:25, Buchan Milne a �crit : > > > Let's clarify the test: > > 1. disconnect the USBSD (usb storage device) > > I booted my cooker box without any USB device connected > > > 2. remove any entry referencing it in the fstab > > [EMAIL PROTECTED] bgmilne]$ grep sda /etc/fstab > > (no entry for sda* in fstab) > > > 3. connect the USBSD > > Connected it here. > > > 4. NOTHING is dynamically created in the fstab ******* > > An entry is added for me: > > [EMAIL PROTECTED] bgmilne$ grep sda /etc/fstab > /dev/sda1 /mnt/removable auto > user,noauto,iocharset=iso8859-15,exec,kudzu,codepage=850 0 0 > > (note the user option is present) > > [EMAIL PROTECTED] bgmilne]$ mount /mnt/removable/ > [EMAIL PROTECTED] bgmilne]$ df /mnt/removable/ > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/scsi/host0/bus0/target0/lun0/part1 > 64096 31130 32966 49% /mnt/removable > [EMAIL PROTECTED] bgmilne]$ umount /mnt/removable > > > 5. run harddrake2 > > I don't have the harddrake package installed, and it is missing on my > local mirror.
hummm can this be the main difference between us. can harddrake break hotplug ... ? > > > 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 > > Or you need to run: > $ sync I'm not speaking for me but for average gui linux user, you cannot ask them to do a sync :) > > > 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. > > So what happens if you have an external USB storage device connected > permanently to your machine? Should you have to unplug and replug it to > be able to use it? > > > Am I wrong somewhere ? > > Your hotplug is broken. that's true :( even un-installing harddrake, hotplug, dynamic an re-installing just hotplug and dynamic does not repair machine # rpm -q hotplug dynamic hotplug-2002_04_01-8mdk dynamic-0.10-1mdk My kernel is : kernel-enterprise-2.4.22.10mdk-1-1mdk > > AFAIK, hotplug can't detect the removal of USB storage devices, so my > fstab entry for it stays until the next boot (AFAICT). So do I. > > Regards, > Buchan -- Pascal Cavy - VMF __________________________________________________________________ Running 19:46, 1 user, load average: 0.65, 0.24, 0.11 (gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)) Kernel Linux version 2.4.22-10mdkenterprise
