LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Create Folders /shared partition VFAT (http://www.linuxquestions.org/questions/linux-newbie-8/create-folders-shared-partition-vfat-609804/)

Kryptos 12-29-2007 08:20 AM

Create Folders /shared partition VFAT
 
Hi everyone.
I can`t create folder in my /shared partition VFAT. (I am using a dual boot system). Is there a solution?

Kind Regards

Acron_0248 12-29-2007 08:34 AM

Hi,

Why can't you create the folder?

If you don't say what errors are you seeing, we can't help, just make asumptions...


I'll will go with the options you're using to mount that partition, either you're mounting the partition without rw option or with an umask that is blocking write access to users (this will be true if you can only write by being root in that partition)

The more information you give about errors, more helpfull answers you'll get.




Regards

David the H. 12-29-2007 09:11 AM

I agree with Acron. You may want to read this: How to ask a question.

Kryptos 12-29-2007 10:19 AM

Quote:

Originally Posted by Acron_0248 (Post 3004822)
Hi,

Why can't you create the folder?

If you don't say what errors are you seeing, we can't help, just make asumptions...


I'll will go with the options you're using to mount that partition, either you're mounting the partition without rw option or with an umask that is blocking write access to users (this will be true if you can only write by being root in that partition)

The more information you give about errors, more helpfull answers you'll get.




Regards

Hi Acron_0248.
I am newbie so I am not doing it from the command line yet. The purpose of this partition is to share data between Windows and Linux. I saved files to /shared partition already and it`s possible, I did with wget command. I can`t show an error message for this but only for a similar situation when I copy&paste a file from /home partition for example to /shared the following message occurs:
"error while copyinf to /shared you don`t have permission to write to this folder".
when exploring folders when I open /shared partition in the file menu I am unable to to select "create folder".
I am know it`s a basic question, sorry for being vague and for my english language.

Regards
Thanks in Advance.

David1357 12-29-2007 11:04 AM

Quote:

Originally Posted by Kryptos (Post 3004904)
"error while copyinf to /shared you don`t have permission to write to this folder".

Are you sharing a directory from a Windows XP Professional or Windows 2000 system? They have some extra permission settings that can prevent sharing their directories easily. We have this problem at work when we try to share directories on Windows XP Pro machines.

The only way I know to fix the problem is to boot the machine in rescue mode and login as Administrator. When you do this, some hidden settings for directories show up when you look at the properties tabs.

Kryptos 01-05-2008 02:42 PM

Quote:

Originally Posted by David1357 (Post 3004945)
Are you sharing a directory from a Windows XP Professional or Windows 2000 system? They have some extra permission settings that can prevent sharing their directories easily. We have this problem at work when we try to share directories on Windows XP Pro machines.

The only way I know to fix the problem is to boot the machine in rescue mode and login as Administrator. When you do this, some hidden settings for directories show up when you look at the properties tabs.

Hi David1357,
When I installed Fedora 8 I didn`t know what would be the behavior of the system and I tried to create a partition dedicated to share data between Windows XP and Linux. Actually I noticed that I can read and write to Windows partition by default which is NTFS. My problem it`s another one now, I want to install a program and don`t have enough disk space to do it unless I use that partition dedicated to share data with windows or try to install it in the Windows partition. The problem as I explained before it`s about permissions, I need to know how to change them, I don`t understand how can I create folders, delete files and everything in the windows NTFS partition but I can`t do it with the /shared VFAT partition.
I didn`t understand clearly why should boot the machine in rescue mode. How do I boot in rescue mode? If the hidden settings for directories appear I just need to change them? Is there another way to do it?
If I save the program in NTFS (which have a lot of space) would exist any risk for the OS or the software?

Thanks Again.
Regards.

Acron_0248 01-05-2008 03:23 PM

How are you mounting the vFat partition?

You could try using this from command line as root:
Code:

mount -t vfat -o umask=0000 /dev/device /mount/point
Or use the fstab with a line like:
Code:

/dev/device  /mount/point    vfat    umask=0000  0  0
That should give you read and write access in the vfat partition. Replace /dev/device for the correct path to device in your system and /mount/point with the path you want to mount the partition


And no, save the program in the ntfs partition, shouldn't be risky for the OS or the software




Regards

marciobarbalho 01-05-2008 04:07 PM

customize your fstab like this:

Code:

/dev/hdaX  /mnt/partition vfat defaults,users,uid=1000,umask=000  0 0
reboot system!
it never fails!:)

Kryptos 01-06-2008 12:36 PM

Quote:

Originally Posted by Acron_0248 (Post 3012629)
How are you mounting the vFat partition?

You could try using this from command line as root:
Code:

mount -t vfat -o umask=0000 /dev/device /mount/point
Or use the fstab with a line like:
Code:

/dev/device  /mount/point    vfat    umask=0000  0  0
That should give you read and write access in the vfat partition. Replace /dev/device for the correct path to device in your system and /mount/point with the path you want to mount the partition


And no, save the program in the ntfs partition, shouldn't be risky for the OS or the software




Regards

Hi.
I am a very inexperienced Linux user, so everything must very detailed in order to perform a task, sorry about my ignorance.
When I installed Linux I typed a mounting point for that partition in question: /shared.
I will try to give you information about permissions, checking the permission tab for /shared we have:

Owner: root, Folder Access: create and delete files (I can`t do it using GUI I just can read file or copy&paste them to another partition, but curiously if I type in the command line wget -P /shared/1 www.sapo.pt I can save a webpage there, that`s a contradiction.)

Group: root, Folder Access: access files

Others, Folder Access: access files

Execute: allow executing files as program

As I am explaining I can read files from /shared.

I tried to follow your instructions but I can`t remember how to check the path to the device in my system, and the mounting point desired would be the same: /shared. how do I check the device path?

On the other hand I don`t know how to use fstab.
I typed /etc/fstab in the terminal as root and it says always:
-bash: /etc/fstab: Permission denied
If I could edit fstab should just write there /dev/device /shared vfat umask=0000 0 0 or this is typed in the command line?
After that, I just close the terminal? Should I save the file? Please clarify...

Thanks Again,
Regards

marciobarbalho 01-06-2008 12:56 PM

open the terminal
as root:
type "su" (no ", of course)
type "the password"
choose a text editor like vim, gedit, kwrite ...

type:
vim /etc/fstab
press "i" (insert) to edit fstab
edit fstab like this:
Code:

/dev/hdaX  /mnt/partition  vfat defaults,users,uid=1000,umask=000  0  0
"X" can be 1, 2, 3 ... it depends on your system, or, maybe sda1, sda2, sda3...

"partition" can be any folder you did choose or create previously (as root, mkdir /mnt/shared)

press "ESC" then type :wqa, fstab file will be saved and vim editor closed.

logout from system and reboot your machine!

Kryptos 01-08-2008 09:24 AM

Hi marciobarbalho.
the output for vim /etc/fstab is:

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
/dev/VolGroup00/LogVol01 /home ext3 defaults 1 2
LABEL=/shared /shared vfat defaults 0 0
LABEL=/boot1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/fstab" [readonly] 9L, 686C 1,1 All

I don`t know how to write the code here. Would I replace the code for /shared, VFAT for what? I don`t know what hdX or sdX means and what will be the value of X. can you help me? Why in your advice we use /mnt/shared instead of /shared? I would like that the path for that partition would be only /shared, is that possible? I am talking about the line of code you suggested:
/dev/hdaX /mnt/partition vfat defaults,users,uid=1000,umask=000 0 0
Can you help me?

Thanks Again,
Regards.

Acron_0248 01-08-2008 09:46 AM

Please, post the output of:
Code:

# fdisk -l


Regards

Kryptos 01-08-2008 11:47 AM

Quote:

Originally Posted by Acron_0248 (Post 3015564)
Please, post the output of:
Code:

# fdisk -l


Regards

Hi Acron_0248.

the output is:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbd30bd30

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972826 7 HPFS/NTFS
/dev/sda2 2612 2624 104422+ 83 Linux
/dev/sda3 2625 2879 2048287+ 82 Linux swap / Solaris
/dev/sda4 2880 4864 15944512+ 5 Extended
/dev/sda5 2880 4211 10699258+ 8e Linux LVM
/dev/sda6 4212 4864 5245191 b W95 FAT32

Disk /dev/dm-0: 7314 MB, 7314866176 bytes
255 heads, 63 sectors/track, 889 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 3590 MB, 3590324224 bytes
255 heads, 63 sectors/track, 436 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
[root@localhost ~]#


Now I know that /shared is /dev/sda6.
I must type: /dev/sda6 /mnt/shared VFAT defaults, users, uid=1000, umask=000 and I am able to change fstab, am I right? Do you agree with need solution? Please answer my last questions...

Thanks.

Acron_0248 01-08-2008 12:06 PM

Just to clarify...

Don't refer /shared as /mnt/shared, aren't the same...

This " / " is root, where /bin, /usr, /var, /sbin and so on are at, if you go to the console and type:
Code:

mkdir /shared
You'll create /shared, not /mnt/shared

I'm telling you this so you don't get any errors trying to mount something in the wrong mount point ;)

And yes, the solution is good :) you could avoid using uid=1000 since first of all, you can't assume that in your system the User IDentification number is 1000, even when is common to most distributions, could be 1001, secondly because using 'users' in the fstab will refer to uid=xxxx and finally because umask=xxxx set the access rights to users so, you 'could say' that umask replace the options 'users' and 'uid'




Regards

Kryptos 01-12-2008 10:07 AM

Not solved yet.
 
Quote:

Originally Posted by Acron_0248 (Post 3015722)
Just to clarify...

Don't refer /shared as /mnt/shared, aren't the same...

This " / " is root, where /bin, /usr, /var, /sbin and so on are at, if you go to the console and type:
Code:

mkdir /shared
You'll create /shared, not /mnt/shared

I'm telling you this so you don't get any errors trying to mount something in the wrong mount point ;)

And yes, the solution is good :) you could avoid using uid=1000 since first of all, you can't assume that in your system the User IDentification number is 1000, even when is common to most distributions, could be 1001, secondly because using 'users' in the fstab will refer to uid=xxxx and finally because umask=xxxx set the access rights to users so, you 'could say' that umask replace the options 'users' and 'uid'




Regards

Hi,
I can edit fstab and type:
/dev/sda6 /mnt/shared vfat umask=0000 0 0
but I can`t close and save fstab.
by the way, should I do this first:
mkdir /mnt/shared
????
Please tell me how to do without edit fstab.
may be my problem now it`s related with vim.

Regards


All times are GMT -5. The time now is 08:34 AM.