ok great, thanks, I'll hack together something based on what you posted![]()
I also found that knoppix puts the drives found on the end of fstab, so a typical setup detecting one ntfs, one ext3 and one swap (this my test box, no one would ever be doing this to an ext3/swap, but possibly a FAT16/32)
so I have to figure out how to write a loop to grep for "# Added by KNOPPIX", then cut the 1st 9 characters off the next line and mount that, then repeat. I'm guessing I can just use mount $somevariable /mountlocation and knoppix will detect the fs type, that would make it a bit simpler. I know there are a number of ways to do this type of a loop, not sure what would be the simplest...Code:/proc /proc proc rw,nosuid,nodev,noexec 0 0 /sys /sys sysfs rw,nosuid,nodev,noexec 0 0 /dev/shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 /dev/pts /dev/pts devpts mode=0622 0 0 /dev/fd0 /media/fd0 auto user,noauto,exec,umask=000 0 0 /dev/cdrom /media/cdrom auto user,noauto,exec,ro 0 0 /dev/hdc /media/hdc auto users,noauto,exec,ro 0 0 # Added by KNOPPIX /dev/sda1 /media/sda1 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0 # Added by KNOPPIX /dev/sda2 /media/sda2 ext3 noauto,users,exec 0 0 # Added by KNOPPIX /dev/sda3 none swap defaults 0 0


Reply With Quote










