Results 1 to 4 of 4

Thread: position of the swap partition

  1. #1
    Rico da halvarez
    Guest

    position of the swap partition

    Hello,

    Just a little doubt :
    I had installed knoppix on my hd
    I have 3 partitions :

    hda1 --> winslow98
    hda5 --> linux
    hda6 --> swap

    The doubt : a swap partition can be at the end of the drive, or it's better to set it at the begining of the logical partition ?
    Why hda5 and not hda2 ?

    Thx

    Rico

  2. #2
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    Podunk, Idaho, USA
    Posts
    470
    The reason your two linux partitions are /dev/hda5 and /dev/hda6 is because your drive was fdisked with DOS/windows, which only allows one primary partition, the second partition has to be an extended partition in DOS. So when you put linux on your HD it went in the extended partition, linux names the extended partition /dev/hda4 and logical partitions are placed inside of it so your first linux partition is /dev/hda5 and your swap is /dev/hda6. BTW linux fdisk allows up to four primary partitions, or three primary and one extended.

    I've heard some people say that having the swap at the front of the drive will be slightly faster, many "canned" installs, e-smith router/server for example, make a small /boot partition, then do the swap, and then fill the remaining space with your / partition, which is the easiest way to do it.

    HTH

    rock

  3. #3
    Junior Member
    Join Date
    Jan 2003
    Location
    Bordeaux
    Posts
    6
    thX

  4. #4
    Guest

    parted

    Just another question about partitioning tools

    actually my partition table is :

    hda1 : win98 (primary)
    hda5 : / logical
    hda6 :swap logical

    I would use GNU parted to set it as you told me :

    hda1 win98 unchanged
    hda5 /boot ~30Mo
    hda6 swap moved but not resized
    hda7 / moved & resized

    My questions are motived by my ignorance of the combination of the différent options of the parted command, I naturaly, the fear of a HD damage caused by a wrong manipulation...

    What are parted commands for :

    moving hda6 to the actual place of hda5

    resizing hda5 to give space to a 30Mo /boot partition

    creating the /boot partition and initialising it


    Thx

Similar Threads

  1. Swap partition on different drive
    By pbock in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 07-15-2004, 09:56 PM
  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. Must have swap partition?
    By metavoid in forum General Support
    Replies: 7
    Last Post: 02-20-2004, 04:40 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
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory picture

Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory

$16.29



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Corsair Vengeance LPX 32GB PC4-25600 (DDR4-3200) Memory NEVER USED LOOSE STICKS picture

Corsair Vengeance LPX 32GB PC4-25600 (DDR4-3200) Memory NEVER USED LOOSE STICKS

$40.00



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$27.98



A-Tech 16GB 2x 8GB PC3-12800 Desktop DDR3 1600 MHz 240pin DIMM Memory RAM 16G 8G picture

A-Tech 16GB 2x 8GB PC3-12800 Desktop DDR3 1600 MHz 240pin DIMM Memory RAM 16G 8G

$27.98



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM picture

A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM

$87.96