# parted /dev/sdb
GNU Parted 3.6
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) mkpart efi fat32 1mib 11mib
(parted) mkpart root ext4 11mib 100%
(parted) unit mib
(parted) p
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdb: 2048MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1.00MiB 11.0MiB 10.0MiB fat32 efi msftdata
2 11.0MiB 2047MiB 2036MiB ext4 root
(parted) set 1 esp on
(parted) p
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdb: 2048MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1.00MiB 11.0MiB 10.0MiB fat32 efi boot, esp
2 11.0MiB 2047MiB 2036MiB ext4 root
(parted)
# создание файловых систем на разделах 1(efi) и 2(корневая файловая система)
# mkfs.vfat /dev/sdb1
# mkfs.ext4 -m0 /dev/sdb2
${var//substring/replacement} # заменяет все substring на replacement
${var/substring/replacement} # заменяет только первый substring на replacement
/* Context menu */
#context-navigation,#context-sep-navigation,#context-savepage,#context-pocket,#context-sendpagetodevice,#context-sep-sendpagetodevice,#context-selectall,#context-print-selection,#context-take-screenshot,#context-viewsource { display: none; }
/* Link menu */
#context-bookmarklink,#context-savelink,#context-savelinktopocket,#context-searchselect,#context-sendlinktodevice { display: none; }