WEIGEL FORUM
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Create and Configure File Systems

    Linux
    1
    1
    12
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DerMeldosD
      DerMeldos
      last edited by

      check and confirm the drive/partition you want to use.

      root@TESTVM:~# fdisk -l
      Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors
      Disk model: QEMU HARDDISK   
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 512 bytes
      I/O size (minimum/optimal): 512 bytes / 512 bytes
      Disklabel type: dos
      Disk identifier: 0xd9de07a1
      
      Device     Boot    Start      End  Sectors  Size Id Type
      /dev/sda1  *        2048 65107967 65105920   31G 83 Linux
      /dev/sda2       65110014 67106815  1996802  975M  5 Extended
      /dev/sda5       65110016 67106815  1996800  975M 82 Linux swap / Solaris
      root@TESTVM:~# 
      

      RedHat -> xfs
      Ubunutu -> ext4

      mkfs.xfs /dev/sdb1
      mkfs.ext4 /dev/sdb1
      

      You can create a label for a new Filesystem using the -L option.

      mkfs.xfs -L "BackupVolume" /dev/sdb1
      

      b348547c-67bc-4b60-88d1-afc4b9ac5047-image.png

      using mkfs without any argument it will show you some option:
      66a6f198-9ff1-4916-97ae-75a5f20e7483-image.png

      The default behavior is not to override the existing filesystem. -f (force) option is available.
      e5db2857-95bf-4382-96ce-4d0315f58878-image.png
      labels chang be changed without overwriting the filesystem.
      170f4b52-3d47-40e9-9bcb-e5df55370ce7-image.png

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors