PDA

View Full Version : is swap a different partition ?


saurabh kakkar
08-07-2007, 12:02 AM
hi
as i am new in the amazing word of Linux . i wanna know is swap a different

partition or a sub portion ( virtual ) of main Linux partition ?

infra_red_dude
08-07-2007, 12:07 AM
swap can be a different partition (which is the commonly followed conventionn) or it can be a file (jus like windows). basically it jus needs some allotted space on harddisk to perform the swap operation.

praka123
08-07-2007, 12:12 AM
better have a seperate partition of approx 500 mb.

saurabh kakkar
08-07-2007, 12:20 AM
better have a seperate partition of approx 500 mb.

thanks for Ur suggestion i m having swap as a different partition in my

ubuntu 7.04 but wana know suppose i format my linux partition and swap

partition from windows will they appear different drives or one ?

Pathik
08-07-2007, 12:34 AM
you wont be able to access or edit ur ext3 or swap partitions without any 3rd party softs..w

infra_red_dude
08-07-2007, 12:37 AM
if u haf a separate swap partition then it'll appear as a separate drive (drive is not a correct word here! partition is the correct word. but ussed here jus for understanding sake.)

you wont be able to access or edit ur ext3 or swap partitions without any 3rd party softs..w
he can't access but he can definitely format the partitions using disk management of win nt/2k/xp/vista.

QwertyManiac
08-07-2007, 05:50 AM
Swap won't appear in Windows even after you install the EXT2/3 Drivers. They do appear in those application-based readers but they hardly contain any file in them.

infra_red_dude
08-07-2007, 12:45 PM
Swap won't appear in Windows even after you install the EXT2/3 Drivers. They do appear in those application-based readers but they hardly contain any file in them.
he doesn't wanna access or modify the FS. he just wants to format it. disk manager fails to recognise the type of FS for ext2/3 swap parittion type and lists it as "unknown FS". but windows shows those partitions in disk manager and allows to format it or delete the partition.

anantkhaitan
08-07-2007, 01:01 PM
I was reading about the ReadyBoost feature in Pista .. then thought of having a swap file on the Pen Drive that would do the same.. fortunately/unfortunately I got a readymade solution (http://ubuntu-tutorials.com/2007/07/02/swapboost-v01alpha-early-testers-wanted/)

Now this script lacks one feature.. tell me how can I make a dump file of alloted file size..Hope I am clear

saurabh kakkar
08-07-2007, 02:26 PM
I was reading about the ReadyBoost feature in Pista .. then thought of having a swap file on the Pen Drive that would do the same.. fortunately/unfortunately I got a readymade solution (http://ubuntu-tutorials.com/2007/07/02/swapboost-v01alpha-early-testers-wanted/)

Now this script lacks one feature.. tell me how can I make a dump file of alloted file size..Hope I am clear

Pista cool buddy nd good link also

another Q has popped in my mind :

what if i delete swap partition from my windows xp will my ubuntu work fine ?

though i will do it but i m curious to know .

QwertyManiac
08-07-2007, 02:54 PM
he doesn't wanna access or modify the FS. he just wants to format it. disk manager fails to recognise the type of FS for ext2/3 swap parittion type and lists it as "unknown FS". but windows shows those partitions in disk manager and allows to format it or delete the partition. Ah am sorry, I had just woken up then, didn't quite understand what was going on and perhaps, skipped a few messages. Apologies to all. :)

And I guess if you do chop the swap off, fstab will go screaming perhaps. Might not be anything more than that. But then again, I haven't done anything like this before.

mehulved
08-07-2007, 03:18 PM
If the swap partition isn't found, you will get error during the boot up that it wasn't found. And those with graphical login, might not even notice that.
Besides, you will have some problems if you are low on RAM.
Otherwise linux will work fine.
Had happened to me once while messing around with multi-boot system.

infra_red_dude
09-07-2007, 07:24 PM
what if i delete swap partition from my windows xp will my ubuntu work fine ?
setting up swap..........................................[fail]

that's it... but hey you are still welcomed at ur gui/console welcome screen! :) don't worry.. nothing wil happen...

anantkhaitan
09-07-2007, 07:32 PM
I am waiting for a answer.. we cannot create a swap file less than 40 KB.. so
how can I make a dump file of alloted file size

infra_red_dude
09-07-2007, 11:13 PM
^^^ sorry didn't get ur question.

anantkhaitan
10-07-2007, 05:54 AM
I mean we will give a user defined filesize as parameter ..Arre suppose if the command is xyz then we will issue something like this
$ xyz --filesize 100 --name abc
This will create a dump file "abc" of size 100 KB