LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-16-2005, 11:02 PM   #1
justin.freund
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Unable to access windows partition in Ubuntu


Hey guys, just installed ubuntu as a second OS on this windows box, and I am trying to access my files from the windows partition on the drive in Ubuntu. I can access them in root, but that does not do me much good on my regular user account.

The error I get is "You do not have the permissions necessary to view the contents of 'sda1'"

I have tried to chmod and chowner under root, and this does not help. ive also tried changing them from my user account with sudo.

I did google it first, and it seemed I needed to change the fstab file, which i tried doing, but also made no difference (which is possibly because i am using a SATA drive and all the others were for normal IDE).

Right now i am currently using the default fstab i had saved as a backup. Any ideas?
 
Old 11-17-2005, 12:09 AM   #2
ninjabob7
Member
 
Registered: Nov 2005
Distribution: Ubuntu 9.10 and Slackware 13.1
Posts: 78

Rep: Reputation: 15
In your /etc/fstab file (open as root) you should see a line something like this:
Code:
/dev/hda1       /media/hda1     vfat    defaults        0       0
The vfat (it could also be ntfs for Windows 2000/XP) part is the filesystem type (windows type). This is how you know which line to edit. Add to the part after that (the options) user, so it will look like this:
Code:
/dev/hda1       /media/hda1     vfat    defaults,user        0       0
Your file probably won't look exactly like that, it depends on what partition your Windows is and what the options are set to. The important thing is the user option.
 
Old 11-17-2005, 12:24 AM   #3
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
if it is ntfs then you might be out of luck. ntfs doesnt like linux very much.
 
Old 11-17-2005, 10:53 AM   #4
justin.freund
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by ninjabob7
In your /etc/fstab file (open as root) you should see a line something like this:
Code:
/dev/hda1       /media/hda1     vfat    defaults        0       0
The vfat (it could also be ntfs for Windows 2000/XP) part is the filesystem type (windows type). This is how you know which line to edit. Add to the part after that (the options) user, so it will look like this:
Code:
/dev/hda1       /media/hda1     vfat    defaults,user        0       0
Your file probably won't look exactly like that, it depends on what partition your Windows is and what the options are set to. The important thing is the user option.
Right so, my line looks like this now:

Code:
/dev/sda1  /media/sda1  ntfs   defaults,user  0  0
but still no luck what so ever, i even tried throwing an rw in there, and it made no difference.

I do find it odd that my root account can access them (or that i can get them with sudo) but i cannot just access them from the regular user account no matter what i try doing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access NTFS on linux box from windows... MrLizard Linux - Networking 3 09-11-2005 04:56 AM
Ubuntu screwed up my second Windows (/dev/hda5 HPFS/NTFS) partition howyen Ubuntu 5 04-12-2005 01:11 PM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-18-2004 12:05 AM
Unable to access X windows logged in as root. sanfran49 Linux - Software 1 02-12-2004 03:08 PM
Unable to read windows partition in Slack bongski55 Slackware 3 06-15-2003 06:59 AM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration