5 Replies - 2839 Views - Last Post: 05 November 2010 - 12:38 AM

#1 nirvanarupali   User is offline

  • D.I.C Stomach
  • member icon

Reputation: 14
  • View blog
  • Posts: 1,120
  • Joined: 01-August 07

Can't access windows files in ubuntu

Posted 02 November 2010 - 04:30 PM

I have dual boot. Windows XP and Ubuntu 10.04 LTS.

I don't have a partition. I have formatted the disk to NTFS then installed XP first. After that I have installed Ubuntu 10.04 LTS under Windows.

I have decided to access Windows files from Ubuntu.

I have used Gparted to know where my windows is.
Then I have found this.
/dev/sda1

So I made...

mkdir /mnt/windows

Then

mount -t ntfs /dev/sda1 /mnt/windows -o "umask=022"

When I browse Places->Computer. I have found the disk where supposed to be my windows files are there. I can't access it.

Error : Cannot mount

However, when I browse through

/mnt/windows

I see all windows files there. I can copy it if I want to. But what I want is directly access it through
Places->Computer

After I restart. I cannot anymore see the files at /mnt/windows.

So I have to do it this all over again if I what to access windows files.

Do I made something wrong? Or maybe because Ubuntu is under Windows?

Any ideas...

Thank you.

Is This A Good Question/Topic? 0
  • +

Replies To: Can't access windows files in ubuntu

#2 GWatt   User is offline

  • member icon

Reputation: 312
  • View blog
  • Posts: 3,107
  • Joined: 01-December 05

Re: Can't access windows files in ubuntu

Posted 02 November 2010 - 09:00 PM

It might be a permissions issue that prevents you from accessing via Places->Computer.
One thing you can try is automounting the windows partition. You would add a line to your /etc/fstab file that looks like this:
/dev/sda2       /mnt/windows        ntfs-3g defaults        0 0


You should then be able to access your windows install at will.
Was This Post Helpful? 2
  • +
  • -

#3 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Can't access windows files in ubuntu

Posted 02 November 2010 - 09:08 PM

The file fstab stands for File System tab. But once Ted said "You put that into the F-Stab file. Kind of a violent name for a config file."

Also there is this tutorial, for managing the fstab file.

I would also suggest using the UUID in the fstab, as Linux Mint (not sure about Ubuntu) will mount based on this, & sometimes USB drives will take a higher address & throw the /dev/sd? chain off, making your system not boot.
Was This Post Helpful? 1
  • +
  • -

#4 nirvanarupali   User is offline

  • D.I.C Stomach
  • member icon

Reputation: 14
  • View blog
  • Posts: 1,120
  • Joined: 01-August 07

Re: Can't access windows files in ubuntu

Posted 03 November 2010 - 12:44 PM

Thanks, I have made your suggestions. Although still cannot be found at Places->Computer but I can browse after restart at /mnt/windows. I have to keep this on this way.
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: Can't access windows files in ubuntu

Posted 03 November 2010 - 12:49 PM

What windows manager are you using?

Assuming it's Gnome, I have a suspicion that Places -> Computer only shows the /media/ ... mounted devices.

I prefer /mnt/ myself, but sometimes you have to play nice with what the GUI offers. I think most things Ubuntu use /media/ mount points.
Was This Post Helpful? 0
  • +
  • -

#6 Autocrat   User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Re: Can't access windows files in ubuntu

Posted 05 November 2010 - 12:38 AM

Ubuntu does use the /media mount point. Anything other than it will not show up in Places. I can't say if this mount point is specific to GNOME as well. But it is specific to Ubuntu.

I recall that in GNOME, you also see unmounted drives. When you double click them, they get mounted at that instant and you can access them.

Ubuntu is also finicky about UUIDs. Each device is assigned a UUID. Editing /etc/fstab on Ubuntu used to be a problem for me until I did specify the UUID (Even though it is not necessary). To get the UUID for your device, issue this command:

$ blkid


Edit your FSTAB using the UUID of that drive listed there and mounting that drive upon boot shouldn't be a problem for you.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1