
* T mlist4suntong@yahoo.com [20061027 16:21]:
On Fri, 27 Oct 2006 12:02:37 +0200, Michael Prokop wrote:
I saw in the script that it uses "-g users", which is 100 in my system, but why files show up as group id 1000? ...
Please show the entry for the device in /etc/fstab where the above files are hanging around, plus the corresponding "mount"-output.
$ tail -3 /var/log/messages Oct 27 10:02:26 cxmr kernel: sd 3:0:0:0: Attached scsi removable disk sdb Oct 27 10:02:28 cxmr rebuildfstab[6704]: re-generating /etc/fstab - see 'man rebuildfstab' Oct 27 10:02:33 cxmr rebuildfstab[7051]: re-generating /etc/fstab - see 'man rebuildfstab'
Ok.
$ grep /mnt/usb-sd /etc/fstab /dev/usb-sdb /mnt/usb-sdb auto user,noauto,nodev,noatime,nosuid,noexec,rw,uid=1000,gid=1000 0 0 /dev/usb-sdb1 /mnt/usb-sdb1 auto user,noauto,nodev,noatime,nosuid,noexec,rw,uid=1000,gid=1000 0 0
Hm.
% mount /mnt/usb-sdb1
$ ls -l /mnt/usb-sdb1 total 16 drwxr-xr-x 3 1000 1000 16384 2006-04-23 dcim/
$ apt-cache policy grml-rebuildfstab grml-rebuildfstab: Installed: 0.3-12 Candidate: 0.3-12 Version table: *** 0.3-12 0 683 http://grml.org ./ Packages 100 /var/lib/dpkg/status
Ok. Is the entry OK if you manually run:
# rebuildfstab -v -r -u $USER -g $GROUP
and replace $USER with your username and $GROUP with the groupname of your user?
Further question, why is rebuildfstab called twice?
Because the udev-rule KERNEL=="sd[a-z]*" matches the disk *and* each of its partitions. Thinking about it, "sd[a-z]" should be OK as well.
@Tobias: udev 0.103-0grml1 is fine for me, I just incorporated the updated /etc/udev/grml_usbdev.rules version into our udev repository:
http://hg.grml.org/udev/?cmd=changeset;node=94075e242354;style=gitweb
Please ACK the rule via building the package then, thanks. :)
regards, -mi'time for a BIG cup of coffe'ka-