Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
you can read ntfs drives with linux, but writing to them isnt really supported (as far as i remember, i use 2.4.19 and ntfs write support is marked as experimental in the config for the kernel).
you need to recompile the kernel with NTFS support to use it. thats where my experience ends with NTFS and linux, so hopefully someone else can take over from here
^
|_ what he said, basically. What distro are you using? Some come with ntfs support already in the default kernel, with others you have to compile it in.
Basic writing to ntfs from *Nix is supported in 2.4.21, but still with a "use at own risk" caveat. There used to be a program to run after you'd written to the disk which checked / made sure you hadn't screwed it up, but I can't remember the name.
I assume (probably as root):
#mkdir /mnt/windows1
#mount /dev/hd?? /mnt/windows1
#cd /mnt/windows1
#ls
(where ?? is your ntfs disk / partition), ie hda1 etc.
I can sucessfully mount my drive when using su and logging in as root at a prompt but once its mounted I cant view the files because it says Im not allowed to and they can only be viewed if I log in to linux fully as root at the login screen, and also when I try to add the command line to fstab it gives me errors and doesnt mount it at bootup.
this was another one I tried
/dev/hda1 /mnt/windows ntfs auto,ro,umask=0222 0 0
but when the system reboots it says that there are errors on those lines in the fstab
As root or su type
mount -t ntfs -o ro,umask=0222 /dev/hda1 /mnt/windows
You need to first make a directory in /mnt called windows if it is not there.
If you want to make sure your kernel supports the filesystem, type cat /proc/filesystems
If you want it automaticall be mounted every time you start up or reboot your computer. Add a line in fstab that says
/dev/hda1 /mnt/windows ntfs ro,umask=0222 0 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.