Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ubuntu:~$ parted --help
- Usage: parted [OPTION]... [DEVICE [COMMAND [PARAMETERS]...]...]
- Apply COMMANDs with PARAMETERS to DEVICE. If no COMMAND(s) are given, run in
- interactive mode.
- OPTIONs:
- -h, --help displays this help message
- -l, --list lists partition layout on all block devices
- -m, --machine displays machine parseable output
- -s, --script never prompts for user intervention
- -v, --version displays the version
- -a, --align=[none|cyl|min|opt] alignment for new partitions
- COMMANDs:
- align-check TYPE N check partition N for TYPE(min|opt)
- alignment
- help [COMMAND] print general help, or help on
- COMMAND
- mklabel,mktable LABEL-TYPE create a new disklabel (partition
- table)
- mkpart PART-TYPE [FS-TYPE] START END make a partition
- name NUMBER NAME name partition NUMBER as NAME
- print [devices|free|list,all|NUMBER] display the partition table,
- available devices, free space, all found partitions, or a particular
- partition
- quit exit program
- rescue START END rescue a lost partition near START
- and END
- resizepart NUMBER END resize partition NUMBER
- rm NUMBER delete partition NUMBER
- select DEVICE choose the device to edit
- disk_set FLAG STATE change the FLAG on selected device
- disk_toggle [FLAG] toggle the state of FLAG on selected
- device
- set NUMBER FLAG STATE change the FLAG on partition NUMBER
- toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
- NUMBER
- unit UNIT set the default unit to UNIT
- version display the version number and
- copyright information of GNU Parted
- Report bugs to bug-parted@gnu.org
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$ sudo parted -ls
- Model: ATA Samsung SSD 850 (scsi)
- Disk /dev/sda: 256GB
- Sector size (logical/physical): 512B/512B
- Partition Table: gpt
- Disk Flags:
- Number Start End Size File system Name Flags
- 1 1049kB 473MB 472MB ntfs Basic data partition hidden, diag
- 2 473MB 578MB 105MB fat32 EFI system partition boot, esp
- 3 578MB 595MB 16.8MB Microsoft reserved partition msftres
- 4 595MB 256GB 255GB ntfs Basic data partition msftdata
- Model: ATA CT250BX100SSD1 (scsi)
- Disk /dev/sdb: 250GB
- Sector size (logical/physical): 512B/512B
- Partition Table: msdos
- Disk Flags:
- Number Start End Size Type File system Flags
- 1 1049kB 600MB 599MB primary fat32 boot
- 2 600MB 16.6GB 16.0GB primary linux-swap(v1)
- 3 16.6GB 250GB 233GB extended
- 5 16.6GB 250GB 233GB logical ext4
- Model: ATA WDC WD10EZEX-00B (scsi)
- Disk /dev/sdc: 1000GB
- Sector size (logical/physical): 512B/4096B
- Partition Table: gpt
- Disk Flags:
- Number Start End Size File system Name Flags
- 1 1049kB 524GB 524GB ntfs Basic data partition msftdata
- 2 524GB 1000GB 476GB ext4
- Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.
- Model: ASUS DRW-24F1ST c (scsi)
- Disk /dev/sr0: 1513MB
- Sector size (logical/physical): 2048B/2048B
- Partition Table: mac
- Disk Flags:
- Number Start End Size File system Name Flags
- 1 2048B 6143B 4096B Apple
- 2 1499MB 1501MB 2425kB EFI
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$ sudo lsblk -f
- NAME FSTYPE LABEL UUID MOUNTPOINT
- sda
- ├─sda1 ntfs Recovery BAB4D580B4D54015
- ├─sda2 vfat C0D6-29DC
- ├─sda3
- └─sda4 ntfs Windows C804D78D04D77D3E
- sdb
- ├─sdb1 vfat 29B5-C284
- ├─sdb2 swap 8c8ffb3f-e979-4d0b-806f-b24ad949946b [SWAP]
- ├─sdb3
- └─sdb5 ext4 8ea34311-c1e3-4e80-9f4c-368abc9e9ed3
- sdc
- ├─sdc1 ntfs Windows Hard Drive A2B49BFFB49BD45F
- └─sdc2 ext4 18e983be-738c-43d1-a944-f2165fa2d00e
- sr0 iso9660 Ubuntu 16.04.1 LTS amd64 2016-07-19-21-27-51-00 /cdrom
- loop0 squashfs /rofs
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$ sudo lsblk -m
- NAME SIZE OWNER GROUP MODE
- sda 238.5G root disk brw-rw----
- ├─sda1 450M root disk brw-rw----
- ├─sda2 100M root disk brw-rw----
- ├─sda3 16M root disk brw-rw----
- └─sda4 237.9G root disk brw-rw----
- sdb 232.9G root disk brw-rw----
- ├─sdb1 571M root disk brw-rw----
- ├─sdb2 14.9G root disk brw-rw----
- ├─sdb3 1K root disk brw-rw----
- └─sdb5 217.4G root disk brw-rw----
- sdc 931.5G root disk brw-rw----
- ├─sdc1 488.3G root disk brw-rw----
- └─sdc2 443.2G root disk brw-rw----
- sr0 1.4G root cdrom brw-rw----
- loop0 1.4G root disk brw-rw----
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$
- ubuntu@ubuntu:~$ df
- Filesystem 1K-blocks Used Available Use% Mounted on
- udev 8132648 0 8132648 0% /dev
- tmpfs 1629456 9800 1619656 1% /run
- /dev/sr0 1477840 1477840 0 100% /cdrom
- /dev/loop0 1425792 1425792 0 100% /rofs
- /cow 8147276 47896 8099380 1% /
- tmpfs 8147276 340 8146936 1% /dev/shm
- tmpfs 5120 8 5112 1% /run/lock
- tmpfs 8147276 0 8147276 0% /sys/fs/cgroup
- tmpfs 8147276 132 8147144 1% /tmp
- tmpfs 1629456 56 1629400 1% /run/user/999
- ubuntu@ubuntu:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement