Forum Home
Press F1
 
Thread ID: 39870 2003-11-20 09:04:00 Linux - ability to read NTFS agent (30) Press F1
Post ID Timestamp Content User
193355 2003-11-20 21:42:00 1. Noone can access files on a partition unless the partition is mounted on a mount point. The mount command, or the entry in /etc/fstab can give permissions to that partition.

2. You can't mount NTFS partitions unless there is support for the NT File System.

3. You can get support for NTFS either by compiling the kernel, with NTFS support enabled, or by having the module present. When the partition is mounted, the module is automatically loaded.

4. Mandrake or not, Linux is Linux. The module is available. If there isn't an RPM (or deb for the Debian enthusiasts) binary for your version of your diistribution, the source is available, and easy to compile. (So's the kernel. B-))

5. It's wise to keep the access to read-only. It can be tricky writing to a foreign OS's file system without full (or any) documentation. Especially when the owner of that OS would not be above putting traps in the system. :D Reading files can't do any damage. Writing files is fine; it's making sure that all the directory entries, etc, are exactly right is not so easy. If they are not exactly right, the disaster might not be immediate. ;-)


6. Don't be too sensitive. If you don't feel "criticism" is fair or true, ignore it. It might not even be meant, or meant for you.
Graham L (2)
193356 2003-11-20 22:00:00 Graham you also forgot to mention NTFS is a moving target the specs change every 3 years or so ;) mark.p (383)
193357 2003-11-20 22:23:00 Perhaps I'm not making myself clear (although, posting three times, you certainly are...): both my NTFS partitions are mounted. They always have been. Right from the first time I installed Mandrake. I just don't get any access to them whatsoever.

So I'll go on my way and read how-to's for the Linux NTFS Project.
agent (30)
193358 2003-11-20 22:37:00 edit your fstab:
/dev/hda1 /mnt/ntfs_drive_1 ntfs umask=222 1 0

Try that.. mainly changing the "defaults" or whatever to "umask=222". This will give read-only access to all users!
Chilling_Silently (228)
193359 2003-11-21 02:18:00 If you have no access, even as root, they aren't mounted. ;-)

How do you mount them? Did Mandrake detect them and automatically make mount points? I prefer to make mount points myself, and change /etc/fstab myself too. "Automatic" helpful things ("just like Windows") cause more trouble than they are worth.

Show us your /etc/fstab, and the output from mount (no arguments).
Graham L (2)
193360 2003-11-21 02:54:00 Exactly as you said... it did them automatically. They're mounted as something along the lines of /mnt/nt_1 and /mnt/nt_2... can't remember what they actually are. agent (30)
193361 2003-11-21 03:12:00 Terminology: They are not mounted "as" /mnt/nt_1, etc. They can be mounted "on" the mount points. The mount points always exist as directory names, but they will show up as "empty" unless somthing is mounted on them, because they don't (usually) have any contents otherwise.

That is# ls -l /mnt/nt_1
# gives no output if there is nothing mounted there. After mount -t ntfs -o ro /dev/hdaX /mnt/nt_1 an "ls -l /mnt/nt_1" will show something.

The "mount" command --- with no arguments --- will show what is mounted at any time (it just shows the contents of /etc/mtab).

Experiment with the manual mount command (with arguments) until you can successfully see the files. Then fix up /etc/fstab with the correct entry.
Graham L (2)
193362 2003-11-21 03:31:00 It would be interesting it see what is actually listed in agent's current fstab file just out of curiousity.

Agent you do realise you can mount volumes/drives in practically any directory you want as long as it hasn't been previously mounted? For instance you can mount your hard drives in /mnt, /mnt/floppy or /mnt/cdrom if you so desire. I'm no *nix guru but it the mounting of devices is very well documented.
mark.p (383)
193363 2003-11-21 05:27:00 Indeed, it would most likely be highly interesting to see what is in fstab. But I can't boot to Linux for a week... just a matter of not having access to that computer.

In any case, I've learned something new (along the lines of never trust automation - or something like that).
agent (30)
193364 2003-11-21 05:39:00 And you can also re-mount any folder that's already mounted to another location:
mount --bind /mnt/nt_1/windows/desktop/ /home/agent/doze_desktop/

Works well for me where I dont want to do symlinks!
Chilling_Silently (228)
1 2