Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: Accessing Windows files from Ubuntu

  1. #21
    Join Date
    Jul 2010
    Location
    Oregon, USA
    Beans
    17
    Distro
    Ubuntu

    Re: Accessing Windows files from Ubuntu

    Quote Originally Posted by sisco311 View Post
    Oh, sorry, edit the fstab file to:
    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc    /proc    proc    nodev,noexec,nosuid    0    0
    /dev/sda1    /host    ntfs    defaults,nls=utf8,umask=0222,nosuid,nodev    00
    /dev/sda2    /media/FACTORY_IMAGE    ntfs    defaults,nls=utf8,umask=0222    00
    /host/ubuntu/disks/root.disk    /    ext4    loop,errors=remount-ro    0    1
    /host/ubuntu/disks/swap.disk    none    swap    loop,sw    0    0
    
    /dev/sda1       /media/windrive         ntfs    defaults,dmask=002,fmask=113,gid=plugdev    0    0
    Wubi must be able to access the the disk image files from /host/ubuntu/disks/.
    So here is what my fstab looks like now:
    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc    /proc    proc    nodev,noexec,nosuid    0    0
    /dev/sda1    /host            ntfs    defaults,nls=utf8,umask=0222,nosuid,nodev    0    0
    /dev/sda2    /media/FACTORY_IMAGE    ntfs    defaults,nls=utf8,umask=0222    0    0
    /host/ubuntu/disks/root.disk    /    ext4    loop,errors=remount-ro    0    1
    /host/ubuntu/disks/swap.disk    none    swap    loop,sw    0    0
    
    /dev/sda1    /media/windrive        ntfs    defaults,dmask=002,fmask=113,gid=plugdev    0    0
    Still not showing up in my Places... When I navigate to /media , the files are there though. Just had to restart my machine. So I guess the last thing I need to do is get the /media/windrive to show in the Places area.

  2. #22
    Join Date
    Jul 2010
    Location
    Oregon, USA
    Beans
    17
    Distro
    Ubuntu

    Re: Accessing Windows files from Ubuntu

    I just used the old 'drag and drop' technique in the file browser and drug the 'windrive' directory onto the left panel. Now it shows up in places. Thank you so so so much for taking the time to assist me! I really appreciate it.

  3. #23
    Join Date
    Jul 2010
    Location
    Oregon, USA
    Beans
    17
    Distro
    Ubuntu

    Re: Accessing Windows files from Ubuntu

    Thanks Sisco for the permissions breakdown

  4. #24
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

  5. #25
    Join Date
    Oct 2009
    Beans
    97

    Re: Accessing Windows files from Ubuntu

    you should have listen to the 1st reply you had to your post blackedout, from sisco! He even points you to a tutorial! Install NTFS Configuration Tool (ntfs-config), and you wont have to manually config the fstab file. Thou that comment by darkness des must have been just to confuse you! haha

  6. #26
    Join Date
    Jul 2010
    Location
    Oregon, USA
    Beans
    17
    Distro
    Ubuntu

    Re: Accessing Windows files from Ubuntu

    Quote Originally Posted by quimkaos View Post
    you should have listen to the 1st reply you had to your post blackedout, from sisco! He even points you to a tutorial! Install NTFS Configuration Tool (ntfs-config), and you wont have to manually config the fstab file. Thou that comment by darkness des must have been just to confuse you! haha
    Ya after all the work, I took a step back and reviewed. I figured out how to use the ntfs config. Much easier lol
    Last edited by BlackedOut271; July 9th, 2010 at 02:55 PM.

  7. #27
    Join Date
    Dec 2009
    Beans
    6,777

    Re: Accessing Windows files from Ubuntu

    Although one could argue that since this was a Wubi install the windows partition was already mounted and present in fstab so there was no need to mount it again.

  8. #28
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Accessing Windows files from Ubuntu

    Quote Originally Posted by Morbius1 View Post
    Although one could argue that since this was a Wubi install the windows partition was already mounted and present in fstab so there was no need to mount it again.
    True. It's probably a better solution to mount it once, under /host, with rw permissions for a user or group and symlink the /host dir to /media/windows or something.


    I was thinking a little more about this... /dev/sda1 holds the Windows installation. Granting rw permissions for a regular user to all the system files is a security risk.

    I would let /dev/sda1 to be mounted with read only permissions and use bindfs to remount the user's home directory (<root>\Documents and Settings\<username> or <root>\Users\<username>) with rw permissions. What do you think?

  9. #29
    Join Date
    Dec 2009
    Beans
    6,777

    Re: Accessing Windows files from Ubuntu

    Quote Originally Posted by sisco311 View Post
    I would let /dev/sda1 to be mounted with read only permissions and use bindfs to remount the user's home directory (<root>\Documents and Settings\<username> or <root>\Users\<username>) with rw permissions. What do you think?
    You're the master of bindfs in this ( or any other ) forum. I have noticed a problem with binding things to my home folder though. I've tried it twice and it stops the booting process. The only way to recover was to boot into another OS ( I multiboot ) and remove the line. I don't know if this is another upstart problem like the one mentioned in your howto or simply user error. The same line works if I bind it to something outside my home directory however so a bindfs to /media/windrive should work.

    The only other point is that in his original post BlackedOut271 was using the following line to mount the partitions manually:
    sudo mount -t ntfs /dev/sda1 /mnt/windrive -o "unmask=022"
    As a regular user he only had read access to the mountpoint and only wanted a way to make it mount at boot to a location other than /host.

  10. #30
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Accessing Windows files from Ubuntu

    Quote Originally Posted by Morbius1 View Post
    You're the master of bindfs in this ( or any other ) forum. I have noticed a problem with binding things to my home folder though. I've tried it twice and it stops the booting process. The only way to recover was to boot into another OS ( I multiboot ) and remove the line.
    If it's an Upstart or mountall issue, you could try to write an Upstart job to make sure that bindfs runs after all partitions are mounted,
    /etc/init/bindfs.conf:
    Code:
    #
    #/etc/init/bindfs.conf
    #
    
    description     "run bindfs after all partitions are mounted"
    
    start on mounted
    
    script
    bindfs [options] dir mountpoint
    end script

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

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