1.

Solve : How to......?

Answer»

Hi
how to bring other fat32 drives in Fedora core3 ? Finally i got it myself nobody told me thanks anyway
fter hours of EDITING the fstab file, reading, more reading, did I MENTIONED reading? I saw the light what everything means in the fstab file.

How to mount the drive

Open Terminal/Konsole
Step1: type mkdir /mnt/fatshare . You can name fatshare whatever you want to.
Step2: login as root ( type su - )
Step3: Enter password
Step4: type gedit /etc/fstab

fstab is where the configuration is loaded at start up of your system of which devices to mount.

Step5: Add a line like this into the file:
/dev/hda9 /mnt/fatshare vfat umask=022 0 0
An example often used : - This means the owner has +rwx, the group and EVERYONE else only +r-- access.


Remember the owner will be usually root and the group as well, thus anybody else includes normals users.

Another example This means owner has +rwx ,the group with id = 500 +rwx, everybody else no access (---)
/dev/hda9 /mnt/fatshare vfat gid=500,umask=007 0 0
"r" = read, "w" = write, "x" = execute "-" = no access

Full explanation later on how to calculate the umask digits.

Step6:
save it and exit.

Step7:
Close apps and reboot, read on to see the options and at the end is the option how to do it immediately.


You can see that there are 6 columns

The 1st column is the device /dev/hda9 (maybe be different on your system)

The 2nd column is the mount point - the name of directory created in step 1 - this case it is /mnt/fatshare

The 3rd column is the filesystem type.
In this case it is vfat for a fat32 drive

The 4th columns is the options one can set.
You will seperate different options with a comman(,)
Here is the list of the options:

auto or noauto
Default is auto - this determines whether the device will mounted automatically at startup.
noauto - Device must be mounted by an user before it can be used.
NOTES ON no-auto:
noauto option is good for removable STORAGE media's such as a stiffy (floppy) , cd/dvd, usb drives/devices since it won't always have a media in it with startup. Much mount it before it can be used, although you will see the mount directory (e.g. /mnt/fatshare/) will recommend the add users or user option too.

users - Allow an user to mount the device and another user to unmount ( command = umount ) the device

uid=userid
The system will give the access to the user with this id according to the umask value.


gid=groupid
The system will only give access to the group with this id according to the umask value.

user/nouser
Default is nouser - Only the root users can mount the device
user - Normal users can mount the device

ro/rw
The default is rw - Set filesystem permissions to read + write
ro - Set filesystem permissions to read only

exec/noexec
Default is exec - let one execute binaries
noexec - Won't allow you to execute binaries

sync/async
Default is async - asynchrously - e.g. when copy a file it will write a time after the cp command has been issued.
sync - synchrously - e.g. when copy a file it will copy it the same time the cp command has been issued

defaults
The defaults are rw, suid, dev,exec,auto, nouser, and async

umask=007
Your 3 digits may be different.

How the umask digits works:
The first digit refer to the owner
The second digit refer to the group
The third digit refer to anybody or everybody else not the owner nor a member in the group.

Every digit is determined by adding the following up and deduct it from the number 777
4 = Read
2 = Write
1 = Execute
0 = no access

E.g.
The owner much have +rwx (read, write, execute) access, it is +4+2+1 = 7
The group much have +r-- (read) access, it is +4
Everyone else much have +r-- (read) access, it is +4

Take 777 - 744 = 022
So 022 will be your mask


The 5th column determines whether or not the file will be backed up. This is called the dump option. 0 = off and 1 = on.

The 6th column is the fsck that check the filesystem.
0 the filesystem will not be checked
1 should be used for root filesystem
2 should be used for other filesystems, according what i found on various sites

Take note:
all mounted drives are recorded in the file "/etc/mtab"


Reboot, and all should be mounted. If you don't want to reboot you can also mount the drive immediately from the terminal/console window

To mount the drive immediately - This will only last in your current session.

log in as root. Type su -
Enter password for root
Type mount -t vfat /dev/hda9 /mnt/fatshare
hda9 - type the correct device number you need

To give other users access to the drive (Because root is the owner and the group) use the chmod command
Type: chmod a+rw /mnt/myshare
This means anybody has access to the mounted driveQuote

Hi
how to bring other fat32 drives in Fedora core3 ?

The reason you did not get a response could be that no one could understand the question.

Luckily you are resourceful and solved the problem.


Discussion

No Comment Found