PDA

View Full Version : HD Mounting problems in 5.0.1



stufoo
08-24-2006, 11:18 PM
Hi,
I just installed Knoppix 5.0.1 and i'm pretty mucha a total noobs when it comes to Linux.

I tried to access my other NTFS partitions through the hard drive shortcuts on the desktop, but it gives me this error for all of them:

"Could not mount device.

The error reported was:

Error opening partition device : Permission denied.

Failed to startup volume : Permission denied.

Couldn't mount device '/dev/hda6' : Permission denied.

Mount failed."

I'm sure this must be the easiest problem to fix, i'm just an idiot. If the solution involves complicated stuff, such as adding stuff to my etc/fstab or the like, I need explicit instructions, not just a narrow idea of what I have to do.

Can anybody help? :?

Jacky
08-25-2006, 04:39 AM
Knoppix only allows root to mount an NTFS partition. So to mount it, you first have to open up a root shell (click the Penguin) and issue a command like this:

mount /dev/hda6 /media/hda6 -t ntfs -o umask=0222

This will allow you to click on the icon and view read the contents of the ntfs partition. The umask option of 0222 allows everybody read-only access to the partition. I am assuming that read-only is all you want. Linux can read an ntfs partition just fine but there are risks in trying to write to an ntfs partition. I do not advise trying to write to an ntfs partition until you are more experienced and can understand the issues and risks involved.

If you want to share data between Windows and Linux, I suggest setting up a fat32 partition. Both Windows and Linux can read and write to fat32 with no problems, and you do not have to be in root to mount it.

Regards.

Mr.Z
08-25-2006, 04:35 PM
Sad, but true. But why Knoppix v4.0 allows mount an NTFS partition without root account?

jentybhullar
11-19-2006, 02:40 AM
Knoppix only allows root to mount an NTFS partition. So to mount it, you first have to open up a root shell (click the Penguin) and issue a command like this:

mount /dev/hda6 /media/hda6 -t ntfs -o umask=0222

This will allow you to click on the icon and view read the contents of the ntfs partition. The umask option of 0222 allows everybody read-only access to the partition. I am assuming that read-only is all you want. Linux can read an ntfs partition just fine but there are risks in trying to write to an ntfs partition. I do not advise trying to write to an ntfs partition until you are more experienced and can understand the issues and risks involved.

If you want to share data between Windows and Linux, I suggest setting up a fat32 partition. Both Windows and Linux can read and write to fat32 with no problems, and you do not have to be in root to mount it.

Regards.

hey thnx a lot... this command works for me.. but is there any other way that i dont need to type this command again and again every time i want to mount ntfs? how can i give my self permissions that every time i restart computer.. i can just right click and mount the dive?