Minor writing changes. (#20198)

This commit is contained in:
Vyrza
2018-10-28 11:11:38 +07:00
committed by Christopher McCormack
parent c7d64100a3
commit d961e04a86

View File

@ -6,20 +6,20 @@ title: Partitions
- Without creating partitions in hard-disk, we cant create folder. - Without creating partitions in hard-disk, we cant create folder.
- Partitions in Linux- - Partitions in Linux
- **df** - **df**
- **df -h** (human readable) - **df -h** (human readable)
- Shows size in MiB, GiB - Shows size in MiB, GiB
- **lvdisplay** - **lvdisplay**
- Shows information about partition of disk - - Shows information about partition of disk
- **fdisk -l** - **fdisk -l**
- **fdisk -l /dev/sda** (sda is the name of hard-disk) - **fdisk -l /dev/sda** (sda is the name of hard-disk)
- For practicing partition, insert virtual hard-disk in Linux using virtual-box. - For practicing partition, insert virtual hard-disk in Linux using virtual-box.
- Some points to remember - Some points to remember:
- Hard-disk doesnt understand GB or MB, its unit is sector.</br> - Hard-disk doesnt understand GB or MB, its unit is sector.</br>
1 sector = 512 bytes.</br> 1 sector = 512 bytes.</br>
To find actual size of hard-disk, find number of sectors * 512.</br> To find actual size of hard-disk, find number of sectors * 512.</br>
@ -37,7 +37,7 @@ title: Partitions
3. Create a new partition. 3. Create a new partition.
- **n** - **n**
4. Choose primary partition. 4. Choose primary partition.
5. Press 1 (1st partition) 5. Press 1 (1st partition).
6. Initial some sectors (0-2047 = 2048 sectors = 1 MB) are reserved in hard-disk. 6. Initial some sectors (0-2047 = 2048 sectors = 1 MB) are reserved in hard-disk.
7. Actual space starts with 2048th sector. 7. Actual space starts with 2048th sector.
8. **+1G** 8. **+1G**
@ -53,7 +53,7 @@ title: Partitions
</br> </br>
## WHY THERE IS LIMIT OF 4 ? ## WHY THERE IS LIMIT OF 4?
- Because where we store the information of partitions, metadata of partitions, is fixed and of 64 bytes. This information is stored in partition table. - Because where we store the information of partitions, metadata of partitions, is fixed and of 64 bytes. This information is stored in partition table.
- 1 partition required 16 bytes so only 4 partitions can be created. - 1 partition required 16 bytes so only 4 partitions can be created.
- In 1 MB (2048 sectors) reserved in hard-disk, 64 bytes are reserved for storing this information. - In 1 MB (2048 sectors) reserved in hard-disk, 64 bytes are reserved for storing this information.