Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
[root@localhost tmp]# cat /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/data /data ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Location
    China
    Posts
    26

    [SOLVED] Cannt write in XP partion!!!

    [root@localhost tmp]# cat /etc/fstab
    LABEL=/ / ext3 defaults 1 1
    LABEL=/data /data ext3 defaults 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    LABEL=SWAP-sda11 swap swap defaults 0 0
    /dev/sda1 /mnt/xp vfat defaults 1 2
    /dev/sda5 /mnt/software vfat defaults 1 2
    /dev/sda6 /mnt/package vfat defaults 1 2
    /dev/sda7 /mnt/learning vfat defaults 1 2
    /dev/sda8 /mnt/fun vfat defaults 1 2
    [root@localhost tmp]#
    the user m(not root) have the perm to write /mnt/*,but when they mount filesystem ,m cannt write any more!!!but root have the perm to write and delete!!!

    what can i do for it ??????

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Are all partitions formatted in FAT32 filesystem?
    Edit /etc/fstab file :
    Code:
    /dev/sda1 /mnt/xp vfat defaults,umask=0 0 0
    /dev/sda5 /mnt/software vfat defaults,umask=0 0 0
    /dev/sda6 /mnt/package vfat defaults,umask=0 0 0
    /dev/sda7 /mnt/learning vfat defaults,umask=0 0 0
    /dev/sda8 /mnt/fun vfat defaults,umask=0 0 0
    Execute mount -a command or reboot machine.
    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
    Mar 2009
    Location
    China
    Posts
    26
    It's OK,
    thank you very much,my Indian friend!!!!!

  4. #4
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Quote Originally Posted by zengmao View Post
    It's OK,
    thank you very much,my Indian friend!!!!!
    Ok? You mean to say now you are able to write without any sort of editing after this posting?

    But if I'm right, by default, the 'defaults' option doesnot give write access to user that too in /mnt directory!
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

  5. #5
    Just Joined!
    Join Date
    Mar 2009
    Location
    China
    Posts
    26
    Yeah ,

    I have :
    chown m /mnt/*


    Is this right??????

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    There is no need to execute chown command for Fat32 and NTFS partitions. Linux support FAT32 write access by default but one has to set umask=0 to enable it. ntfs-3g package is pre-installed in most of distros these days and it allows read/write access to NTFS partitions.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Mar 2009
    Location
    China
    Posts
    26
    not partion,

    only the directory under /mnt

  8. #8
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Quote Originally Posted by zengmao View Post
    Yeah ,

    I have :
    chown m /mnt/*


    Is this right??????
    bingo.....
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Don't you have write access in Windows Partitions now?

    Execute this
    Code:
    ls /mnt
    df -h
    Post output here.
    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
    Mar 2009
    Location
    China
    Posts
    26
    I had write access in Windows Partitions already!!!!

    Code:
    [m@localhost ~]$ ls /mnt
    fun  learning  package  software  xp
    [m@localhost ~]$ df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda10             24G  5.6G   17G  25% /
    /dev/sda9              19G  4.0G   15G  22% /data
    tmpfs                 505M     0  505M   0% /dev/shm
    /dev/sda1             9.8G  3.9G  5.9G  40% /mnt/xp
    /dev/sda5              25G  2.6G   22G  11% /mnt/software
    /dev/sda6              44G  1.7G   43G   4% /mnt/package
    /dev/sda7             9.8G  106M  9.7G   2% /mnt/learning
    /dev/sda8              15G  4.1G   11G  28% /mnt/fun
    [m@localhost ~]$

    Oh ,if I
    Code:
     chown root /mnt/*
    ,i have the write permission also....

    It dosn't matter with the owner of the directory under /mnt!!


    Thank you very much!!!!!

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
  •  
...