Changes between Version 14 and Version 15 of UsersGuide/DisksFileSystems


Ignore:
Timestamp:
2016-01-22T13:58:15Z (8 years ago)
Author:
Jiri Svoboda
Comment:

Fdisk, mounting file systems

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide/DisksFileSystems

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