LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-28-2007, 09:24 AM   #1
greg.drezner
LQ Newbie
 
Registered: Jul 2007
Distribution: ubuntu
Posts: 7

Rep: Reputation: 0
writing premissions on USB ntfs HD achived, how to make it last?


after spending about 2 hours of reading and searching and almost bursting in tears while trying to get Ubuntu 7.4 to mount the NTFS usb 160GIG hard drive that have, i finally went with the "MS way", boot up windows XP and safely unmount the HD, than restarted and typed: "sudo umount /media/disk"
the disk disappeared from my desktop (even though a normal "Eject" could not get rid of it).
than a "pmount /dev/sdb1 USBDISK" (I installed pmount while following one of the tutorials in the forums)
and viola... i can write on the NTFS disk.

now, my question is, how do I make it last?
I mean do i need to do the same procedure on every boot? or is there a place to "catch" the device before it gets mounted by the normal mount program?

Greg
 
Old 07-28-2007, 03:46 PM   #2
khairilthegreat
LQ Newbie
 
Registered: Nov 2006
Distribution: Kubuntu
Posts: 25

Rep: Reputation: 15
mount ntfs

You can mount (read and write) ntfs with ntfs-3g.

And you can make it last using /etc/fstab entry.

Check http://www.ntfs-3g.org/

It's just as simple as

# mount -t ntfs-3g /dev/sdb1 /mnt/mount_point

Last edited by khairilthegreat; 07-28-2007 at 03:48 PM.
 
Old 07-29-2007, 02:27 AM   #3
greg.drezner
LQ Newbie
 
Registered: Jul 2007
Distribution: ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
can i add a pmount command to the fstab as well?
 
Old 07-29-2007, 03:30 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
No. You don't put commands in fstab for one thing and secondly I think pmount doesn't honour fstab entries anyway, since it's used for mounting things without requiring an fstab entry.
 
Old 07-29-2007, 11:26 AM   #5
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
you already complicated your life there unnecessary. If you are using Ubuntu 7.4, you can do all that with a few clicks.

Applications - system tools - ntfs configuration tool

And behold! The two mighty check boxes. And they act as promised. Now the disk should get mounted automatically.

Hope that works. If that doesn't work, you can add it to the fstab. But you have to mount it by uuid, and lately ubuntu doesn't mount my ntfs drives with the ntfs-3g command, it uses "fuseblk". I can't tell you much about that. Just very briefly, if you want user permissions for a removeable device you simply add:
Code:
user
If you want it to be mountable by any user, but unmountable only by the user who started it. (recommended)
Code:
users
Same as above, but everyone can unmount
Code:
user=your_username_here
If you want it only for you

and
Code:
noauto
... to the options.
Noauto just tells it to not mount it at boot time.

It's also a good idea to mount it by uuid. You can find it in /dev/disk/by-uuid/
after you conneced it.
(just do an ls -l on the directory)
Then, instead of the device location, you enter the uuid with:

Code:
UUID=whatever_you_found
so the fstab entry looks something like

Code:
UUID=a_bunch_of_ominous_looking_numbers /where/you/want/it ntfs-3g rw,noauto,user 0 0
But this is just so you know... As I said: It should be much easier.

Last edited by oskar; 07-29-2007 at 11:34 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Writing on NTFS Instantly Linux - Newbie 4 06-30-2007 06:10 PM
Writing to an NTFS volume using captive-ntfs (repairing boot.ini) macskeeball Linux - General 3 02-06-2005 10:28 PM
Writing to NTFS irfanhab Linux - Software 6 05-14-2004 05:08 PM
Setting premissions for mounted ntfs partitions RHL 9 killer_bunny Linux - Newbie 1 10-22-2003 06:55 AM
Clearing all premissions on NTFS or converting back to FAT32 AnyoneEB General 7 06-16-2002 06:19 AM


All times are GMT -5. The time now is 08:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration