Linux Commands Helper
💬 Your AI-powered Linux assistant
mount Command - Mount Filesystems
The mount command is used to attach a filesystem to a specified directory in the Linux directory tree. It is commonly used to mount disks, partitions, USB drives, and network shares.
Syntax
mount [options] device directory
Examples
mount /dev/sdb1 /mnt/usb
Mount the device /dev/sdb1
to the directory /mnt/usb
.
mount -t vfat /dev/sdc1 /media/flash
Mount a FAT-formatted USB drive to /media/flash
.
mount -o ro,loop file.iso /mnt/iso
Mount an ISO file as a read-only loop device.
Notes
- Root privileges are usually required to mount filesystems.
- Unmount filesystems with the
umount
command. - Check
/etc/fstab
for persistent mount configurations.