Skip to contentমূল লেখায় যান

Stage 08 · Linuxধাপ 08 · Linux · 7 topics · 33 commands7টি টপিক · 33টি কমান্ড

Disks and Filesystems

Understand disks, filesystems, mounts, swap, and LVM.

UPPERCASE = your own value · red ! = can destroy data · tick a card when you know itUPPERCASE = আপনার নিজের মান · লাল ! = data নষ্ট করতে পারে · জানা হলে কার্ডে টিক দিন

0 / 7 done0 / 7 সম্পন্ন

Disks and Filesystems

lsblk
disks and partitions as a treedisk ও partition tree আকারে
lsblk -f
with filesystem, label, and UUIDfilesystem, label ও UUID-সহ
df -h
free space of the mounted filesystemsmount করা filesystem-এ ফাঁকা জায়গা
du -sh *
the size of each item hereএখানকার প্রতিটি জিনিসের size
sudo fdisk -l
list the partition tablespartition table-এর তালিকা
sudo blkid
the UUID and type of each deviceপ্রতিটি device-এর UUID ও ধরন
findmnt
the mounts as a treemount-গুলো tree আকারে

Source 1সোর্স 1Source 2সোর্স 2Source 3সোর্স 3Source 4সোর্স 4Source 5সোর্স 5Source 6সোর্স 6

Filesystems

df -T
the filesystem type of each mountপ্রতিটি mount-এর filesystem type
/proc/filesystems
the filesystems the kernel supportskernel যেসব filesystem সমর্থন করে
sudo mkfs.ext4 DEV
Warningসতর্কতা: create an ext4 filesystem; erases DEVext4 filesystem বানায়; DEV-এর সব মুছে যায়
sudo mkfs.xfs DEV
Warningসতর্কতা: create an XFS filesystem; erases DEVXFS filesystem বানায়; DEV-এর সব মুছে যায়
sudo fsck DEV
check and repair; unmount it firstপরীক্ষা ও মেরামত করে; আগে unmount করুন
sudo tune2fs -l DEV
details of an ext filesystemext filesystem-এর বিস্তারিত
sudo resize2fs DEV
grow or shrink ext fs; shrink needs unmountext filesystem-এর size বদলায়; ছোট করতে আগে unmount করুন
sudo e2label DEV NAME
set the label of an ext filesystemext filesystem-এর label ঠিক করে

Source 2সোর্স 2Source 7সোর্স 7Source 8সোর্স 8Source 9সোর্স 9Source 10সোর্স 10Source 11সোর্স 11Source 12সোর্স 12Source 13সোর্স 13

Inodes

df -i
inode use of each filesystemপ্রতিটি filesystem-এর inode ব্যবহার
ls -i FILE
the inode number of a filefile-এর inode নম্বর
stat FILE
inode, links, size, timesinode, link, size ও সময়
find / -xdev -inum NUM
find a file by inode numberinode নম্বর দিয়ে file খোঁজে
sudo tune2fs -l DEV | grep -i inode
the inode counts of an ext filesystemext filesystem-এর inode সংখ্যা
find DIR -xdev -type f | wc -l
count the files in a treeএকটি tree-তে file গোনে

Source 2সোর্স 2Source 14সোর্স 14Source 15সোর্স 15Source 16সোর্স 16Source 10সোর্স 10

Mounts

findmnt
the mounts as a treemount-গুলো tree আকারে
mount | column -t
all mounts, in columnsসব mount, column আকারে
sudo mount DEV DIR
mount a device on a directorydevice-কে directory-তে mount করে
sudo umount DIR
unmount itunmount করে
sudo mount -o remount,ro DIR
make a mount read-onlymount-কে read-only করে
/etc/fstab
the mounts made at boot, one per lineboot-এ হওয়া mount, প্রতি লাইনে একটি
sudo mount -a
mount all of fstab; test with findmnt --verifyfstab-এর সব mount করে; পরীক্ষা findmnt --verify দিয়ে
sudo lsof +D DIR
who keeps a mount busyকে mount-টি ব্যস্ত রেখেছে

Source 6সোর্স 6Source 17সোর্স 17Source 18সোর্স 18Source 19সোর্স 19Source 20সোর্স 20Source 21সোর্স 21

Adding Disks

lsblk
find the new disk (for example sdb)নতুন disk খুঁজে বের করে (যেমন sdb)
sudo fdisk DEV
Warningসতর্কতা: edit the partition table of DEVDEV-এর partition table সম্পাদনা করে
sudo partprobe
make the kernel re-read the partitionskernel-কে partition আবার পড়ায়
sudo mkfs.ext4 DEV
Warningসতর্কতা: make a filesystem; erases the partitionfilesystem বানায়; partition-এর সব মুছে যায়
sudo mkdir -p DIR
make the mount pointmount point বানায়
sudo mount DEV DIR
mount itmount করে
sudo blkid DEV
get the UUID for fstabfstab-এর জন্য UUID বের করে
UUID=ID DIR ext4 defaults 0 2
a line for /etc/fstab: mount at boot/etc/fstab-এর লাইন: boot-এ mount

Source 1সোর্স 1Source 4সোর্স 4Source 7সোর্স 7Source 17সোর্স 17Source 5সোর্স 5Source 19সোর্স 19Source 22সোর্স 22

Swap

swapon --show
the active swapচালু swap
free -h
memory and swap usememory ও swap ব্যবহার
sudo fallocate -l 1G /swapfile
create a 1 GiB file (not on Btrfs)১ GiB-এর file বানায় (Btrfs-এ নয়)
sudo chmod 600 /swapfile
only its owner can read and write itশুধু owner পড়তে ও লিখতে পারে
sudo mkswap /swapfile
Warningসতর্কতা: format it as swapswap হিসেবে format করে
sudo swapon /swapfile
turn it onচালু করে
sudo swapoff /swapfile
turn it offবন্ধ করে
/swapfile none swap sw 0 0
a line for /etc/fstab: keep it after reboot/etc/fstab-এর লাইন: reboot-এর পরেও রাখে

Source 23সোর্স 23Source 24সোর্স 24Source 25সোর্স 25Source 26সোর্স 26Source 27সোর্স 27Source 19সোর্স 19

LVM

sudo pvcreate DEV
Warningসতর্কতা: make a physical volumephysical volume বানায়
sudo vgcreate VG DEV
make a volume groupvolume group বানায়
sudo lvcreate -L 10G -n LV VG
make a 10 GB logical volume১০ GB-এর logical volume বানায়
sudo mkfs.ext4 /dev/VG/LV
Warningসতর্কতা: put a filesystem on itতাতে filesystem বসায়
sudo lvextend -r -L +5G /dev/VG/LV
grow by 5 GB, filesystem too৫ GB বাড়ায়, filesystem-সহ
sudo vgextend VG DEV
add a disk to a groupgroup-এ disk যোগ করে
sudo pvs vgs lvs
list the volumes: physical · group · logicalvolume-এর তালিকা: physical · group · logical
sudo lvremove VG/LV
Warningসতর্কতা: delete a logical volumelogical volume মোছে

Source 28সোর্স 28Source 29সোর্স 29Source 30সোর্স 30Source 31সোর্স 31Source 32সোর্স 32Source 33সোর্স 33Source 34সোর্স 34Source 35সোর্স 35Source 7সোর্স 7

3 min read3 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 35 sources35টি সোর্স · updated Nov 2026আপডেট: Nov 2026

Reels on this topicএই টপিকের রিলস

Short videos from other creators, picked for this topic. They are not part of this page's fact-checked text. Nothing loads from YouTube until you press Play.অন্য ক্রিয়েটরদের বানানো ছোট ভিডিও, এই টপিকের জন্য বাছাই করা। এগুলো এই পেজের ফ্যাক্ট-চেক করা লেখার অংশ নয়। চালান বাটন চাপার আগে YouTube থেকে কিছুই লোড হয় না।

Sourcesসোর্স35 · accessed 2026-11-27দেখা হয়েছে: 2026-11-27

Suggest an editএডিটের পরামর্শ দিন
  1. [1]lsblk(8) - list block devices
  2. [2]df(1) - report file system space usage
  3. [3]du(1) - estimate file space usage
  4. [4]fdisk(8) - manipulate disk partition table
  5. [5]blkid(8) - locate/print block device attributes
  6. [6]findmnt(8) - find a filesystem
  7. [7]mke2fs(8) - create an ext2/ext3/ext4 file system
  8. [8]mkfs.xfs(8) - construct an XFS filesystem
  9. [9]fsck(8) - check and repair a Linux filesystem
  10. [10]tune2fs(8) - adjust tunable file system parameters on ext2/ext3/ext4 file systems
  11. [11]resize2fs(8) - ext2/ext3/ext4 file system resizer
  12. [12]e2label(8) - Change the label on an ext2/ext3/ext4 file system
  13. [13]filesystems(5) - Linux filesystem types: ext, ext2, ext3, ext4, hpfs, iso9660, JFS, minix, msdos, ncpfs nfs, ntfs, proc, Reiserfs, smb, sysv, umsdos, vfat, XFS, xiafs
  14. [14]ls(1) - list directory contents
  15. [15]stat(1) - display file or file system status
  16. [16]find(1) - search for files in a directory hierarchy
  17. [17]mount(8) - mount a filesystem
  18. [18]umount(8) - unmount filesystems
  19. [19]fstab(5) - static information about the filesystems
  20. [20]lsof(8) - list open files
  21. [21]column(1) - columnate lists
  22. [22]partprobe(8) - inform the OS of partition table changes
  23. [23]swapon(8) - enable/disable devices and files for paging and swapping
  24. [24]free(1) - Display amount of free and used memory in the system
  25. [25]fallocate(1) - preallocate or deallocate space to a file
  26. [26]mkswap(8) - set up a Linux swap area
  27. [27]chmod(1) - change file mode bits
  28. [28]lvm(8) - lvm — LVM tools
  29. [29]pvcreate(8) - pvcreate — Initialize physical volume(s) for use by LVM
  30. [30]vgcreate(8) - vgcreate — Create a volume group
  31. [31]lvcreate(8) - lvcreate — Create a logical volume
  32. [32]lvextend(8) - lvextend — Add space to a logical volume
  33. [33]vgextend(8) - vgextend — Add physical volumes to a volume group
  34. [34]lvremove(8) - lvremove — Remove logical volume(s) from the system
  35. [35]pvs(8) - pvs — Display information about physical volumes