Click to See Complete Forum and Search --> : NTFS Partitions on Linux?


Clark Allen
04-16-2002, 05:34 PM
Is it possible to mount NTFS partitions on Linux? If so, how?

Also, does anyone know if 3d acceleration is supported for the radeon 8500 under kernal 2.4.1?

Finally, this is a question for IT Pros/System Admins. Will you do an interview for me (about 10 questions) that I need for a school project? Send me an email if you are willing to help. clark.allen@sbcglobal.net?subject=Interview

Thanks,
Clark

Eggs
04-16-2002, 06:31 PM
Yes it is, however in read-only mode and any files your copy off an ntfs partition needs to have the permssions changed

mount -t ntfs /dev/hda1 /mnt

where hda1 is whatever the ntfs partition is.

Alien
04-17-2002, 04:35 AM
If I wanted to make that /mnt/winxp instead of just plain /mnt, how would I do that (I keep getting an error when I try)?

z0mbix
04-17-2002, 04:38 AM
You'll more than likely be getting that error as /mnt/winxp doesn't yet exist, so just create it with mkdir /mnt/winxp

Alien
04-17-2002, 04:44 AM
Isn't it amazing sometimes at how some solutions that are under your nose can be missed so easily? hahahaha :)

Thank you for your help :)

Wolff
04-17-2002, 05:09 AM
I think you need to have support for NTFS in your kernel to mount it too.
Be careful if you mount it R/W though, I`ve had some bugs with NTFS partitions that I`ve written to

Alien
04-17-2002, 05:32 AM
Wolff- Yeah I've heard that NTFS is very buggy under Linux, and it's best to just use it under read only. Not doing so could cause some damage.

All- I've got it mounted, the problem I'm running into now is being able to access the mount under different users.

Standard users can't create the /mnt/winxp directory. So, I super-user create it as root. If I try mounting it as a normal user at that time, it fails, so I have to go back to super-user and mount it that way.

Any suggestions to where I could read that mount by any user, not just root?

z0mbix
04-17-2002, 05:41 AM
Originally posted by Alien:
<STRONG>All- I've got it mounted, the problem I'm running into now is being able to access the mount under different users.

Standard users can't create the /mnt/winxp directory. So, I super-user create it as root. If I try mounting it as a normal user at that time, it fails, so I have to go back to super-user and mount it that way.

Any suggestions to where I could read that mount by any user, not just root?</STRONG>

Do you have a line in your /etc/fstab relating to your NTFS partition? Read this page (http://www.linuxvoodoo.com/newbies/mounting/mounting2.php) for more info, but you basically need to add user to the mount command, whether you type it in yourself or add it to your /etc/fstab.

Alien
04-17-2002, 05:21 PM
Originally posted by cheeky_zombie:
<STRONG>Do you have a line in your /etc/fstab relating to your NTFS partition? Read this page (http://www.linuxvoodoo.com/newbies/mounting/mounting2.php) for more info, but you basically need to add user to the mount command, whether you type it in yourself or add it to your /etc/fstab.</STRONG>

I didn't have one till now - and it now reads:

/dev/hda1 / ext2 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 /home ext2 defaults 1 2
/mnt/cdrom /mnt/cdrom supermount dev=/dev/hdc,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
/mnt/cdrom2 /mnt/cdrom2 supermount dev=/dev/scd0,fs=iso9660,ro,--,iocharset=iso8859-1 0 0
/dev/hdb1 /mnt/winxp ntfs defaults 0 0
/mnt/floppy /mnt/floppy supermount dev=/dev/fd0,fs=vfat,--,iocharset=iso8859-1,umask=0,sync,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

It does auto-mount upon boot now, but for some reason I still can't access everything from any user, only as root! I read the page you recommended, but rather I'm blind, or I'm just not able to put it together correctly. I understand adding a user, but how can I add all users?

[ 17 April 2002: Message edited by: Alien ]

mcmanus69
04-17-2002, 05:47 PM
hrm... it's been a while since I've actually had to edit my fstab (I've been using same one over and over...), but I BELIEVE (not 100% sure) that defaults won't give users mount and umount ability. My fstab looks like this:

/dev/hdf1 /mnt/windows/f -t ntfs auto,user,exec,ro 0 0

I can mount and unmount it not as root, but I'm not 100% sure it will work (I'm posting from a lab). Try it, and let me know. I spent a long time trying to figure it out and this is what eventually worked for me. Just make sure 'user' comes before 'exec'. (exec gives you --x--x--x permissions, so you can at least read the partition as non-root, and you can also take away permissions with 'umask=033'... do a 'man umask' to learn more about it)