LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2003, 03:46 AM   #1
prowlerxpla
Member
 
Registered: Aug 2003
Location: latina (italy)
Distribution: suse 9.1 & mdk 10.0
Posts: 30

Rep: Reputation: 0
how to see vfat on linux with linux network


Hi,
I'm using a mdk 9.1 on a laptop and mdk 9.0 on a desktop pc, on both I have dual boot with win2000, ethernet 10/100 network is ok, samba runs ok (but I can access only the home directory), nfs is ok (I can access but not the whole PC), well the problem is:
running linux on the laptop and linux on the desktop, I would like to have access read and write from one PC to the whole other PC included windows vfat partitions and linux ext3 partitions root included.
Which is the best way to do this????
I tried with samba but when I access to the /mnt/win_d (vfat partition) it hang,
I tried by nfs in /etc/exports i exported /mnt (rw) , i can see the directory /mnt but not the content of the of the directory /mnt/win_d (vfat partition)
thanks for every answer
ciao pier
 
Old 10-14-2003, 06:38 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Since you have both 9.0 and 9.1, I'm going to assume you've been using Mandrake for a while, and so I'm going to talk to you as a fairly experienced Mandrake user, and not a total newbie. If it's over your head, let me know.

If you want to share folders/partitions between machines, the first thing you want to do is move the intended shared partitions out of /mnt, because 1) only root has full access to /mnt, and 2) folders/partitions can only be shared from your ${HOME} folder.

So the shared vfat partitions need to be mounted into the ${HOME} directory. They also need their ownership changed, because partitions mounted by /etc/fstab are always going to be owned by root, which is not going to help you.

You can do this very easily in DiskDrake, but you will need some additional information, and must enable (Mandrake) filesharing. You will have to do most, if not all, of these steps on each computer that wants to share partitions.

Here's how:

1. Open the Mandrake Control Center. Go to the 'Mount Points' section. Use the "Partition Sharing' tool to create a group called 'fileshare' by choosing 'Custom'. Then choose OK, and the "Launch Userdrake' button to... launch Userdrake .

2. In UserDrake, add yourself (as user) and any other users who you want to share files on your computer to the fileshare group (select user, Edit, groups, check or add the fileshare group). If the other users are not currently listed as users on your PC, create them, with the same name and password they use on the other PC. Change your "Primary group" to the Fileshare group (so that any folders you create in the future will be owned by this group-- if you don't want that for a certain folder, you can change the setting for that folder, or you can change the setting globally later). Make a note of your UID, and the GID of the fileshare group. Save and exit UserDrake.

3. Open a file manager, and create mount points for the vfat partitions you want to share in your ${HOME} directory. Set the permissions as you want them for yourself and the group. Also create a mount point for the ext3 partition, just make sure that you have the group permissions set as you want them (you will not have any ownership rights, but you will have group rights when you mount it, so all permissions that you want must be set in the group).

3. Open DiskDrake. Choose the first partition you want to share. Click the "Unmount" button to unmount it, then click the "Toggle to Expert Mode" button. Click the "Mount Point" button. Change the Mount Point to point to the folder in your ${HOME} directory that you created for it. Click OK, then click the "Options" button. In the big "Various" text box, add "uid=your_UID_#,gid=gid#_of_the_fileshare_group" (without the quotes). This will give you ownership and the group the stated permissions when fstab mounts the partitions. These settings are only valid for vfat partitions. For an ext2 or ext3 partition, use "grpid" instead. The grpid setting tells fstab to mount an ext2 or 3 partition with the same group permissions as the folder it's mounted into. You may also want to add iocharset=utf8 for vfat drives, and you may want to change the umask (see man umask and man chmod for details).

Click OK, then click the Options button again. Mandrake will have also set a couple of extra options by default for the vfat drives that you may want to take out, like noauto, nosuid, and ro, so uncheck them if you want, and then click OK again.

4. Do this for each of the partitions you want to share. Hit Done to save the changes to /etc/fstab (don't remount the drives yet). Then reopen DiskDrake and mount the drives, and open a file manager to see if they're mounted properly. Right-click on any folder you want to share and choose "sharing". You should then be able to share them. Mandrake may kinda act like it's not doing it, unless you reboot first, but don't worry about it.

5. Open a text editor as root and open /etc/samba/smb.conf. First of all, make sure your workgroup name is right. If not, change it to the one that the computers use, though if this is an MDK-only workgroup, the default 'MDKGROUP' should be fine and already set on both computers. Scroll down and you should see listings for the folders you just shared. If you don't then Mandrake really did want you to reboot first , so do that, and share the folders again, then come back to smb.conf. Feel free to change the names of the shares (between the [brackets]) to something more friendly, just don't use any spaces. Otherwise, the settings should be fine.

5. Open a terminal, su to root and type "smbpasswd -a -e name_of_user_who_will_share_or_receive_shared_files password_of_that_user". Do this for each user who will be sharing or accessing shared files.

6. Stop and restart the Samba server.

7. Open LinNeighborhood, or whatever Samba browser you use. You should now be able to see and mount the shares.

8. Be very careful with that mounted / folder. I once borked an entire Mandrake install because I stupidly changed ownership recursively on the mounted / folder. I would suggest that for that mount point, you do not automount it on every boot, but mount it manually if you should happen to need access to it.

This is an adaptation of the method I use to share mounted FAT32 folders back to a Windows network. If you want to see the entire root directory from within Win2K, you probably should get the Explore2fs file manager (free). Otherwise, the networking rules are the normal ones for Win2K, so once you're finished, if your network is properly set up, you should also see your shared folders in My Network Places if you have added the Win2K users to Samba as well. Hope this helps.
 
Old 10-14-2003, 02:32 PM   #3
prowlerxpla
Member
 
Registered: Aug 2003
Location: latina (italy)
Distribution: suse 9.1 & mdk 10.0
Posts: 30

Original Poster
Rep: Reputation: 0
many thanks, you have been very clear, I will follow your help and I will you know the results .
ton of thanks again
ciao
pier
 
Old 10-14-2003, 03:12 PM   #4
Walt_R
LQ Newbie
 
Registered: Oct 2003
Posts: 8

Rep: Reputation: 0
Do not edit this file without backing up the original file.
!!!Caution!!!
Edit /etc/fstab as root
IE: # cp /etc/fstab /etc/fstab.org Just in case!!!

With the correct entries in the /etc/fstab file a non-root user can mount, or umount a file system.

user = a user can mount or umount a file system.
users = one user can mount and a different user can umount a FS.

Walt R.
 
Old 10-15-2003, 03:02 PM   #5
prowlerxpla
Member
 
Registered: Aug 2003
Location: latina (italy)
Distribution: suse 9.1 & mdk 10.0
Posts: 30

Original Poster
Rep: Reputation: 0
first step

for first I tried to set the pc with mdk 9.0
< If you want to share folders/partitions between machines, the first thing you want to do is move the intended shared partitions out of /mnt, because 1) only root has full access to /mnt, and 2) folders/partitions can only be shared from your ${HOME} folder.>

ok I moved in /homeplax/plaxmnt

< So the shared vfat partitions need to be mounted into the ${HOME} directory. They also need their ownership changed, because partitions mounted by /etc/fstab are always going to be owned by root, which is not going to help you.>

so I cannot mount the fat partition automatically?? or if i change the owner (plax) and group(fileshare) they will be mounted with this owner and group (plax and fileshare) and not owned by root

< 1. Open the Mandrake Control Center. Go to the 'Mount Points' section. Use the "Partition Sharing' tool to create a group called 'fileshare' by choosing 'Custom'. Then choose OK, and the "Launch Userdrake' button to... launch Userdrake .>

well all right until i launch userdrake, it tell me:
"cannot lock user lib, file /etc/ptmp or /etc/gtmp exist"
I used K-user , is it the same??
i created fileshare group added plax (i use plax as standard user on both the pc with the same password, could be this a problem?) to the group and ghanged my primary group to fileshare

for today is enough, i will continue tomorrow
bye and thanks again
ciao pier
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Defrag vfat from Linux? DragonWisard Linux - Software 30 06-06-2011 08:32 PM
Defrag VFAT under Linux phatrino Linux - Newbie 5 05-05-2005 08:54 AM
getting linux to see my vfat partition apoc013 Linux - Newbie 8 01-22-2004 12:00 PM
mounting vfat hd in linux RichO13 Linux - General 2 05-01-2003 12:04 AM
copy files from vfat to vfat from linux? purpleburple Linux - General 2 12-11-2002 04:24 PM


All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration