Find the answer to your Linux question:
Results 1 to 8 of 8
I'm haveing permision problems viewing my windows partition in linux. I can read all the files ok as root, but I can't as a user; I've tried ' chmod " ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157

    Problems viewing Windows partition


    I'm haveing permision problems viewing my windows partition in linux. I can read all the files ok as root, but I can't as a user;
    I've tried 'chmod" command:
    Code:
    linux:/home/dylunio # chmod a+r /windows/C
    chmod: changing permissions of `/windows/C': Read-only file system
    But I still can't access my windows partition as a user;
    I've also tried to use "chown" command:
    Code:
    inux:/home/dylunio # chown dylunio /windows/C
    chown: changing ownership of `/windows/C': Read-only file system
    But I still can't access my windows partition as a user;

    This is my fstab:
    Code:
    /dev/hda1            /windows/C           hpfs/ntfs  defaults              0 0
    /dev/hda4            /mnt/kevin           reiserfs   defaults              0 0 
    /dev/hda3            /                    reiserfs   defaults              1 1
    /dev/hda2            swap                 swap       pri=42                0 0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
    proc                 /proc                proc       defaults              0 0
    usbfs                /proc/bus/usb        usbfs      noauto                0 0
    sysfs                /sys                 sysfs      noauto                0 0
    /dev/cdrecorder      /media/cdrecorder    subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
    /dev/dvd             /media/dvd           subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
    /dev/fd0             /media/floppy        subfs      fs=floppyfss,procuid,nodev,nosuid,sync 0 0
    This is realy annoying that I can't access my files;

    Thanks;
    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  2. #2
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    you need to add a umask to the windows partition entry in /etc/fstab... read the manpage for fstab to find out what the umask should be.
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  3. #3
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    I've looked in my manpage for fstab, and they contain nothing.
    I've tried the fstab line with; umask=002 also i've tried umask=0222
    I've also added user to the line, as well as ro
    But I still can't access my windows partition as a user.

    Any help would be appreciated;
    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  4. #4
    Just Joined!
    Join Date
    Mar 2004
    Location
    london
    Posts
    22
    why not create a logical partition and name it " Data " to keep all yr windows and linux files.
    Format this partition as " fat32 file system ".
    Then u can access yr files fr both operarting systems.

    I think there's an issue using ntfs file system with linux. Not sure this is fixed in Suse9.1

  5. #5
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Quote Originally Posted by pchin
    I think there's an issue using ntfs file system with linux. Not sure this is fixed in Suse9.1
    I doubt it's the ntfs file system, since I can access the partition as root, and the fact I could access it before I unmounted the drive;
    But what the hell, I've decided to build a linux only computer, and set up Samba between this computer which will then be XP only, with my new computer;
    Thanks for your help guys;
    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  6. #6
    Linux User sheds's Avatar
    Join Date
    Nov 2004
    Location
    ??????????
    Posts
    342
    Quote Originally Posted by pchin
    I think there's an issue using ntfs file system with linux. Not sure this is fixed in Suse9.1
    I use mandrake and just before i reinstalled it, it was working fine. And all my win partitions are ntfs. Now, i can't make it work again, and i put the same installer cds in as last time. Weird stuff. I guess computers do have a mind of their own.

  7. #7
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Got it fixed at last!

    I used
    Code:
    chmod 777 /dev/hda1
    It way not be the best way, but, Linux is only going to bi installed on theis comp for a week or so longer;

    thanks for all your suggestions;

    seasons greetings;

    dylunio
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  8. #8
    Just Joined!
    Join Date
    Jan 2005
    Posts
    1
    For future reference:
    This works for me if I set umask=0000. Dunno why

Posting Permissions

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