Logo Henzel Moras
    Logo Inverted Logo
    • Posts
    • Linux Sys Admin
      • Lab Setup
      • Linux Virtual Filesystem
      • Basic Storage Partition
        • Why Disk Partition ?
        • Storage Overview
        • Disk Types
        • Interacting With Disks
        • Disk Partition
        • Backup Partition
        • File As Disk
      • Advanced Storage Partition
        • LVM
        • RAID
        • swap
        • Quotas
        • Encryption
      • Operation of Running Systems
        • Boot Process
        • Grub
        • Kernel
        • Systemd
    Hero Image
    Disk Partition

    How to many utilities are available to partition disks , we will be using fdisk to make partitions on disk. # list disks [s0x45ker--_(+_+)_--SysAdmin ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 21.3G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 20.3G 0 part ├─cl-root 253:0 0 18.3G 0 lvm / └─cl-swap 253:1 0 2.1G 0 lvm [SWAP] sdb 8:16 0 2G 0 disk sr0 11:0 1 1024M 0 rom sr1 11:1 1 1024M 0 rom we will be using /dev/sdb in this tutorial

    April 17, 2021 Read
    Hero Image
    Disk Types

    SATA (Serial Advanced Technology Attachment) SATA disks were designed to replace the old IDE drives. They offer a smaller cable size (7 pins), native hot swapping, and faster and more efficient data transfer. They are seen as SCSI devices. SCSI (Small Computer Systems Interface) SCSI disks range from narrow (8 bit bus) to wide (16 bit bus), with a transfer rate between 5 MB per second (narrow, standard SCSI) and 160 MB per second (Ultra-Wide SCSI-3).

    April 17, 2021 Read
    Hero Image
    File As Disk

    About we can create Diskpartition using a file as image we can achieve this using ‘dd’ or ‘losetup’ Using: ‘dd’ create a file full of zeros using dd [s0x45ker--_(+_+)_--SysAdmin ~]$ dd if=/dev/zero of=imagefile bs=1M count=1024 #create a file full of zeros 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.904085 s, 1.2 GB/s Format Filesystem Type next we must put a filesystem on it Note u can create different filesystem formats 'mkfs.

    April 17, 2021 Read
    Hero Image
    Interacting With Disks

    Mount The mount program allows attaching at any point in the tree structure; umount allows detaching them. The mount point is the directory where the filesystem is attached. It must exist before mount can use it; mkdir can be used to create an empty directory. If a pre-existing directory is used and it contains files prior to being used as a mount point, they will be hidden after mounting. These files are not deleted and will again be visible when the filesystem is unmounted.

    April 17, 2021 Read
    Hero Image
    Storage Overview

    Disks Disks are divided into partitions. In geometrical terms, these consist of physically contiguous groups of sectors or cylinders. A partition is a physically contiguous region on the disk. There are two partitioning layouts in use: MBR (Master Boot Record) GPT (GUID Partition Table). MBR dates back to the early days of MSDOS. The disk partition table is contained within the disk’s Master Boot Record (MBR), and is the 64 bytes following the 446 byte boot record.

    April 17, 2021 Read
    Hero Image
    Why Disk Partition ?

    Why Partition? There are multiple reasons as to why it makes sense to divide your system data into multiple partitions, including: Separation of user and application data from operating system files Sharing between operating systems and/or machines Security enhancement by imposing different quotas and permissions for different system parts Size concerns; keeping variable and volatile storage isolated from stable Performance enhancement of putting most frequently used data on faster storage media Swap space can be isolated from data and also used for hibernation storage.

    April 17, 2021 Read
    Hero Image
    Backup Partition

    Using dd for backup we can use dd or gfdisk The dd program is very useful for making copies of raw disk space. A common joke with `dd' is that is stands for data destroyer, so it should be noted that it’s a very dangerous utility. we will use one of the partition we created from earlier posts /dev/sdb1 **lets create a file within disk than backup the disk and delete the file and restore the disk**

    April 16, 2021 Read
    Navigation
    • About
    • Skills
    • Education
    • Projects
    • Accomplishments
    • Recent Posts
    • Achievements
    Contact me:
    • Email: henzelmoras@gmail.com

    Henzel Moras
    © 2021 Copyright.
    Powered by Hugo Logo Toha