LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can see but not access a partiton (https://www.linuxquestions.org/questions/linux-newbie-8/can-see-but-not-access-a-partiton-455056/)

Rollotamasi 06-15-2006 10:21 AM

Can see but not access a partiton
 
Hello all. I am having a bit of a partition issue. I have 39g partition formated in fat32. My theory was that it would be the main partition that windows and linux both write to. Well, my XP can see/write/read to it fine however my linux is another store. Im running unbuntu by the way. In my browser I can "see" the partition but I can actully access is. I get a "Unable to mount the selected volume" error. Under more detials it says "error:device dev/hda2 is not removeable." and the line below says "Could not execute pmount"

What do I need to do to this pasrtition so that both my XP and munbunto can access it?

Thank all!

NoStop 06-15-2006 12:09 PM

Quote:

Originally Posted by Rollotamasi
Hello all. I am having a bit of a partition issue. I have 39g partition formated in fat32. My theory was that it would be the main partition that windows and linux both write to. Well, my XP can see/write/read to it fine however my linux is another store. Im running unbuntu by the way. In my browser I can "see" the partition but I can actully access is. I get a "Unable to mount the selected volume" error. Under more detials it says "error:device dev/hda2 is not removeable." and the line below says "Could not execute pmount"

What do I need to do to this pasrtition so that both my XP and munbunto can access it?

Thank all!

Post the contents of your /etc/fstab file here.

Rollotamasi 06-15-2006 03:31 PM

Quote:

Originally Posted by NoStop
Post the contents of your /etc/fstab file here.

I get a access denied error when I try to run that command and I dont know the way to login to the administrator mode

petern2 06-15-2006 05:25 PM

You don't 'run the command' /etc/fstab, you have to access the contents of the file /etc/fstab by opening a terminal and typing:

more -l /etc/fstab

this will show you what's in the file.

To log in as administrator, type: su
hit return then type in your root password, the one you set during the installation. You can then use an editor such as vi to change the contents of the file.

You should also read the thread 'fat32 partition', started by marjan. This explains how to get access to the partition.
I assume this partition was created after you installed Ubuntu, so you have to tell Ubuntu that it's there.

Another thing, could you run a spell check on your posts?

pixellany 06-15-2006 07:14 PM

In Ubuntu, root access is OFF by default. To run administrator commands, you have two options:

1. use sudo---eg "sudo fdisk -l" to see all your partitions

2. create the root user:
"sudo passwd root"
enter your user password at the prompt, then the new root password at the next
now: "su" to become root

as root, you can run fdisk to see your partitions, and "mount" to actually mount (connect) one to the filesystem

Cain_vX 06-16-2006 01:32 AM

maybe umask?
 
Well, I think your best bet is to read the fstab and then surf the web for solutions or post it here and see if anyone could help. From my point of view and from personal experience, I suggest you to try appending umask=000 or rw at the beginning of the 3rd column of the entry you are supposed to modify.

It may look like this
Code:

/dev/hdb1 /home/foo vfat umask=000,auto,user 0 0
or
Code:

/dev/hdb1 /home/foo vfat rw,auto,user 0 0
The umask argument is used to "mask" the file permissions of the files and directories under that directory (at least is what I have understood so far). You may learn a lot if you search for this over the internet. What I have learned is that the argument passed is the complement (in octal) of the desired permission you want in that partition, ie: if you want it to be 777 you use 000.

I used the solution above, it worked at the first try. In the "rw" case (which I haven't tried yet) I am not sure if the permissions of the existent files are preserved, anyway, it's your choice.

Check this out and see what you can get:
http://www.tuxfiles.org/linuxhelp/fstab.html
Or read de man for fstab and mound if you wish...


All times are GMT -5. The time now is 02:12 PM.