0
Thanks

A few words of thanks would be greatly appreciated.

Managing disks and partitions with the Linux Shell






Here are the key controls for managing disks & partitions on Linux
  • mount: Displays the list of mounted filesystems
  • mount device dir: Mounts a file system (from a peripheral device) on a directory
  • mount-t msdos device dir: Mount a DOS partition
    • df: Displays the space used/free on the mounted file systems.
    • -h stand for sizes in KB
    • -h (Linux & BSD) stand for the most significant sizes of the unit
  • fdisk device: Changing the partition (MBR)
  • pdisk device: Changing the partitioning (Apple Partition Map -> Mac OS X & BSD)
  • disklabel device: Changing the partitioning (for BSD disklabel)
  • newfs device: Formatting a partition
  • mkfs device: Formatting a partition
    • /etc/fstab: Correspondence between devices and mount points and the mounting options,


Note that: /etc/fstab is also used to auto mount partition at startup.




Related FAQ:
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team

Original article published by . Translated by jak58. Latest update on by jak58.

This document, titled "Managing disks and partitions with the Linux Shell," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).

0 Comments