Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-20-2007, 06:01 AM
|
#1
|
LQ Newbie
Registered: Sep 2007
Posts: 3
Rep:
|
accessing ntfs file system drives
linux is not allowing me to access NTFS partitions created in windows
|
|
|
09-20-2007, 06:08 AM
|
#2
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Rep:
|
You will need to install fuse and ntfs-3g to allow read/write on ntfs partitions. What distro are you using?
|
|
|
09-20-2007, 07:58 AM
|
#3
|
LQ Newbie
Registered: Aug 2007
Location: Kampala, Uganda, East Africa
Distribution: debian 4.0
Posts: 27
Rep:
|
usually linux distros lack write access to ntfs drives but you can mount the partion at the prompt after logging in as root.
you can pass something simillar to this at the prompt;
mount -t ntfs /dev/hda1 (refering to the first primary partition on the primary master)
mount -t ntfs /dev/sda1 (refering to the first scsi hdd)
remember the 1st hd is a, 2nd b; 3rd is c; and last d;
hope this helps
|
|
|
09-22-2007, 11:09 PM
|
#4
|
LQ Newbie
Registered: Sep 2007
Posts: 5
Rep:
|
Quote:
Originally Posted by saintkay
usually linux distros lack write access to ntfs drives but you can mount the partion at the prompt after logging in as root.
you can pass something simillar to this at the prompt;
mount -t ntfs /dev/hda1 (refering to the first primary partition on the primary master)
mount -t ntfs /dev/sda1 (refering to the first scsi hdd)
remember the 1st hd is a, 2nd b; 3rd is c; and last d;
hope this helps
|
Hi, I'm using Red Hat Enterprise Linux 5 but I cannot mount a NTFS partition by command: mount -t ntfs /dev/hdb5 /hd_data as you say! Could you help me please?
Best regards!
|
|
|
09-23-2007, 12:08 AM
|
#5
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
What do you mean by accessing? Reading and/or writing? You probably need to use the proper permissions on the hd_data directory (umask,uid and gid in /etc/fstab). For a partition sda1, you would put this line in /etc/fstab:
/dev/sda1 /hd_data ntfs-3g defaults,rw,gid=500,uid=500,umask=0022 0 2
The 500 refers to RedHat/Fedora systems. Other systems assign 1000 by default to the first created user.
Last edited by jay73; 09-23-2007 at 12:10 AM.
|
|
|
09-25-2007, 06:30 PM
|
#6
|
LQ Newbie
Registered: Sep 2007
Posts: 5
Rep:
|
Yes, thank you, jay73! I've installed ntfsmount package and then I could mount ntfs partition in Red Hat Enterprise Linux 5.
|
|
|
10-12-2007, 04:59 AM
|
#7
|
LQ Newbie
Registered: Sep 2007
Posts: 5
Rep:
|
Hi,
I have a similar problem.
I've created an LFS system and can mount my NTFS partition (hda1)
using root but unprivledged users cannot read it. The kernel is
configured for read-only NTFS access and I do not have any other
drivers or user-space tools for NTFS.
Will adding the entry to fstab as suggested by jay73 allow everyone
to read the NTFS partition or only the user with UID=500 (1000 in
my case)? Do I need a special driver for global read-only access?
|
|
|
10-14-2007, 06:10 AM
|
#8
|
LQ Newbie
Registered: Sep 2007
Posts: 5
Rep:
|
I figured it out.
This line added to fstab will add global, read-only access to an NTFS partition using only the kernel's ntfs driver.
Code:
/dev/hda1 /media/C ntfs ro,noauto,users,nls=utf8,dmask=0222,fmask=0333 0 0
I use the noauto and users options coz I prefer to manually mount this partition (and allow anyone to do so); both can be dropped if automount at boot time is preferred.
|
|
|
All times are GMT -5. The time now is 05:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|