104.1 Create Partitions and Filesystems Flashcards
General order of preparing drive for use step 1
Physical
Install
General order of preparing drive for use step 2
partition the
device
General order of preparing drive for use step 3
format partitions
created with chosen filesystem type
General order of preparing drive for use step 4
determine access permissions and create
system mount point directory
General order of preparing drive for use step 5
mount device/partition on chosen
directory
General order of preparing drive for use step 6
if intended to be persistent add an entry to
/etc/fstab
/dev
standard linux device directory where disks have associated entries
/dev
IDE
SATA/SCSI
/dev
Partition(s) that are independent of any extended and logical partitions (see below), typically
you can have up to FOUR primary partitions (historically a limit of the MBR) on a disk device
(with some exceptions - see GUID below)
Primary partition
/dev
only one of these per drive
think ‘container’ for logical partitions
Extended partition
/dev
partitions with an extended partition usually needed when there is a need for more than four partitions
Logical partition
/dev
partition(s) that are specially formatted and dedicated to vm in support of system memory exhaustion
Swap partitions
/dev
swap partitions should be at least the size of system memory
historic was 2x system memory
/dev - numbering
primary partitions
1 through 4
/dev - numbering
logical partitions
5 through n
fdisk
disk partitioning tool installed with every distribution (standard partitioning rules no ability to edit GUID drives)
fdisk
fdisk
deals with traditional MBR partition tables and size limitations is
2TB size limit
four partition limit (primary and extended - logical drives were created to address) no disk checksum support
gdisk
disk partitioning tool installed in most modern distributions and capable of creating/modifying GUID tables
address limitations of the MBR partition table
gdisk
parted
disk partitioning tool with an extended feature set often used with GUI front end extension
parted
fdisk
command line along with device
fdisk /dev/sda
fdisk
list MBR status and disk partion info for indicated devices
fdisl -l [device]
fdisk interactive options
display disk/partition summary
fdisk p
fdisk interactive options
create new partition
fdisk n
fdisk interactive options
make primary partition
fdisk p
[#] number of primary partitions 1 through 4
fdisk interactive options
make extended partition
fdisk e
[#] number of extended partition 2 through 4
fdisk interactive options
make logical partition
fdisk l
[#] number of logical partition (range will depend on previous choices but will be number of the extended partition + 1
fdisk
change position type
t
hex code partition type
linux swap
82
hex code partition type
linux
83