Useful Linux commands. Mounting file sys ...

Useful Linux commands. Mounting file systems

May 24, 2024

# mount /dev/hda1 /mnt/disk
Mount the /dev/hda1 device into a folder named /mnt/disk. the mount point, the /mnt/disk folder, must exist.

# fuser -km /mnt/hda1
Unmount the hda1 device if it is blocked by any process.

# mount -o loop file.iso /mnt/cdrom
Mount file or ISO image to /mnt/cdrom directory

# mount /dev/hdb /mnt/cdrecorder
Mount cdrw or dvdrom

# mount -t vfat /dev/hda5 /mnt/hda5
Mount a partition with FAT32 file system

# mount /dev/cdrom /mnt/cdrom
Mount cdrom or dvdrom

# mount /dev/fd0 /mnt/floppy
Mount floppy disk ( soft disk drive )

# mount /dev/hdc /mnt/cdrecorder
Mount cdrw or dvdrom

# mount /dev/sda1 /mnt/usbdisk
Mount a USB device

# mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share
Mount Windows network file system (SMB/CIFS)

# umount -n /mnt/hda2
Unmount without writing to the /etc/mtab file, used in situations where a file is read-only or the hard disk is full

# umount /dev/hda2
Unmount the hda2 disk, it is necessary to exit the /mnt/hda2 mount point first

Enjoy this post?

Buy orik a tea