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
Q

fdisk interactive options

make logical partition

A

fdisk l

[#] number of logical partition (range will depend on previous choices but will be number of the extended partition + 1

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

fdisk

change position type

A

t

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

hex code partition type

linux swap

A

82

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

hex code partition type

linux

A

83

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

hex code partition type

linux extended

A

85

30
Q

hex code partition type

linux LVM

A

8e

31
Q

hex code partition type

linux RAID

A

fd

32
Q

fdisk

write changes to disk

A

w

33
Q

gdisk

similar in functionality but support for additional filesystem types and the GUID partition table

A

gdisk

34
Q

gdisk

list GUID (gpt) status and disk partition information for the indicated devices

A

gdisk -l [device]

35
Q

gdisk interactive options

A

as with disk, nothing is written to the drive until you explicitly indicate

36
Q

gdisk interactive options

display disk/partition summary

A

p

37
Q

gdisk interactive options

create new partition

A

n

38
Q

gdisk interactive options

make primary partition

A

p

of primary partitions 1 - 28

39
Q

parted

capable of dealing with both legacy MBR and newer GPT drives

A

parted

40
Q

parted

list A LOT of info about the indicated device and partitions

A

parted -l [device]

41
Q

parted interactive options

list commands available

A

help

42
Q

parted interactive options

create partition with the indicated volume name at the beginning value and ending at the end value

A

mkpart [volume name] [end]

43
Q

superblock

portion of the disk that can be read and contains filesystem information

A

size
inode stats
last time checked

44
Q

superblock

typically stored on disk in first sector

A

exists in multiple locations to facilitate recovery

45
Q

superblock

first backup bloc for ext filesystems

A

8193

46
Q

Inode

associated with every file and directory on the system

A

Inode

47
Q

Inode

contains info about the file except

A

filename

48
Q

Inode

the number of inodes is set at filesystem creation time and cannot be changed

A

afterwards

49
Q

Filesystem types

linux extended filestystem legacy

A

ext2

50
Q

Filesystem types

linux extended filesystem with journaling

A

ext3

51
Q

Filesystem types

linux extended filesystem with including performance enhancements over ext3

A

ext4

52
Q

Filesystem types

extent filesystem, enhanced performance - particularly on filesystems with many smaller files

A

xfs

53
Q

Filesystem types

one of the first filesystems to introduce journaling and offer dynamic resizing capabilities

A

ReiserFS

54
Q

Filesystem types

builds on ReiserFS features while adding additional admin features while increasing performance on larger filetystems

A

btrfs

55
Q

Filesystem types

filesystem specific to CD-ROM

A

iso9660

56
Q

Filesystem types

filesystem specific to DVD

A

udf

57
Q

Filesystem types

older DOS partition type used for compatibility with other OS

A

vfat

58
Q

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

A

formatting

59
Q

mkfs

make

A

filesystem

60
Q

mkfs

creates the indicated filesystem type on the chosen disk partition

A

mkfs -t [fstype] [device/partition]

61
Q

mkfs

create the filesystem with the indicated block size
default 4096

A

mkfs -b [#]

62
Q

mkfs

percentage of space reserved for root user

A

mkfs -m [#]

63
Q

mkfs

set the partition volume label

A

mkfs -L [label]

64
Q

mkfs

additional options

A

mkfs -O [optional]

65
Q

mkfs.[fstype]

equvalent command for each filesystem type to format the

A

indicated partition

66
Q

make2fs

equivalent command for making an ex2/3/4 filesystem

A

/etc/mke2fs.conf

option file for make2fs behavior

67
Q

make2fs

change the default behavior as configured in config file

A

make2fs -O [optional]

68
Q

create partition

create swap space out of the indicated partition or file

A

mkswap

69
Q

create partition

creates RAID array set from indicated disks

A

mkraid

70
Q

create partition

create special files

A

mknod

71
Q

create partition

create ISO filesystem for burning to CD-ROM

A

mkisofs