Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old January 27th, 2006   #1
quinton
First Cup of Ubuntu
 
Join Date: Jan 2006
Beans: 2
Help cannot access NTFS partition

Hi,

I just installed ubuntu. Am liking the interface... will likely try out KDE too, buti got a bigger problem at hand 1st. i've got my 2 other NTFS partitions sda1 and sda2 on the desktop. however when I double click on them, i get this error msg:

"The folder contents could not be displayed.
You do not have the permissions necessary to view the contents of "sda2"."

I don't really know how to access my ntfs partition now. My WinXP does have a log in as an administrator, cld that be a problem? if so how do i solve it? Any ideas?

Thanks a lot guys!

On a sidenote, i get this idea that linux cannot write to NTFS? it can only read?
quinton is offline   Reply With Quote
Old January 27th, 2006   #2
frodon
Ubuntu French Roast
 
frodon's Avatar
 
Join Date: Jun 2005
Location: France
Beans: 6,385
Ubuntu 9.10 Karmic Koala
Re: Help cannot access NTFS partition

Yes, only read access with NTFS under linux, for your issue follow this link : http://ubuntuguide.org/#automountntfs
__________________
| Quake Wars fan inside | Ubuntu Backports |
frodon is online now   Reply With Quote
Old January 27th, 2006   #3
Who
Gee! These Aren't Roasted!
 
Join Date: Jul 2005
Beans: 160
Dapper Drake Testing/
Re: Help cannot access NTFS partition

Righty,
Welcome, good luck!

You are right, at the moment Linux can only read from ntfs officially and safely. There are some ways to do it but I wouldn't reccomend hem. Google will show you the way (ntfs linux read write). Unfortunately Windows doesn't natively support mounting Linux file systems, so if you haven't already got one I would reccomend creting a fat32 partition for swapping data between the two systems.

As for mounting (allowing you to access the folders on the disk by putting them inside a folder on the root file system (called "/")) your NTFS disks:
There is a file on your system called fstab (file system table, as I remember it) and it describes the options that each disk is 'mounted' with. The most direct way to fix your problem should be to edit this. so, open a terminal and
sudo cp /etc/fstab /etc/fstab_backup_[date]
this creates a backup of the odl file that you can replace the real fstab with if all goes wrong. the 'sudo' command gives you super user privelidges for the commands typed afterwards (in this case, cp (= copy))

then type

sudo gedit /etc/fstab

gedit is a Gnome notepad/text editor

Now, look at the line for your ntfs disks will be type ntfs) - you could post it here if you are not sure what to do.
This page should help you understand what it all means (even though most of it applies to Gentoo:
http://gentoo-wiki.com/HOWTO_Mount_M....2Fetc.2Ffstab

aaannyway

The options you want in /etc/fstab for the drives are
nls=utf8,umask=0222
so it will look something like
/dev/hda5 /media/windows ntfs nls=utf8,umask=0222 0 0

now at the command line type
sudo mount -a

to remount all the disks and try to read the disks.

It _ought_ to work

Good Luck

Who
Who is offline   Reply With Quote
Old January 27th, 2006   #4
quinton
First Cup of Ubuntu
 
Join Date: Jan 2006
Beans: 2
Re: Help cannot access NTFS partition

thanks lots for the help! it worked tho I needed to restart the computer and not just remount all drives.
quinton is offline   Reply With Quote
Old January 29th, 2006   #5
Arles
First Cup of Ubuntu
 
Join Date: Jan 2006
Beans: 6
Re: Help cannot access NTFS partition

Hello guys I-m new to Ubuntu too and for me it didn't work. When I entered the sudo mount-a I got the message:
Code:
mount: special device /dev/hda1 does not exist
this is a copy of my fstab:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda2       /               reiserfs notail          0       1
/dev/sda1       /media/windows  ntfs    nls=utf8,umask=0222 0       0
/dev/sdb1       /media/sdb1     ntfs    defaults        0       0
/dev/sda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hda1 /media/windows ntfs umask=0222 0 0
Please help me. SDA1 is mz windows partition and SDB1 is another harddisk in NTFS format where I keep al my stuff.
Arles is offline   Reply With Quote
Old January 29th, 2006   #6
RaisedFist
5 Cups of Ubuntu
 
RaisedFist's Avatar
 
Join Date: Mar 2005
Location: Romania
Beans: 18
Ubuntu Breezy 5.10
Re: Help cannot access NTFS partition

Delete this line from /etc/fstab:
/dev/hda1 /media/windows ntfs umask=0222 0 0
__________________
Choose life. Choose a job. Choose a starter home. Choose dental insurance, leisure wear and matching luggage. Choose your future. But why would anyone want to do a thing like that?
RaisedFist is offline   Reply With Quote
Old January 29th, 2006   #7
Arles
First Cup of Ubuntu
 
Join Date: Jan 2006
Beans: 6
Re: Help cannot access NTFS partition

I can see my winpartition now... TNX

The second problem is that I still can't open the other ntfs harddisk (sdb1)

this is my fstab:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda2       /               reiserfs notail          0       1
/dev/sda1       /media/windows  ntfs    nls=utf8,umask=0222 0       0
/dev/sdb1       /media/windows2  ntfs    nls=utf8,umask=0222 0       0
/dev/sda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
Arles is offline   Reply With Quote
Old January 29th, 2006   #8
Who
Gee! These Aren't Roasted!
 
Join Date: Jul 2005
Beans: 160
Dapper Drake Testing/
Re: Help cannot access NTFS partition

That is a bit of a mystery! both the hard disks are being mounted with the same options - so if you can't access them both I would guess that the problem is with file permissions (though I _thought_ umask=0222 would sort that out...?)

A good test that would give us some useful info would be to type this at a terminal

sudo nautilus --no-desktop

and then navigate to /media/windows2 and see if you can browse the files as a super user.

Good Luck

Who
Who is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:33 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry