Exkurs Partionieren, Formatieren und Mounten

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Wir hängen eine Disk an den Client

  • Ändern
    • Massenspeicher
      • Controller: SATA
        • +
          • Erzeugen
            • VDI
              • Volle Grösse nicht ankreuzen
                  • 20GB
                    • Auswählen
                      • OK

Fdisk

Int den interaktiven Modus gelangen
  • fdisk /dev/sdb
Print Partition Table
Command (m for help): p
Disk /dev/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors
Disk model: VBOX HARDDISK   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4ae7dc2c
Partition erstellen
Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-41943039, default 2048): 2048
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-41943039, default 41943039): +5G

Created a new partition 1 of type 'Linux' and of size 5 GiB.
Partionstyp ändern
Command (m for help): t
Selected partition 1
Hex code or alias (type L to list all): 7
Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'.