LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   writing premissions on USB ntfs HD achived, how to make it last? (https://www.linuxquestions.org/questions/linux-newbie-8/writing-premissions-on-usb-ntfs-hd-achived-how-to-make-it-last-572953/)

greg.drezner 07-28-2007 08:24 AM

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

khairilthegreat 07-28-2007 02:46 PM

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

greg.drezner 07-29-2007 01:27 AM

can i add a pmount command to the fstab as well?

Nylex 07-29-2007 02:30 AM

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.

oskar 07-29-2007 10:26 AM

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.


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