fstab-update.sh correct ntfs and ufs fstab
Jesse van den Kieboom
troplosti at orcaweb.cjb.net
Sun Jul 25 08:30:12 PDT 2004
Having a triple boot system I have a wide variety of file system types
including ntfs and ufs. With the current fstab-update.sh ntfs and ufs
won't work. Ntfs has permission problems and ufs won't work because it
needs some special options as read only and ufstype=ufs2 (I don't know
if it works with ufs1 but I only have ufs2 and I can only mount this
read only for know as ufs write support is considered DANGEROUS)
The ntfs fstab entry is designed for my special needs, so umask and gid
might not be default values. The ufs fstab entry is only for ufs2 but I
don't know how to do this otherwise.
The differences:
--- fstab-update.sh.org 2004-07-25 17:27:23.000000000 +0200
+++ fstab-update.sh 2004-07-25 17:26:10.000000000 +0200
@@ -88,6 +88,10 @@
if test $HAL_PROP_VOLUME_FSTYPE; then
if test $HAL_PROP_VOLUME_FSTYPE = "msdos"; then
echo -ne "vfat\t" >> /etc/fstab-hal
+ elif test $HAL_PROP_VOLUME_FSTYPE = "ntfs"; then
+ echo -ne "ntfs\tumask=002,gid=win32," >> /etc/fstab-hal
+ elif test $HAL_PROP_VOLUME_FSTYPE = "ufs"; then
+ echo -ne "ufs\tro,ufstype=ufs2," >> /etc/fstab-hal
else
echo -ne "$HAL_PROP_VOLUME_FSTYPE\t" >> /etc/fstab-hal
fi
Jesse
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list