LinuxQuestions.org
Help answer threads with 0 replies.
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 09-20-2008, 11:24 AM   #1
mhg
Member
 
Registered: Apr 2007
Location: Utah
Distribution: BodhiLinux
Posts: 205

Rep: Reputation: 30
is it difficult to share a partition between Linux and XP?


Hi All,

I am very pleased with how easy it is to set up a dual boot machine with Ubuntu or Linux Mint (haven't tried to dual boot others yet). I am wondering if it is difficult, or possible, to share a partition between the two OS. Not the boot partitons. I would like to have the OS on one partition, and my files/folders on another partition.

Can I use the same partition for both Linux and XP? I understand I would have to leave it NTFS. Or better to have two partitions for storage, one for Linux and one for XP?

Thanks for any help.
 
Old 09-20-2008, 11:32 AM   #2
shload
LQ Newbie
 
Registered: Sep 2004
Posts: 15

Rep: Reputation: 0
not sure why you'd want to combine the 2 into one partition. seems dangerous to me. i've always kept my windows installation on a seperate partition from all my media (music, movies, games, docs, etc..) just in case i got hit with a virus or something and needed to re-install.

but with my fairly limited knowledge of both systems i feel pretty confident in saying that it is not possible to have both installed to one partition. i don't even think linux can be installed to NTFS. if so it's certainly not the recommended type.

just curious why do you want to combine the two? is it Hdd space your worried about?
 
Old 09-20-2008, 11:43 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
No. Linux and Windows permissions and ACLs are different. You can however have a separate partition that both can read and write to, and use it for saving documents. It would be a good place for mp3s or downloads. Because Windows will have write access to it, be sure that you mount it with the noexec, nosuid, and nodev mount options. FAT32 is a good option for this unless you want very large files ( >4GB ) saved.
 
Old 09-20-2008, 12:18 PM   #4
mhg
Member
 
Registered: Apr 2007
Location: Utah
Distribution: BodhiLinux
Posts: 205

Original Poster
Rep: Reputation: 30
I was not planning on trying to install both OS on one partition. Thinking of using one partition for storage for both OS.

I will have to look for instruction on all the mounting instructions.

Why do you recomend FAT32 over NTFS? I thought I had been able to copy from Linux to NTFS in the past, but maybe my memory is not so good.

Thanks for the help.
 
Old 09-20-2008, 02:37 PM   #5
shload
LQ Newbie
 
Registered: Sep 2004
Posts: 15

Rep: Reputation: 0
there have been problems in the past writing to NTFS in linux. If memory serves me it's because NTFS is proprietary and m$ hasn't released the howto on it. there are options out there for writing to NTFS but they aren't always stable and there's the risk that you might destroy data. you can read data and copy from it but writing to the partition is another story.

FAT32 however is easily accessible by both windows and linux. there is the issue of files going over 4gb (i was copying some streaming porn once and the file got over 6gb...couldn't transfer to the FAT32 partition) and some naming conventions don't work(i don't remember what characters it doesn't like...all's i know is i couldn't transfer some of my MP3's without changing their names.)
 
Old 09-20-2008, 03:55 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183
Hi,

You can use 'ntfs-3g' to r/w from the Linux to the NTFS partition.
 
Old 09-23-2008, 06:58 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
You still don't want both OSes installed to the same partition if that is what you are thinking. If you want a partition that both OSes can access, FAT32 is the best choice. If you have a problem develop with an NTFS filesystem, you need to repair it in Windows.
 
Old 09-23-2008, 07:32 AM   #8
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,834

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
FAT is not necessarily the best choice, especially if the user needs large file support. To run down the pros and cons as I see them...

Fat32 Pros: mature, well-understood filesystem; has native Linux (kernel level) support; many filesystem tools available for maintenance and rescue (but not everything, there's no defragger, for instance).

Fat32 Cons: file size limited to 4Gib; easily corruptible; easily becomes fragmented.

NTFS Pros: more stable; no (realistic) limit on file size.

NTFS Cons: No native linux support, although the ntfs-3g solution appears to be stable; very few filesystem tools available; also subject to fragmentation, but better than fat.

Neither one supports the *nix permission system, of course, and you must use umasking when mounted on linux.

So it's really up to your individual needs as to which one to use.

BTW, there are also a few options available for accessing a Linux partition from Windows, such as the ext2ifs Windows driver. The Gentoo wiki has a good page on available options.

PS @jschiwal: If you read carefully, you'll see that nhg never said he wanted both OS's on the same partition. He specifically excluded the boot partitions from consideration.

Last edited by David the H.; 09-23-2008 at 07:39 AM.
 
Old 09-23-2008, 11:05 AM   #9
Pupthai
LQ Newbie
 
Registered: Sep 2008
Location: Phitsanulok, Thailand
Distribution: PClinuxOS (Minime2008)
Posts: 10

Rep: Reputation: 0
NTFS works just fine in linux. I use it all the time. Have or make sure ntfs-3g is installed via package manager and it will work like any other. Permission may be a problem but that happens no matter what format and can be fixed. Make an extra partition for data set it up to mount in linux. When you boot into windows it will show up as a E or F drive what ever if the partition has a label it will show. You can make the partition in linux with any number of programs qtparted ect or make it in windows just use fat32 or ntfs. If your not into hasseling with things just use fat32 4gig is a vary big file not to many people have em. When you boot back into linux it will mount where you had it and your good.

Advanced option. Install virtualbox and install windows into it and run windows on your linux desktop. Thats how I use my windows only lexmark all in one printer without rebooting and the file share between OS's is near seemless no network. You can open and run windows programs and linux programs in differant windows at the same time. I mount an ext. USB hd drive to a share file located in Linux and both windows and linux can use it at the same time, they both think its just another folder. Bingo. PS usb drive is NTFS formated, its all I ever use in them.

Last edited by Pupthai; 09-23-2008 at 11:08 AM. Reason: added
 
Old 09-23-2008, 11:55 AM   #10
DOTT.EVARISTI
Member
 
Registered: Jan 2007
Location: La spezia ( Italia )
Distribution: Fedora 9 amd 64, Gnome,PCLOS 2007,OpenSuse 11 amd 64,Sabayon 3.4,Xp,Vista
Posts: 248

Rep: Reputation: 31
Wink

Quote:
Originally Posted by Pupthai View Post
NTFS works just fine in linux. I use it all the time. Have or make sure ntfs-3g is installed via package manager and it will work like any other. Permission may be a problem but that happens no matter what format and can be fixed. Make an extra partition for data set it up to mount in linux. When you boot into windows it will show up as a E or F drive what ever if the partition has a label it will show. You can make the partition in linux with any number of programs qtparted ect or make it in windows just use fat32 or ntfs. If your not into hasseling with things just use fat32 4gig is a vary big file not to many people have em. When you boot back into linux it will mount where you had it and your good.

Advanced option. Install virtualbox and install windows into it and run windows on your linux desktop. Thats how I use my windows only lexmark all in one printer without rebooting and the file share between OS's is near seemless no network. You can open and run windows programs and linux programs in differant windows at the same time. I mount an ext. USB hd drive to a share file located in Linux and both windows and linux can use it at the same time, they both think its just another folder. Bingo. PS usb drive is NTFS formated, its all I ever use in them.
In different Pcs i use different shared partitions between win and linux to store downloaded stuff before burning it on cd/dvd and backup of documents i use both FAT32 and Ntfs and i have never had any problems in writing and erasing files from them.

Both Fat32 and Ntfs allow you to write and erasing files without stability problems if you use a new/recent distro with new/recent kernel with a new/recent version of ntfs-3g,of course you don't have to use a fedora 3 or a mandriva 9.2 or anything else from preisthoric times

Last edited by DOTT.EVARISTI; 09-23-2008 at 11:57 AM.
 
Old 09-23-2008, 07:40 PM   #11
mhg
Member
 
Registered: Apr 2007
Location: Utah
Distribution: BodhiLinux
Posts: 205

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Pupthai View Post
Advanced option. Install virtualbox and install windows into it and run windows on your linux desktop. Thats how I use my windows only lexmark all in one printer without rebooting and the file share between OS's is near seemless no network. You can open and run windows programs and linux programs in differant windows at the same time. I mount an ext. USB hd drive to a share file located in Linux and both windows and linux can use it at the same time, they both think its just another folder. Bingo. PS usb drive is NTFS formated, its all I ever use in them.
Whoa. That sounds cool.

I appreciate the responses. I was just messing around with an older PC, and went through a steep learning curve on how to mount a hard drive in Linux I installed after the OS installation. I think now I could set up my newer PC to dual boot, and have XP and Linux share the drive.

Now maybe I will have to step back and look into this virtualbox.

Thanks for the help.
 
Old 09-25-2008, 05:43 AM   #12
Pupthai
LQ Newbie
 
Registered: Sep 2008
Location: Phitsanulok, Thailand
Distribution: PClinuxOS (Minime2008)
Posts: 10

Rep: Reputation: 0
Missed a day here was out of town. You will love virtualbox I download everything in linux and if its used in windows I just drop it into share folder. Then click on my Num 4 desktop and windows is already up and running and the file is in my computer under share folder. Just love it. No re booting and I can run P2P in linux and never turn it off.
 
  


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
Can I share a partition with windows and linux? dougnc Linux - General 14 09-13-2007 08:06 AM
Which one is the best partition that Windows and Linux can share? melopll Linux - Newbie 11 04-21-2006 05:19 PM
Windows/Linux Fat32 Share partition problem Halsafar Linux - General 1 09-23-2005 08:17 PM
Share swap partition - Linux and Windows XP jasontn Linux - Newbie 8 02-20-2004 09:52 AM
Share partition between windows and linux david@aber Linux - Newbie 4 11-20-2003 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:18 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