Storage Flashcards

1
Q

list the block devices

A
  1. lsblk
  2. ls -l /dev/ | grep “^b”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Block device Major and Minor numbers

A

1 RAM
3 HARD DSK or CD ROm
6 PARALLE PRINTERS
8 SCSI DISK

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

list partition table

A

sudo fdisk -l /dev/sda

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

Master Boot Record (MBR) partition - Max 2T

A

2TB max and 4 Primary partition

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

GUID partition

A
  1. No max size per partition
  2. Unlimited partitions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Let’s partition with gdisk, an improved version of fdisk

A

It works with GPT partitioning scheme

once in, use ? to see all available options

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

gdisk create new partion

A

use n to create new partition

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

gdiks partition with default 20 GB

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

Check the newly created partition with gdisk

A

lsblk
sudo fdisk -l /dev/sdb

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

File System Types

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

Create EXT4 file system

A

mkfs.ext4 /dev/sdb1
mkdir /mnt/ext4;
mount /dev/sdb1 /mnt/ext4

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

Check if EXT4 mount was successful

A

mount | grep /dev/sdb1
or
df -hP | grep /dev/sdb1

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

Make the mount available even after reboot. Adding a record to /etc/fstab

A

echo “/dev/sdb1 /mnt/ext4 ext4 rw 0 0”&raquo_space; /etc/fstb

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

Show disk usage of each files and folder under specific path

A

du -sh /home/kalinga/*

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

Show disk usage of each volume

A

du -h

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