Find the answer to your Linux question:
Results 1 to 3 of 3
Distro is Ubuntu. When i do sudo chmod 777 /media/partition_name I get a message "Cannot chmod. This partition is read-only." How do I change this so I could write on ...
  1. #1
    Just Joined! randomAccess's Avatar
    Join Date
    Dec 2005
    Location
    SE Europe
    Posts
    44

    NTFS partition doesn't accept chmod 777

    Distro is Ubuntu. When i do
    sudo chmod 777 /media/partition_name
    I get a message "Cannot chmod. This partition is read-only."

    How do I change this so I could write on it too? Which console command to use?

  2. #2
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    You can chmod a NTFS/FAT32 filesystem, they just don't accept UNIX-like permissions.

    Hmm..I'm not aware if NTFS read-write is still safe.. I'd suggest you to look at Google or Google for Linux and look for some tutorial/guide.
    serzsite.com.ar
    "All the drugs in this world won\'t save you from yourself"

  3. #3
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    Location
    North East England
    Posts
    1,190
    what you are after is the option in the mount command to set the permissions. This is the umask=nnnn option. The nnnn are numbers that are the same as the usual file permisions (ie. the chmod command) , but the opposite of them.

    So, to mount a filesystem that lives on a device called /dev/hda1 onto a pre-prepared mount point (folder) called /mnt/windoze , and give everybody read/write/execute (what in the chmod command would be a 777) I would do (as root user) :-

    mount /dev/hda1 /mnt/windoze -o umask=0000

    Of course, to make this a permenant thing, I'd have to modify my /etc/fstab file as well.

    have fun

    Nerderello

    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

Posting Permissions

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