Linux How-to Getting-Started with fdisk Partitioning Easy & Pragmatic Guide

December 7th, 2012 by Regaz



The Guide Shows You How-to Getting-Started Partitioning a Disk/Drive by fdisk Linux Command Line Tools.

All Steps are Clearly Delineated Reducing at Minimum the Eventuals Choices and Customizations to Make Clearer & Easier the Process.

So if You Have Some Doubt or Need Some More Insight you Should Consult the Official Online Documentation…

Just Relax & Take the Time of Carefully Reading and Executing the Instructions Contained Here and All should Work Like a Summer Breeze :)

Linux-Gnome Penguin on Ubuntu

For the Sake of Clarity I Take Into Account Only the General Case of Making Two Partitions on Disk:

  • One Swap Partition
  • One Root Partition

After Adding some Extra /home or /boot Partitions will be As Simple as Making the Root One!

  1. Open a Terminal Window
    (Press “Enter” to Execute Commands)
  2. Login as SuperUser
    su 

    If Got “User is Not in Sudoers file” then Look: Solution

    In Ubuntu-Like or on a Mac OS X Instead

    sudo su

    If Got “User is Not in Sudoers file” then Look: Solution

  3. Start fdisk
    fdisk /dev/sda
  4. Make a New-Partition Table
    o
  5. Create the Swap Partition
    n

    Accept Defaults But Latest Sector

    Set Latest Sector Swap Size

    +1G
  6. Create the Root Partition
    n

    Simply Confirm All Defaults

  7. Setup the Partition Type to Swap

    Enter:

    t

    Partition Number:

    1

    Set Hex Code:

    82 
  8. Write Changes

    This Will Discard All Existing Data on Disk!

    w
  9. How-to Format Created Partitions on Linux Command Line:

    Formatting on Linux Command-Line
(Visited 1 times, 1 visits today)

Tags: , , , , , , ,


Comments are disabled