Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
hello, i am using mandriva 2008 for a week now, i want to write to the NTFS volumes that i have but it says that i cannot write to those ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Location
    i live in India
    Posts
    5

    Help cange permissions of mounted devices


    hello, i am using mandriva 2008 for a week now, i want to write to the NTFS volumes that i have but it says that i cannot write to those volumes, i can only read data. is there any way to change the permissions ? through some shell programming or anything ? please help.
    thank you,
    JN.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    There is no need of shell programming. All you have to do is, mount NTFS partition with read/write privileges. You have to edit /etc/fstab file for that.

    Execute this in Terminal/Konsole :
    Code:
    su -
    fdisk -l
    cat /etc/fstab
    Post output here.

    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    There is no need of shell programming. All you have to do is, mount NTFS partition with read/write privileges. You have to edit /etc/fstab file for that.

    Execute this in Terminal/Konsole :
    Code:
    su -
    fdisk -l
    cat /etc/fstab
    Post output here.

    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Jan 2010
    Location
    i live in India
    Posts
    5
    thank you,
    here is the output
    [root@localhost ~]# fdisk -l

    Disk /dev/hdc: 80.0 GB, 80060424192 bytes
    255 heads, 63 sectors/track, 9733 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xe0f3e0f3

    Device Boot Start End Blocks Id System
    /dev/hdc1 * 1 1275 10241406 7 HPFS/NTFS
    /dev/hdc2 1276 9732 67930852+ f W95 Ext'd (LBA)
    /dev/hdc5 1276 3825 20482843+ 7 HPFS/NTFS
    /dev/hdc6 3826 6375 20482843+ 7 HPFS/NTFS
    /dev/hdc7 7651 9732 16723633+ 7 HPFS/NTFS
    /dev/hdc8 6376 6440 522081 82 Linux swap / Solaris
    /dev/hdc9 6441 7650 9719293+ 83 Linux

    [root@localhost ~]# cat /etc/fstab
    /dev/hdc9 / ext3 relatime 1 1
    /dev/cdrom /media/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0
    /dev/hdc1 /mnt/win_c ntfs umask=0022,nls=utf8,ro 0 0
    /dev/hdc5 /mnt/win_d ntfs umask=0022,nls=utf8,ro 0 0
    /dev/hdc6 /mnt/win_e ntfs umask=0022,nls=utf8,ro 0 0
    /dev/hdc7 /mnt/win_f ntfs umask=0022,nls=utf8,ro 0 0
    none /proc proc defaults 0 0
    /dev/hdc8 swap swap defaults 0 0

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Open /etc/fstab with root privileges and edit ntfs lines.
    Code:
    /dev/hdc1 /mnt/win_c ntfs-3g defaults,umask=0 0 0
    /dev/hdc5 /mnt/win_d ntfs-3g defaults,umask=0 0 0
    /dev/hdc6 /mnt/win_e ntfs-3g defaults,umask=0 0 0
    /dev/hdc7 /mnt/win_f ntfs-3g defaults,umask=0 0 0
    Save file and reboot machine.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Jan 2010
    Location
    i live in India
    Posts
    5
    Thank you, but i dont know how to edit that file with root preveledges.

    on top of that now i am having another error it says : "File or Folder /mnt/win_c does not exist" when i am trying to open my Drive C using konqueror. this is happening for all the NTFS partions.

    But when i can view all my file within win_c from the terminal using ls.
    please help.
    thanks.
    JN

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute this
    Code:
    su -
    cd /mnt
    mkdir win_c win_d win_e win_f 
    nano /etc/fstab
    su - is for gaining root privileges. mkdir command will create folders in /mnt and next command will open /etc/fstab file in nano editor.

    Edit contents of /etc/fstab as I suggested earlier and press Ctrl+X, Y and hit Enter key to save file. Reboot machine. Check folders in /mnt.

    In case it doesn't work, post the output of df -h command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Jan 2010
    Location
    i live in India
    Posts
    5
    Thank you...

    I will do as you have told.. another thing should i remove the existing Win_c, win_d etc.. directories existing under /mnt ??

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    If directories having same name already exist, mkdir command will throw an error. Linux is case sensitive. Make sure to use proper case. Folders name in /mnt and /etc/fstab file must be same.
    If you are creating Win_C folder then it must be /mnt/Win_C in /etc/fstab file instead of /mnt/win_c.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Jan 2010
    Location
    i live in India
    Posts
    5
    Thank you ,

    I did as you have told but the problem persists : when i try to open any of my NTFS partitions using konqueror is says "The file or folder /mnt/win_d" doesnot exist, this is same for all my windows partitions c,d,f.

    Where as when i open /mnt/win_d from the terminal i can view all the files inside /mnt/win_d using command ls.

    The output of df -h :
    [when done from user]

    [login_ishan@localhost ~]$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/hdc9 9.2G 4.2G 4.6G 48% /
    df: `/mnt/win_d': Permission denied
    df: `/mnt/win_e': Permission denied
    df: `/mnt/win_f': Permission denied
    df: `/mnt/windows_c': Permission denied

    [when done from root]

    [root@localhost ~]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/hdc9 9.2G 4.2G 4.6G 48% /
    /dev/hdc5 20G 15G 5.0G 75% /mnt/win_d
    /dev/hdc6 20G 8.2G 12G 42% /mnt/win_e
    /dev/hdc7 16G 3.6G 13G 23% /mnt/win_f
    /dev/hdc1 9.8G 5.9G 3.9G 61% /mnt/windows_c

    [The output of cat /etc/fstab :]

    [root@localhost ~]# cat /etc/fstab
    /dev/hdc9 / ext3 relatime 1 1
    /dev/cdrom /media/cdrom auto umask=0022,users,iocharset=utf8,noauto,ro,exec 0 0
    /dev/hdc5 /mnt/win_d ntfs defaults,umask=0 0 0
    /dev/hdc6 /mnt/win_e ntfs defaults,umask=0 0 0
    /dev/hdc7 /mnt/win_f ntfs defaults,umask=0 0 0
    /dev/hdc1 /mnt/windows_c ntfs defaults,umask=0 0 0
    none /proc proc defaults 0 0
    /dev/hdc8 swap swap defaults 0 0

    [The content of /mnt :]

    [root@localhost ~]# cd /mnt
    [root@localhost mnt]# ls
    disk/ win_c/ win_d/ windows_c/ win_e/ win_f/


    Please help...
    JN

Page 1 of 2 1 2 LastLast

Posting Permissions

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