LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do mount a NTFS disk in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-mount-a-ntfs-disk-in-linux-27902/)

Scratchmaster 08-14-2002 10:07 AM

How to automount windowsdisks in Linux
 
I just manage to mount my NTFS disks in Linux, but how do I make linux mount them every bootup?

BTW, how do I know that I have read-only access to the NTFS disks (I don't want to lose my data!)?

darkmage 08-14-2002 11:40 AM

The easiest way to do it would be to open /etc/fstab in a text editor and add a line with /dev/hd(xp's partition number), wherever you mounted it under Linux, it's type (ntfs), then auto,ro, and finally 0 0. NTFS write support is experimental and very dangerous and knowing Mandrake they wouldn't all you to. Also the ro means read only so it should work.

gingerchris 08-14-2002 06:41 PM

Ok deferent person here, same question.
For me it wasn't this easy at all.
Im a week old user of Redhat 7.3.
I've had to reconfigure my kernel to support NTFS fs.
(using make xconfig in /usr/src/Linux-2.4)
After installing the kernel source rpm of course.
Then....
All seems to be working, however
As root I can mount the selected NTFS partition using the command
mount -t ntfs /dev/hda5 /NTFS
works fine
but only root has read access, no one else, can read it.

Any clues as to how I fix it.
I appretiate I only installed the NTFS read option in the kernel, I dont particularly want to write, but how do I set it so that all users can read it?
btw I tried chmod -R a+r as root, "Read only file system, carn't change"
*sigh*

MasterC 08-15-2002 01:23 AM

Here's a copy of my /etc/fstab file, all my users and my root can mount and umount my partition:
Code:

/dev/hdb1        /                ext3        defaults                1  1
/dev/hdb5        /home            ext3        defaults                1  2
/dev/hdb6        /Mandy          ext3        defaults                1  2
/dev/hda5        /mnt/fat32a      vfat        defaults                1  0
/dev/hda6        /mnt/fat32b      vfat        defaults                1  0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,owner,ro        0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner            0  0
none            /dev/pts        devpts      gid=5,mode=620          0  0
none            /proc            proc        defaults                0  0
/dev/hdb2        /QNX            auto        defaults                0  0
/dev/hda1        /mnt/windows    ntfs        ro,user,auto,umask=022  0  0

I run slack 8.1

Cool

gingerchris 08-15-2002 06:42 PM

Cool thanks,
it was that dammed umask thing,
ah well its always the little things

Thanks,
Now all I have to do is work out how to get linux to use my other sound card, install my modem, fix module problems...........oh well slowly but surely


gingerchris


All times are GMT -5. The time now is 11:44 PM.