LinuxQuestions.org
Review your favorite Linux distribution.
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 07-25-2006, 02:04 AM   #1
rohanahmed
Member
 
Registered: Jul 2006
Posts: 37

Rep: Reputation: 15
xp and fedora file sharing within the same pc


I first installed xp and partitioned the whole hdd in 4 fat32 drives and afterthat i installed fc5. Now i am writing in my fc5 but i have a problem here. I want to share the drives of win xp in fc5 for this reason what should i have to do now plzzz help me. As my linux has only 10 gb of my whole hdd so I want to save anything in to winxp drives and afterthat share those in my linux. Please help me. My harddisk is 80 gb and I installed the linux in 10 gb and allocated the rest of 70 gb in winxp.
thnx in advance
 
Old 07-25-2006, 04:44 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
First of all, remember that using FAT32 you cannot set UNIX-like file permissions (owner/group read/write/execute etc.) - so everything you put on FAT32 is available for everyone that can access the mount point..

If I were you, I'd resize the partitions and give Linux a bit more space, but that's your own decicion.

What you do is simply mount the desired FAT32 partitions under Linux. An example: let's create two directories under /mnt that you mount your two different FAT32 partitions into (all the lines starting with # are comments that you are not supposed to write):

Code:
# first obtain superuser rights, since that's needed;
# type the password when asked
su
mkdir /mnt/part1
mkdir /mnt/part2

# now that the mount points are created, let's mount the drives.
# In this example let's say we want to mount Windows drives C and D
# that appear to be two partitions on the first harddisk, so they
# are hda1 and hda2 under Linux in this example. Let's edit fstab with
# vim - if you don't have it or like to use something else, do it

vi /etc/fstab

# scroll down to the bottom, press A (that is, press shift+a) and ENTER
# to get a new line, then type the following 2 lines:

/dev/hda1 /mnt/part1 vfat users,rw,auto 0 0
/dev/hda2 /mnt/part2 vfat users,rw,auto 0 0

# now press ESC then write :wq (that is, press shift-dot then w and q and ENTER)
# to save and exit vim.
Now after
Code:
mount -a
you should get the first partition on the first harddrive (hda1, usually windows "C") to be present under /mnt/part1 and the second partition ("D") under /mnt/part2. Now the partitions are there, but probably accessible by root only - to change this, you'll need to edit your security settings (probably add your user to some group?) which depend on the distribution you use. If you wanted to grant everybody (EVERYBODY!) access to the drives, you would add an option umask=022 to the options in the two fstab lines (after auto, for example). But it's wiser to just give access to some users you trust; you can do that in multiple ways I think..umask is only one of them. Giving your user or group ID to umask option (mentioned above) should grant you access too..

That's about it. If you like to mount the drives elsewhere, change the directory names (part1 and part2) and change the fstab lines accordingly. If you don't like the partitions to get mounted automatically, remove auto from the fstab lines. If you want more, read man fstab to get more knowledge on what you can do..

Oh - and if (when) you want to mount different partitions (I'm not sure if hda1 and hda2 are what you want), just alter the example above.
 
Old 07-25-2006, 01:14 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Moved: This thread is more suitable in Linux->Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-25-2006, 03:25 PM   #4
rohanahmed
Member
 
Registered: Jul 2006
Posts: 37

Original Poster
Rep: Reputation: 15
thank you very very much "b0uncer" It was really helpful...
I would like to know something else... You told that
"If I were you, I'd resize the partitions and give Linux a bit more space, but that's your own decicion."
How will i be able to resize the partitions and give linux more space... will I need to reinstall the os again for that and leave more space unpartioned first during winxp installation....
Please tell me in brief and dont take it otherwise because i am really new in this operating system. Infact your mail was briliantly fantastic thnx again....
Now something else I reallly want to use FC5 for all day to day activities and winxp for my graphics designing purposes. will it be ok with FC5
rohan
 
  


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
Fedora to Fedora printer sharing DoctorWynn Linux - Networking 1 11-26-2005 10:24 AM
File sharing Ageless Linux - Networking 2 04-25-2005 03:45 PM
is there manual on networking and file sharing on fedora core 2? krt47 Linux - Networking 4 08-06-2004 04:57 PM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 07:54 AM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 02:30 PM


All times are GMT -5. The time now is 06:42 PM.

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