Thursday, January 27, 2011

mount command

Linux file system or file hierarchy is a tree structure. It starts with the root directory / and branches out to other directories. Unlike windows in linux you can change the root directory using chroot command, you probably use in the rescue mode.

Everything in linux is a file.

mount command attaches file systems. see man mount for more details.
mount -t [type] [device/source] [directory/destination]
mount -t ntfs-3g /dev/sda3 /mnt/data

mount iso image files mount -o loop /mnt/data/Videos/Expendables.iso /mnt/data
finally use umount command to detach the filesystem umount /mnt/data

No comments:

Post a Comment

About

Blogger templates