LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-04-2011, 04:43 AM   #1
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Rep: Reputation: 9
Question How do I make my removable drive writable?


Hi all

I recently got an external removable drive. It has an NTFS file system (I use it for backups on windows machines). I can write to an internal HDD drive with a NTFS file system but I only have read access on this removable drive as normal user and as root...

How can I fix this so that root has write access as well please?

Code:
root@darkstar:~# cd /media/E2F83E19F83DED03/
root@darkstar:/media/E2F83E19F83DED03# ls
$RECYCLE.BIN/                 TOSHIBA/          autorun.inf
System\ Volume\ Information/  Windows_Backups/  start.cmd
root@darkstar:/media/E2F83E19F83DED03# mkdir Linux_Backups
mkdir: cannot create directory `Linux_Backups': Operation not permitted
root@darkstar:/media/E2F83E19F83DED03# cat < /etc/fstab 
/dev/sda7        swap             swap        defaults         0   0
/dev/sda5        /                ext4        defaults         1   1
/dev/sda6        /home            ext4        defaults         1   2
/dev/sda3        /win7            ntfs-3g     fmask=133,dmask=022 1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
root@darkstar:/media/E2F83E19F83DED03#

Last edited by george-lappies; 07-04-2011 at 04:44 AM.
 
Old 07-04-2011, 04:52 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Normally /etc/fstab doesn't contain removable media. Please post the output of
Code:
mount
with the drive mounted.
 
Old 07-04-2011, 04:54 AM   #3
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Original Poster
Rep: Reputation: 9
Question

Quote:
Originally Posted by TobiSGD View Post
Normally /etc/fstab doesn't contain removable media. Please post the output of
Code:
mount
with the drive mounted.
Sure, here it is:

Code:
root@darkstar:~# mount
/dev/root on / type ext4 (rw,commit=0)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/sda6 on /home type ext4 (rw,commit=0)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda3 on /win7 type fuseblk (rw,allow_other,blksize=4096,default_permissions)
gvfs-fuse-daemon on /home/george/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=george)
/dev/sdb1 on /media/E2F83E19F83DED03 type ntfs (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077,fmask=0177)
root@darkstar:~#
 
Old 07-04-2011, 04:58 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The problem is that your external drive is mounted with the ntfs-driver, which by default doesn't support write access. Mount it with the ntfs-3g-driver and you should be fine.
 
1 members found this post helpful.
Old 07-04-2011, 04:59 AM   #5
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by TobiSGD View Post
The problem is that your external drive is mounted with the ntfs-driver, which by default doesn't support write access. Mount it with the ntfs-3g-driver and you should be fine.
Thanks TobiSGD, this worked:

Code:
root@darkstar:~# umount /dev/sdb1
root@darkstar:~# mkdir /media/external
root@darkstar:~# mount -t ntfs-3g /dev/sdb1 /media/external  
root@darkstar:~# cd /media/external/
root@darkstar:/media/external# ls
$RECYCLE.BIN/                 TOSHIBA/          autorun.inf*
System\ Volume\ Information/  Windows_Backups/  start.cmd*
root@darkstar:/media/external# mkdir Linux_Backups
root@darkstar:/media/external#
Is there a way to make it only mount this drive with these parameters when I plug it in even after a usb stick is already plugged in?

Last edited by george-lappies; 07-04-2011 at 05:06 AM.
 
Old 07-04-2011, 05:06 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by george-lappies View Post
Thanks TobiSGD, how would I go about doing that though?
Code:
mkdir /mnt/external
mount -t ntfs-3g /dev/sdb1 /mnt/external
will mount it to /mnt/external using the ntfs-3g-driver.
 
Old 07-04-2011, 05:56 AM   #7
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Original Poster
Rep: Reputation: 9
Just backed up a lot of stuff with rsync! wish windows had something like that
 
Old 07-04-2011, 05:58 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It has. Have a look here and look at cwRsync.
 
2 members found this post helpful.
Old 07-04-2011, 06:05 AM   #9
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by TobiSGD View Post
It has. Have a look here and look at cwRsync.
aah, very cool. Thanks once more TobiSGD
 
1 members found this post helpful.
Old 07-04-2011, 06:19 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Yeah, me too (george got a free rating by accident .... )
 
Old 07-04-2011, 08:44 AM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321Reputation: 5321
Recently added to the LQWiki FAQ:

How can I autmount external NTFS drives with read-write permissions?
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a network drive writable kcynice Linux - Newbie 5 10-19-2010 09:33 PM
How to make a Writable Direcotry in Linux Based Hosting ? naumanikram Linux - Newbie 1 08-05-2010 10:46 PM
anyone know to make samba shares writable? jasybee2000 Linux - Software 4 01-07-2005 08:25 AM
Knoppix 3.4 make partition writable for everyone suguru Debian 2 05-12-2004 04:07 PM
Make other partition writable to all gm_leon Linux - General 2 11-27-2002 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration