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.
|
 |
12-17-2009, 02:52 AM
|
#1
|
LQ Newbie
Registered: Sep 2006
Posts: 13
Rep:
|
How to mount NTFS in read/write mode in SuSE Enterprise 11
Hi Guys,
i can mount the NTFS in read only mode, but i need write access too.
how can i mount NTFS partition in read/write mode..?
can anyone help me..?
|
|
|
12-17-2009, 02:58 AM
|
#2
|
Member
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707
Rep:
|
Quote:
Originally Posted by kushanxp
Hi Guys,
i can mount the NTFS in read only mode, but i need write access too.
how can i mount NTFS partition in read/write mode..?
can anyone help me..?
|
Dear Kushanxp,
Try,
Code:
# mount -o rw,remount /dev/sdax
replace sdax with the windowz partition.
|
|
|
12-17-2009, 03:04 AM
|
#3
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
If you want to mount NTFS partitions you will need ntfs-3g package. And it should most probably be installed by default.
Just use it to mount the partitions.
mount -t ntfs-3g /dev/sdax /mnt/windows
Where sdax is the windows partition and /mnt/windows is the directory where partition is to be mounted. Both should exist before you can mount.
|
|
|
12-17-2009, 03:13 AM
|
#4
|
Member
Registered: Oct 2008
Posts: 908
Rep:
|
Hope you have properly shut down windows OS (i.e no power failure or forced reboot or hibernation ) because in those cases the ntfs partition is locked & does not mount so if problem had occured then reboot into windows & shutdown properly.
Now Let us see if you have ntfs-3g.
Assume your device is /dev/sda4 then run as root that is
$su
enter password:
#umount /dev/sda4
#mkdir /windows
#ntfs-3g /dev/sda4 /windows
But in this case only root can create folder in /windows though ordinary user can create & delete files.See if you can make file in /windows.
Now let us make ntfs partition mounted by default & editable by all users
First comment out old statement pointing to ntfs device in /etc/fstab by prefixing line with #.
Add following line to your /etc/fstab & reboot
<device> <mountpoint> ntfs-3g defaults 0 0
Where device is
Code:
sda4 for hd(0,3)
As a general rule
/dev/sda<m+1th alphabet><n+1> for partition hd(m,n).
Hope now you understand.
mount point is folder where it will be mounted.I think usually it is /windows/drive_letter.
Copy corresponding folder from just commented line in /etc/fstab.
Make sure such folder exist.If not then
$su
enter password:
#mkdir desired_folder
you can get also device from commented line if you aren't able to decide.
I think ntfs-3g is available on most GNU/linux OS by default.
Hope this helps.if you find my post useful than thank me by pressing thumbs up button.
Last edited by sumeet inani; 12-17-2009 at 03:51 AM.
|
|
|
12-17-2009, 03:16 AM
|
#5
|
LQ Newbie
Registered: Sep 2006
Posts: 13
Original Poster
Rep:
|
Quote:
Originally Posted by linuxlover.chaitanya
If you want to mount NTFS partitions you will need ntfs-3g package. And it should most probably be installed by default.
Just use it to mount the partitions.
mount -t ntfs-3g /dev/sdax /mnt/windows
Where sdax is the windows partition and /mnt/windows is the directory where partition is to be mounted. Both should exist before you can mount.
|
i have downloaded and installed ntfs-3g and a package called fuse-2.8.0
but still when i gave the command you said me its saying
mount: unknown filesystem type 'ntfs-3g'
Please help me on this..
|
|
|
12-17-2009, 03:18 AM
|
#6
|
LQ Newbie
Registered: Sep 2006
Posts: 13
Original Poster
Rep:
|
Quote:
Originally Posted by vinaytp
Dear Kushanxp,
Try,
Code:
# mount -o rw,remount /dev/sdax
replace sdax with the windowz partition.
|
Hi..
i tried this and its saying
mount: /media/NTFS not mounted already, or bad option
|
|
|
12-17-2009, 03:36 AM
|
#7
|
Member
Registered: Oct 2008
Posts: 908
Rep:
|
I have given a looong but step by step way.Why don't you try it ? Just trying to help.
|
|
|
12-17-2009, 04:01 AM
|
#8
|
LQ Newbie
Registered: Sep 2006
Posts: 13
Original Poster
Rep:
|
Quote:
Originally Posted by sumeet inani
I have given a looong but step by step way.Why don't you try it ? Just trying to help.
|
Hi..
Im on SuSE Enterprise Server 11 and theres no ntfs-3g, but i downloaded and installed, but still i cant mount the using ntfs-3g, its saying
mount: unknown filesystem type 'ntfs-3g'
Seems ntfs-3g not there..
how can i solve this problem
|
|
|
12-17-2009, 04:41 AM
|
#9
|
Member
Registered: Oct 2008
Posts: 908
Rep:
|
Give content of /etc/fstab.Enclose the file content in codes.
Also you can try
$which ntfs-3g
to see if application is present.
Last edited by sumeet inani; 12-17-2009 at 04:42 AM.
|
|
|
12-17-2009, 04:43 AM
|
#10
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
How did you install ntfs-3g? Did you use Yast for it? It is always better to use the package manager to install packages.
I have used it and it works.
|
|
|
12-17-2009, 05:34 AM
|
#11
|
LQ Newbie
Registered: Sep 2006
Posts: 13
Original Poster
Rep:
|
Quote:
Originally Posted by sumeet inani
Give content of /etc/fstab.Enclose the file content in codes.
Also you can try
$which ntfs-3g
to see if application is present.
|
Hi,
problem solved, there was a compile error in
secaudit.c file of ntfs-3g directory i corrected that and installed it again, now its working, but seems i can copy through command line to NTFS drive. anyway its OK now, Thanks for your support.
here are the steps i have followed, this will be usefull to anyone,
you will get following listed errors when you trying to make the files
secaudit.c:262:24: error: attr/xattr.h: No such file or directory
secaudit.c: In function ‘showmounted’:
secaudit.c:5033: warning: implicit declaration of function ‘getxattr’
make[2]: *** [ntfs_3g_secaudit-secaudit.o] Error 1
make[2]: Leaving directory `/media/MEDIA/Linux/ntfs-3g-2009.11.14/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/MEDIA/Linux/ntfs-3g-2009.11.14'
make: *** [all] Error 2
you have to replace the line 262 with
#include <sys/xattr.h>
and you should have installed libattr library
Thats all
|
|
|
12-17-2009, 06:16 AM
|
#12
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
I have a simpler solution:
On CentOS, RH, Fedora
yum install ntfs-3g
On apt systems:
sudo apt-get install ntfs-3g
On suse;
yast
|
|
|
12-17-2009, 09:56 PM
|
#13
|
Member
Registered: Oct 2008
Posts: 908
Rep:
|
to kushanxp,
You said that
Code:
now its working, but seems i can copy
through command line to NTFS drive.
anyway its OK now.
In my explanatory post I have provided tip to to do all kinds of operations(delete,copy,paste,move) on ntfs partition even in graphical interface.
Why do you think that with ntfs-3g you can copy only with command prompt ?
|
|
|
All times are GMT -5. The time now is 07:49 AM.
|
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
|
|