Find the answer to your Linux question:
Results 1 to 6 of 6
how to delete or modify the files in windows drives in mandriva linux.... how to change the permissions of that drives....please help.... thanks in advance.....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    csr
    csr is offline
    Just Joined!
    Join Date
    Sep 2008
    Posts
    3

    Arrow windows drives in linux...


    how to delete or modify the files in windows drives in mandriva linux.... how to change the permissions of that drives....please help.... thanks in advance..

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    How did you mount Windows Partitions in Mandriva?
    Post the contents of /etc/fstab file here.
    Post the output of these commands too :
    Code:
    su -
    fdisk -l
    df -h
    * 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
    Just Joined!
    Join Date
    Jun 2008
    Posts
    35
    you're only asking how to change the permissions, so I assume you already know how to mount it and already did.

    to change access permissions to everyone may do everything (the easiest form) just type

    Code:
    su
    [put you root password in. it's normal that you don't see what you type]
    cd /path/to/windoze
    chmod 777 *
    you can specify instead of just doing *, you can change rights recursively, change only certain rights for certain ppl...
    all with chmod.
    google is your friend.

    hf

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by paprika27 View Post
    you're only asking how to change the permissions, so I assume you already know how to mount it and already did.

    to change access permissions to everyone may do everything (the easiest form) just type

    Code:
    su
    [put you root password in. it's normal that you don't see what you type]
    cd /path/to/windoze
    chmod 777 *
    you can specify instead of just doing *, you can change rights recursively, change only certain rights for certain ppl...
    all with chmod.
    google is your friend.

    hf
    Changing permissions using chmod command wont work because Windows OS doesn't sustain file permissions.
    One must set umask value to zero in /etc/fstab file or use that option in mount command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    csr
    csr is offline
    Just Joined!
    Join Date
    Sep 2008
    Posts
    3

    Arrow here are the results....

    [root@localhost etc]# cat fstab


    # Entry for /dev/hda7 :
    UUID=46c0351b-6a11-46fb-90f0-216ee4af7edd / ext3 relatime 1 1
    # Entry for /dev/hda8 :
    UUID=b0280653-2ef5-4f55-8cae-6fb77b4a4aaa /home ext3 relatime 1 2
    none /proc proc defaults 0 0
    # Entry for /dev/hda1 :
    UUID=FED039C1D03980C7 /media/hd ntfs-3g defaults 0 0
    # Entry for /dev/hda5 :
    UUID=7CA4D9CFA4D98C50 /media/hd2 ntfs-3g defaults 0 0
    # Entry for /dev/hda6 :
    UUID=BCF8AD40F8ACF9B2 /media/hd3 ntfs-3g defaults 0 0


    [root@localhost etc]# fdisk -l

    Disk /dev/hda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xe571e571

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 3824 30716248+ 7 HPFS/NTFS
    /dev/hda2 3825 9729 47431912+ f W95 Ext'd (LBA)
    /dev/hda5 3825 6374 20482843+ 7 HPFS/NTFS
    /dev/hda6 6375 8286 15358108+ 7 HPFS/NTFS
    /dev/hda7 8287 8676 3132643+ 83 Linux
    /dev/hda8 8677 9729 8458191 83 Linux

    Disk /dev/sda: 1021 MB, 1021125120 bytes
    32 heads, 63 sectors/track, 989 cylinders
    Units = cylinders of 2016 * 512 = 1032192 bytes
    Disk identifier: 0xc01c9572

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 989 996880+ b W95 FAT32



    [root@localhost etc]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda7 3.0G 2.0G 815M 72% /
    /dev/hda8 8.0G 188M 7.8G 3% /home
    /dev/hda1 30G 6.8G 23G 23% /media/hd
    /dev/hda5 20G 1.4G 19G 8% /media/hd2
    /dev/hda6 15G 1.1G 14G 7% /media/hd3
    /dev/hdc 4.3G 4.3G 0 100% /media/SONGS-VEDIOS
    /dev/sda1 972M 5.0M 967M 1% /media/DATA
    [root@localhost etc]#

  7. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Open /etc/fstab file with root privileges and add umask=0 in these lines :
    Code:
    UUID=FED039C1D03980C7 /media/hd ntfs-3g defaults,umask=0 0 0
    # Entry for /dev/hda5 :
    UUID=7CA4D9CFA4D98C50 /media/hd2 ntfs-3g defaults,umask=0 0 0
    # Entry for /dev/hda6 :
    UUID=BCF8AD40F8ACF9B2 /media/hd3 ntfs-3g defaults,umask=0 0 0
    Save file and execute mount -a command or Reboot machine. You will have read/write access in all partitions.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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