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 03-20-2007, 10:14 PM   #1
dtjohnst
Member
 
Registered: Jan 2004
Posts: 53

Rep: Reputation: 15
SWAP shared with XP?


I thought I had read an article somewhere once about how to use the same partition for both the windows xp pagefile and the linux SWAP space, but I can't seem to find it now despite my best searching. I did find one for Windows 98, but seeing as how it's pre-NTFS technology, I'm not sure how that'd work.

Anyone have some insight or a link that would help me out?
 
Old 03-20-2007, 10:28 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
I've never seen Windows with a separate partition for swap, pagefile, etc. Doesn't Windows just use a file within the basic (C) partition?

More to the point, why would you want/need to have this shared?
 
Old 03-20-2007, 10:40 PM   #3
dtjohnst
Member
 
Registered: Jan 2004
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
I've never seen Windows with a separate partition for swap, pagefile, etc. Doesn't Windows just use a file within the basic (C) partition?

More to the point, why would you want/need to have this shared?
By default windows does that, yes. But it's much faster to have the Windows pagefile on a seperate drive. By sharing the windows pagefile with the linux SWAP space, you save space. Afterall, you can't use both of them at the same time anyways, might as well put them on the same drive.
 
Old 03-20-2007, 11:07 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Yes you can - probably require some code in the init scripts to do it cleanly.
Retry your searching - I've seen several docos on this as I've cruised the 'net.
 
Old 03-20-2007, 11:12 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Here you go. I've have not seen anything similar for XP nor do I know if it will work the same either.

http://www.faqs.org/docs/Linux-mini/Swap-Space.html

Last edited by michaelk; 03-20-2007 at 11:13 PM.
 
Old 03-20-2007, 11:13 PM   #6
dtjohnst
Member
 
Registered: Jan 2004
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by michaelk
Here you go. I've have not seen anything similar for XP. I do not know if this will work for XP.

http://www.faqs.org/docs/Linux-mini/Swap-Space.html
Yeah, that's the one I'd seen before. I don't know if it will work either. I plan on trying it though, I don't see why XP wouldn't work on a FAT16 partition.
 
Old 03-21-2007, 01:38 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
That is *seriously* out of date, and just plain wrong in parts.
I found this without much trouble.
Go to the bottom.
 
Old 03-21-2007, 03:38 AM   #8
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
that is out of date I doubt it would work in win xp
 
Old 03-21-2007, 09:31 PM   #9
dtjohnst
Member
 
Registered: Jan 2004
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AceofSpades19
that is out of date I doubt it would work in win xp
I should know by tomorrow evening, so I'll let you know if it works or not.
 
Old 03-23-2007, 02:27 PM   #10
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Maybe Windows XP CAN use a Linux swap partition!

I just encountered this situation yesterday while trying to convert a hard drive from dual boot to Windows XP only. (Lets just say I didn't want Windows near my Linux stuff, and the Linux portion of the disk was already moved to its own drive.) In Windows XP, I tried to use a Partition Manager to delete the Linux partitions and it told me that the Linux swap partition (Type 82) could not be deleted because it was still active! (By the way, a Linux swap partition is, by default not a ext-2 or vfat partition -- it has its own structure, mostly like a raw partition.)
 
Old 03-24-2007, 01:58 AM   #11
jonwatson
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada!
Distribution: Ubuntu
Posts: 170

Rep: Reputation: 30
Quote:
Originally Posted by syg00
Yes you can - probably require some code in the init scripts to do it cleanly.
Retry your searching - I've seen several docos on this as I've cruised the 'net.
Really? I'm curious as to how that could work. The Linux swap partition is formatted as Linux swap. Can Windows write to such a beast?
 
Old 03-24-2007, 02:14 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
I'd be willing to bet 'doze doesn't give a rats arse - just use whatever it is pointed at. The necessity to issue mkswap on going back to Linux would be evidence of the same.
It should be noted mkswap also works this way - point it at the wrong thing, and you are history. It'll quite happily trample on anything - without asking.
 
Old 03-24-2007, 02:16 AM   #13
jonwatson
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada!
Distribution: Ubuntu
Posts: 170

Rep: Reputation: 30
Quote:
Originally Posted by syg00
I'd be willing to bet 'doze doesn't give a rats arse - just use whatever it is pointed at. The necessity to issue mkswap on going back to Linux would be evidence of the same.
It should be noted mkswap also works this way - point it at the wrong thing, and you are history. It'll quite happily trample on anything - without asking.
I had never even considered this before. Food for thought...thanks!
 
  


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 the swap file partition be shared? benerivo Linux - Newbie 3 01-04-2007 11:20 AM
Min Size part / required to install Edgy. Shared swap & home w/ other bundles digital8doug Ubuntu 9 11-18-2006 09:47 PM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 07:50 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 08:03 AM
Shared swap partition michaely Linux - General 1 07-06-2004 07:58 AM


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