Results 1 to 8 of 8

Thread: Must have swap partition?

  1. #1
    Senior Member registered user
    Join Date
    Feb 2004
    Location
    Denmark
    Posts
    111

    Must have swap partition?

    Im trying to clone a knoppix on hd to another hd.
    Norton Ghost could not do it.

    Since PartImage only clone partitions, I was wondering if I can
    shoot the swap partition to make cloning faster?

    Sorry if its a dumb question but there is so much to learn mastering linux.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Why not not clone the swap partition and use cfdisk to make another one after you've got the cloned system running? Linux will run without swap, but IMHO it's not a great idea.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2004
    Location
    Denmark
    Posts
    111
    I was not sure that the cloned hd would boot if it had a swap when cloned and then later it is gone. Lilo and stuff like that are a pain to fiddle with for me. So it seem far more safe to shoot the swap so that the cloned version would not expect it to be there.

    But does the system really need it? I have 1gb of ram. Can get more if needed.

    thanks.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Sorry, I mis-typed.

    I'd forget the swap for now, that is, for the cloning.

    Linux on recent kernels will run fine without swap (and it won't affect lilo), but IMHO, swap is a good idea. You can always shrink one of the ghosted partitions and create a small swap.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2004
    Location
    Denmark
    Posts
    111
    mis-typed?
    the "why not - Not " part?
    Well I saw it as Dont clone the swap

    Ok Ill try just cloning the Boot and give it a
    swap afterwards if you say that lilo wont blow up.

    thanks.

  6. #6
    Senior Member registered user
    Join Date
    Jan 2004
    Location
    Paris, France
    Posts
    203

    Swap

    First off, there's no need to clone/ghost or partimage a swap partition becuase its just a memory dump. swap has no filesystem at all.

    secondly Linux runs GREAT without swap provided you have them memory. I ALMOST NEVER use swap on any of my machines with 1GB or up of memory. I have a 4GB partition unformatted in case I need it for DVD ripping etc. but hardly ever need it. Its not mounted by default and if you need it its a simple 'swapon'..

    If I ever get to the point where i need swap ill stick another GIG or two in. Although linux handles swap much better than WinSh%t its still undesirable to have it and if its on linux has to manage it which bumps up the overhead.

  7. #7
    Senior Member registered user
    Join Date
    Feb 2004
    Location
    Denmark
    Posts
    111
    Well, the only reason I considered cloning the swap as well was to keep the number / order of partition on the cloned hd to avoid any issues with the loader.

    As far as I understand now, it should be ok to
    1) partimage the boot partition
    2) create a boot partition the same size on the other hd
    3) restore the partition to the other hd

    It should boot then without any fiddling.

    If you say it runs fine without a swap I will properly not waste time making one.

    Im not quite sure why you are not happy with the virtual memory in xp.
    On my workstation with 1gb ram, I often use 8-10 gb virtual memory with no slowdowns
    I notice. But it does take a zillions years to shutdown.

  8. #8
    Senior Member registered user
    Join Date
    Jan 2004
    Location
    Paris, France
    Posts
    203

    XP and virtual memory

    8-10GB.... that the whole point.
    memory is 1000x faster than disk.
    If you can't live without it then its a necassary evil BUT it will always hit your performance.

    Very few things in linux won't run with a GIG of RAM.
    Consider the following ...
    (and you can test this)
    Use GRIP to rip a whole CD to MP3
    In linux you can restrict your RAM if you want by passing the parameter mem=xxxx at bootup.

    Try with/without swap, with 128, 256, 512 and 1GB of mem!

    My XP3200 with 1GB of RAM takes <1 second to rip an average 3 minute track!
    My girlfriend has a XP2200 and 256MB with swap. It takes her a minute.

    Becuase everything on mine is done in RAM .... it streams the data to the processor and then just writes the file to memory and copies it at the end.
    With her's it writes it to disk through the whole process.... becuase she's using swap. In other words the processor can't get data fast enough...

    Just out of curiousity I have a 128GB machine at work.(not personally)... One day I might see how long it takes on there...

    Try opening OpenOffice - takes ages right....
    Try re-opening openOffice once its cached in RAM and it takes no perceptible time.
    If you use SWAP its somewhere inbetween....

    SWAP IMHO should only be used when it is absolutely necassary.....

    I always create swap at the END of the disk.....that way its no big deal changing other partitions.... swap is extremely dynamic in linux,
    for instance you can spead it over different disks and gain performance...
    you can give priorities to which disk to use first or last etc.
    So if you need an extra 4GB you can just add 4GB and if the process your running needs another 4 only add the other 4 AFTER its needed.

Similar Threads

  1. can't activate swap partition in 3.4
    By hany_bee3000 in forum General Support
    Replies: 1
    Last Post: 06-29-2004, 07:00 AM
  2. swap partition
    By ZeroKun in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 05-07-2004, 06:44 PM
  3. Help with swap partition
    By bob58 in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 03-19-2004, 11:31 PM
  4. position of the swap partition
    By Rico da halvarez in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 01-29-2003, 08:15 PM
  5. Linux swap partition
    By Sucker in forum General Support
    Replies: 3
    Last Post: 01-29-2003, 11:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP picture

Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP

$419.99



Cisco 10-2456-03 Genuine Cisco SFP-10G-LRM V03 10GBASE-LRM SFP+Transceiver picture

Cisco 10-2456-03 Genuine Cisco SFP-10G-LRM V03 10GBASE-LRM SFP+Transceiver

$21.24



Lot of 10pcs Brocade 57-1000012-01 8Gbps SWL 850nm SFP+ Optical Transceivers picture

Lot of 10pcs Brocade 57-1000012-01 8Gbps SWL 850nm SFP+ Optical Transceivers

$19.00



Cisco GLC-FE-100FX-RGD 100BASE-FX SFP Transceiver Module picture

Cisco GLC-FE-100FX-RGD 100BASE-FX SFP Transceiver Module

$17.99



Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03  picture

Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03

$8.00



SFP-10G-SR Original Cisco 10GBASE-SR SFP+ V02 Multi mode Transceiver 10-2415-02 picture

SFP-10G-SR Original Cisco 10GBASE-SR SFP+ V02 Multi mode Transceiver 10-2415-02

$5.00



Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC picture

Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC

$13.89



Genuine Cisco ‎SFP-10G-SR Transceiver Module (10-2415-03) picture

Genuine Cisco ‎SFP-10G-SR Transceiver Module (10-2415-03)

$5.85



New Cisco w/ Hologram SFP-10/25G-CSR-S 10/25GBASE-CSR SFP28 Transceiver Module picture

New Cisco w/ Hologram SFP-10/25G-CSR-S 10/25GBASE-CSR SFP28 Transceiver Module

$69.99



New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module picture

New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module

$49.99