| 46 | |
| 47 | == Working with disk labels and file systems == |
| 48 | |
| 49 | You can use the interactive {{{fdisk}}} utility to create and manage disk labels. |
| 50 | BIOS/MBR and UEFI/GPT labels are supported. When you create a partition with {{{fdisk}}}, |
| 51 | you are also prompted for file system type (The file system will be initialized as part of |
| 52 | creating the partition). |
| 53 | |
| 54 | If you'd like to create a file system on a raw disk, you need to do it by manually |
| 55 | invoking a {{{mk*fs}}} utility. |
| 56 | |
| 57 | == Mounting file systems == |
| 58 | |
| 59 | In order to make use of a file system it needs to be mounted into the filesystem namespace |
| 60 | using the {{{mount}}} command. Typing just {{{mount<enter>}}} prints out a list of mounted |
| 61 | file systems. Te basic syntax to mount a file system is: |
| 62 | |
| 63 | {{{ |
| 64 | # mount <fstype> <service-name> <directory> |
| 65 | }}} |
| 66 | |
| 67 | {{{fstype}}} is the type of the file system (e.g. {{{ext4}}}, {{{mfs}}}), {{{service-name}}} is |
| 68 | the service name of the block device (typically of a partition) and {{{directory}}} is the directory path |
| 69 | to mount on top of. |
| 70 | |
| 71 | You can find the list of available partition block devices in your system by typing: |
| 72 | |
| 73 | {{{ |
| 74 | # loc show-cat partition |
| 75 | }}} |
| 76 | |
| 77 | Unlabeled disks will be represented by one 'fake' partition spanning the entire disk. |