104.1 Create Partitions and Filesystems Flashcards

1
Q

General order of preparing drive for use step 1

Physical

A

Install

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

General order of preparing drive for use step 2

partition the

A

device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

General order of preparing drive for use step 3

format partitions

A

created with chosen filesystem type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

General order of preparing drive for use step 4

determine access permissions and create

A

system mount point directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

General order of preparing drive for use step 5

mount device/partition on chosen

A

directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

General order of preparing drive for use step 6

if intended to be persistent add an entry to

A

/etc/fstab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

/dev

standard linux device directory where disks have associated entries

A

/dev

IDE

SATA/SCSI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

/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)

A

Primary partition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

/dev

only one of these per drive
think ‘container’ for logical partitions

A

Extended partition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

/dev

partitions with an extended partition usually needed when there is a need for more than four partitions

A

Logical partition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

/dev

partition(s) that are specially formatted and dedicated to vm in support of system memory exhaustion

A

Swap partitions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

/dev

swap partitions should be at least the size of system memory

A

historic was 2x system memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

/dev - numbering

primary partitions

A

1 through 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

/dev - numbering

logical partitions

A

5 through n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

fdisk

disk partitioning tool installed with every distribution (standard partitioning rules no ability to edit GUID drives)

A

fdisk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

fdisk

deals with traditional MBR partition tables and size limitations is

A

2TB size limit

four partition limit (primary and extended - logical drives were created to address) no disk checksum support

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

gdisk

disk partitioning tool installed in most modern distributions and capable of creating/modifying GUID tables

A

address limitations of the MBR partition table

gdisk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

parted

disk partitioning tool with an extended feature set often used with GUI front end extension

A

parted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

fdisk

command line along with device

A

fdisk /dev/sda

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

fdisk

list MBR status and disk partion info for indicated devices

A

fdisl -l [device]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

fdisk interactive options

display disk/partition summary

A

fdisk p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

fdisk interactive options

create new partition

A

fdisk n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

fdisk interactive options

make primary partition

A

fdisk p
[#] number of primary partitions 1 through 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

fdisk interactive options

make extended partition

A

fdisk e

[#] number of extended partition 2 through 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
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
26
fdisk change position type
t
27
hex code partition type linux swap
82
28
hex code partition type linux
83
29
hex code partition type linux extended
85
30
hex code partition type linux LVM
8e
31
hex code partition type linux RAID
fd
32
fdisk write changes to disk
w
33
gdisk similar in functionality but support for additional filesystem types and the GUID partition table
gdisk
34
gdisk list GUID (gpt) status and disk partition information for the indicated devices
gdisk -l [device]
35
gdisk interactive options
as with disk, nothing is written to the drive until you explicitly indicate
36
gdisk interactive options display disk/partition summary
p
37
gdisk interactive options create new partition
n
38
gdisk interactive options make primary partition
p of primary partitions 1 - 28
39
parted capable of dealing with both legacy MBR and newer GPT drives
parted
40
parted list A LOT of info about the indicated device and partitions
parted -l [device]
41
parted interactive options list commands available
help
42
parted interactive options create partition with the indicated volume name at the beginning value and ending at the end value
mkpart [volume name] [end]
43
superblock portion of the disk that can be read and contains filesystem information
size inode stats last time checked
44
superblock typically stored on disk in first sector
exists in multiple locations to facilitate recovery
45
**superblock** first backup bloc for ext filesystems
8193
46
Inode associated with every file and directory on the system
Inode
47
**Inode** contains info about the file except
filename
48
Inode the number of inodes is set at filesystem creation time and cannot be changed
afterwards
49
**Filesystem types** linux extended filestystem legacy
ext2
50
**Filesystem types** linux extended filesystem with journaling
ext3
51
**Filesystem types** linux extended filesystem with including performance enhancements over ext3
ext4
52
**Filesystem types** extent filesystem, enhanced performance - particularly on filesystems with many smaller files
xfs
53
**Filesystem types** one of the first filesystems to introduce journaling and offer dynamic resizing capabilities
ReiserFS
54
**Filesystem types** builds on ReiserFS features while adding additional admin features while increasing performance on larger filetystems
btrfs
55
**Filesystem types** filesystem specific to CD-ROM
iso9660
56
**Filesystem types** filesystem specific to DVD
udf
57
**Filesystem types** older DOS partition type used for compatibility with other OS
vfat
58
Formatting the process of preparing the size and structures on a partition and applying the filesystem type indicated that makes it available for mounting and use
formatting
59
mkfs make
filesystem
60
mkfs creates the indicated filesystem type on the chosen disk partition
mkfs -t [fstype] [device/partition]
61
mkfs create the filesystem with the indicated block size default 4096
mkfs -b [#]
62
mkfs percentage of space reserved for root user
mkfs -m [#]
63
mkfs set the partition volume label
mkfs -L [label]
64
mkfs additional options
mkfs -O [optional]
65
mkfs.[fstype] equvalent command for each filesystem type to format the
indicated partition
66
make2fs equivalent command for making an ex2/3/4 filesystem
/etc/mke2fs.conf option file for make2fs behavior
67
make2fs change the default behavior as configured in config file
make2fs -O [optional]
68
create partition create swap space out of the indicated partition or file
mkswap
69
create partition creates RAID array set from indicated disks
mkraid
70
create partition create special files
mknod
71
create partition create ISO filesystem for burning to CD-ROM
mkisofs