Exkurs Partionieren, Formatieren und Mounten: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Fdisk) |
(→Fdisk) |
||
| Zeile 39: | Zeile 39: | ||
Hex code or alias (type L to list all): '''7''' | Hex code or alias (type L to list all): '''7''' | ||
Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'. | Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'. | ||
| + | ;Weiter Partitionen | ||
| + | Command (m for help): '''n''' | ||
| + | Partition type | ||
| + | p primary (1 primary, 0 extended, 3 free) | ||
| + | e extended (container for logical partitions) | ||
| + | Select (default p): | ||
| + | |||
| + | Using default response p. | ||
| + | Partition number (2-4, default 2): | ||
| + | First sector (10487808-41943039, default 10487808): | ||
| + | Last sector, +/-sectors or +/-size{K,M,G,T,P} (10487808-41943039, default 41943039): '''+10G''' | ||
| + | |||
| + | Created a new partition 2 of type 'Linux' and of size 10 GiB. | ||
| + | |||
| + | Command (m for help): '''n''' | ||
| + | Partition type | ||
| + | p primary (2 primary, 0 extended, 2 free) | ||
| + | e extended (container for logical partitions) | ||
| + | Select (default p): | ||
| + | |||
| + | Using default response p. | ||
| + | Partition number (3,4, default 3): | ||
| + | First sector (31459328-41943039, default 31459328): | ||
| + | Last sector, +/-sectors or +/-size{K,M,G,T,P} (31459328-41943039, default 41943039): | ||
| + | |||
| + | Created a new partition 3 of type 'Linux' and of size 5 GiB. | ||
| + | |||
| + | Command (m for help): '''t''' | ||
| + | Partition number (1-3, default 3): | ||
| + | Hex code or alias (type L to list all): '''82''' | ||
| + | |||
| + | Changed type of partition 'Linux' to 'Linux swap / Solaris'. | ||
| + | ;Resulat anschauen | ||
| + | Command (m for help): '''p''' | ||
| + | <pre> | ||
| + | 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 | ||
| + | |||
| + | Device Boot Start End Sectors Size Id Type | ||
| + | /dev/sdb1 2048 10487807 10485760 5G 7 HPFS/NTFS/exFAT | ||
| + | /dev/sdb2 10487808 31459327 20971520 10G 83 Linux | ||
| + | /dev/sdb3 31459328 41943039 10483712 5G 82 Linux swap / Solaris | ||
| + | </pre> | ||
| + | ;Abspeichern | ||
| + | Command (m for help): w | ||
| + | The partition table has been altered. | ||
| + | Calling ioctl() to re-read partition table. | ||
| + | Syncing disks. | ||
Version vom 21. April 2026, 09:33 Uhr
Wir hängen eine Disk an den Client
- Ändern
- Massenspeicher
- Controller: SATA
- +
- Erzeugen
- VDI
- Volle Grösse nicht ankreuzen
- 20GB
- Auswählen
- OK
- Auswählen
- 20GB
- Volle Grösse nicht ankreuzen
- VDI
- Erzeugen
- +
- Controller: SATA
- Massenspeicher
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'.
- Weiter Partitionen
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (2-4, default 2):
First sector (10487808-41943039, default 10487808):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (10487808-41943039, default 41943039): +10G
Created a new partition 2 of type 'Linux' and of size 10 GiB.
Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (3,4, default 3):
First sector (31459328-41943039, default 31459328):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (31459328-41943039, default 41943039):
Created a new partition 3 of type 'Linux' and of size 5 GiB.
Command (m for help): t Partition number (1-3, default 3): Hex code or alias (type L to list all): 82 Changed type of partition 'Linux' to 'Linux swap / Solaris'.
- Resulat anschauen
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 Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 10487807 10485760 5G 7 HPFS/NTFS/exFAT /dev/sdb2 10487808 31459327 20971520 10G 83 Linux /dev/sdb3 31459328 41943039 10483712 5G 82 Linux swap / Solaris
- Abspeichern
Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.