Find the answer to your Linux question:
Results 1 to 6 of 6
I have an EEE PC netbook set up to record and transfer files from a USB stick. The USB device was initially formatted with ReiserFS. Under Reiser, I was able ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630

    Cannot write to NTFS USB device!


    I have an EEE PC netbook set up to record and transfer files from a USB stick. The USB device was initially formatted with ReiserFS. Under Reiser, I was able to easily add a line to my /etc/fstab so the USB device would be mounted at boot as writable by a regular user. Easy as pie. It worked perfectly.

    For reasons I won't go into, it was decided that the USB device should be formatted with NTFS so that it can be transported physically to a Windows machine where the files can be transferred directly if needed.

    I know the device can be written to. If I mount the USB device "by hand" and change its permissions and ownership, I can read and write with it all day long.

    I have tried a zillion different fstab configurations I've found on the net and none will allow me to do what I used to could do when the device was formatted with Reiser. I need to do this:

    1. Have the device mounted during boot so a regular user can read and write to it.

    That's it!

    Here is my present /etc/fstab that also doesn't allow read - write access to the external USB device formatted with NTFS...
    Code:
    # <file system>        <dir>     <type>    <options>              <dump> <pass>
    
    /dev/sda1              /                 reiserfs    relatime                        0      0
    /dev/sr0               /cdrom            iso9660     ro,user,noauto,unhide           0      0
    /dev/sr0               /dvd              udf         ro,user,noauto,unhide           0      0
    /dev/sdb1              /mnt/sdb1         ntfs-3g     defaults,user,rw                1      0
    devpts                 /dev/pts          devpts      defaults                        0      0
    none                   /sys              sysfs       defaults                        0      0
    none                   /proc             proc        defaults                        0      0
    tmp                    /tmp              tmpfs       defaults                        0      0
    #shm                   /dev/shm          tmpfs       defaults                        0      0
    usb                    /proc/bus/usb     usbfs       defaults                        0      0
    
    # End of file
    What must I do to the "ntfs" line in my fstab so the USB stick will be mounted as readable and writable by regular user? Any help appreciated.
    Linux Mint + IceWM Registered: #371367 New Members: click here

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    Okay, I found a way to make this work. I placed:
    Code:
    /sbin/mount.ntfs-3g /dev/sdb1 /mnt/sdb1
    ...in /etc/rc.local and now I get read - write for regular user.
    Linux Mint + IceWM Registered: #371367 New Members: click here

  3. #3
    Linux Guru
    Join Date
    Jul 2008
    Posts
    4,170
    I don't know if this applies to Crux Dan, so bear with my ignorance.

    On my Icewm I run ROX File Manager and PCManFM. To be able to mount USB drives from file managers, (either one of them) and like I said, bear with me.

    I uninstalled ivman and installed halevt module/deamon through terminal. To be on the safe side I edited Icewm and Fluxbox startup file and included
    halevt &
    though it probably wasn't needed to be done because I saw halevt load up on boot screen.

    It works slicker than snot mounting drives through my file managers.

    halevt, HAL events handler homepage

    I realize this post doesn't have much to do with auto write privilidges(though I can transfer files just fine), but I thought I would throw it out there in case you wanted to know about it. I was also wondering why they wanted a ntfs file system when fat 32 would do just fine for a usb drive.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Quote Originally Posted by Dapper Dan View Post
    I placed:
    Code:
    /sbin/mount.ntfs-3g /dev/sdb1 /mnt/sdb1
    ...in /etc/rc.local and now I get read - write for regular user.
    Dan, could you please explain what it is and how it solves the problem?
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

  6. #5
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,630
    Quote Originally Posted by saivin View Post
    Dan, could you please explain what it is and how it solves the problem?
    Do you have ntfs-3g installed? If so, do a search and find mount.ntfs-3g. I will likely be placed under /sbin as mine is. Wherever it is, use it to mount the device from /dev to the folder it is mounted to... the same as I have.

    From what I've been able to determine, the regular mount command is not able to mount ntfs partitions or devices formatted with it in read-write. If ntfs-3g is installed, you can mount the drives as read-write with that instead. That has been my experience anyway. Does that help?
    Linux Mint + IceWM Registered: #371367 New Members: click here

  7. #6
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Thanks Dan, that helps.

    But I had success with just 'ntfs' entry in my /etc/fstab, long time back. If I remember correctly I even had edited boot.ini from windows so as to load linux from windows bootloader. Both (the editing and consequent booting from windows loader) had worked.

    Anyway I don't have windows in my home computer/laptop anymore (I'm 100% on linux at home ). Will try in office later.
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •