--- linuxrc 2005-03-01 11:17:43.239220368 -0600 +++ linuxrc-ntfs 2005-03-01 11:12:22.525976192 -0600 @@ -42,9 +42,12 @@ # Usage: mountit src dst "options" # Uses builtin mount of ash.knoppix # Builin filesystems -BUILTIN_FS="iso9660 ext2 vfat" +BUILTIN_FS="iso9660 ext2 vfat ntfs" +NTFSOPT=",uid=1000,gid=1000" for fs in $BUILTIN_FS; do -test -b $1 && mount -t $fs $3 $1 $2 >/dev/null 2>&1 && return 0 +OPT= +[ "fs" = "ntfs" ] && OPT=$NTFSOPT +test -b $1 && mount -t $fs $3$OPT $1 $2 >/dev/null 2>&1 && return 0 done return 1 } @@ -87,7 +90,7 @@ # echo -n "" echo "" # Be verbose -echo "${WHITE}Booting Knoppix-STD 0.1 : security tools distribution${NORMAL}" +echo "${WHITE}Booting Knoppix-STD 0.1 : security tools distribution with NTFS support${NORMAL}" echo "" echo "" @@ -203,6 +206,13 @@ # Disable kernel messages again echo "0" > /proc/sys/kernel/printk +# load filesystems +# BE CAREFUL! - Only mount it read only! - FF +for m in ntfs nls_iso8859-1 +do + [ -f /modules/${m}.o ] && insmod /modules/${m}.o +done + # Now that the right SCSI driver is (hopefully) loaded, try to find CDROM DEVICES="/dev/hd?" test -n "$FOUND_SCSI" && DEVICES="/dev/scd? /dev/scd?? $DEVICES"