Results 1 to 5 of 5

Thread: Create SWAP partition in CentOS

  1. #1
    Join Date
    Mar 2010
    Posts
    162

    Create SWAP partition in CentOS

    Hello,
    I try to install Oracle on CentOS, I installed on a virtual machine, in the installation documentation, it is advisable to have a swap partition of at least 2GB RAM, as I had rented my virtual machine to a 512MB ram, so is my Linux installation ale 1G swap, as I had not planned initially, and I have enough space, I added a new virtual disk to my machine and is the subject of my message, I'd like your help to format and create new virtual disk swap partition. How can I do this? If you have a solution for this then please let me know.

  2. #2
    Join Date
    Nov 2009
    Posts
    518

    Re: Create SWAP partition in CentOS

    Hello,
    Your new record is defined as
    Code:
    / dev / sdx (where x is a letter).
    It is therefore necessary that you find what matches your drive, eg / dev / sdb then you create a new partition using the command cfdisk.
    Here is the syntax of the command
    Code:
    cfidsk / dev / sdb
    The code to create a swap is 82 I believe. Checks in the list.

  3. #3
    Join Date
    Nov 2008
    Posts
    240

    Re: Create SWAP partition in CentOS

    Hello,
    Even I am facing a similar kind of problem. What you have said in the above post I have tried the command,
    here is the output for sdbx or hdbX
    I do not find sd in / dev by the cons hd there is
    Code:
    brw-r ----- 1 root disk 2, 0 Jan 10 10:18 hda
    brw-r ----- 1 root disk 2, 1 Jan 10 10:40 hda1
    brw-r ----- 1 root disk 2, 2 Jan 10 10:18 hda2
    brw-r ----- 1 root disk 2, 64 Jan 10 10:18 hdb
    brw-r ----- 1 root disk 2, 65 Jan 10 10:18 hdb1
    brw ------- 1 youssef disk 22, 0 Jan 10 10:40 hdc
    Any advice on this. Thank you for your reply
    Last edited by Fragman; 21-04-2010 at 04:58 PM.

  4. #4
    Join Date
    Mar 2010
    Posts
    162

    Re: Create SWAP partition in CentOS

    Hello,
    When I try the following command
    Code:
    man fdisk
    I get the manual pages for the command
    but when I try to apply:
    Code:
    [Root @ localhost dev] # cfdisk / dev/hda2
    -Bash: cfdisk: command not found
    Do you have any idea about this. Please help me with this. Thank you.

  5. #5
    Join Date
    Nov 2009
    Posts
    333

    Re: Create SWAP partition in CentOS

    Hello,
    This simply means that fdisk is installed and that cfdisk does not. In using cfdisk is easier. To install, you logged in as root and install cfdisk with the command:
    Code:
    yum install cfdisk
    For more information on the man pages you can visit the official site of the linux distribution you are using.

Similar Threads

  1. Replies: 5
    Last Post: 04-05-2011, 10:51 AM
  2. Where to put swap partition in Linux
    By foraman in forum Operating Systems
    Replies: 4
    Last Post: 02-01-2011, 07:47 AM
  3. RAID10 SWAP partition and boot
    By NathanDS in forum Hardware Peripherals
    Replies: 4
    Last Post: 15-09-2010, 11:42 AM
  4. Why do i need a SWAP partition for linux?
    By Windows7er in forum Operating Systems
    Replies: 3
    Last Post: 17-11-2009, 11:45 AM
  5. Removing Linux Swap partition from iMac
    By MaCiNToSHeR in forum Operating Systems
    Replies: 3
    Last Post: 24-10-2009, 12:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,499,193.38548 seconds with 17 queries