hanslovsky

partition table robert external

Dec 1st, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.39 KB | None | 0 0
  1. $ sudo /sbin/parted /dev/sdb                                                                                                                                  
  2.                          
  3. GNU Parted 3.2
  4. Using /dev/sdb
  5. Welcome to GNU Parted! Type 'help' to view a list of commands.
  6. (parted) h                                                                
  7.   align-check TYPE N                        check partition N for TYPE(min|opt) alignment
  8.   help [COMMAND]                           print general help, or help on COMMAND
  9.   mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)
  10.   mkpart PART-TYPE [FS-TYPE] START END     make a partition
  11.   name NUMBER NAME                         name partition NUMBER as NAME
  12.   print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all found partitions, or a particular partition
  13.   quit                                     exit program
  14.   rescue START END                         rescue a lost partition near START and END
  15.   resizepart NUMBER END                    resize partition NUMBER
  16.   rm NUMBER                                delete partition NUMBER
  17.   select DEVICE                            choose the device to edit
  18.   disk_set FLAG STATE                      change the FLAG on selected device
  19.   disk_toggle [FLAG]                       toggle the state of FLAG on selected device
  20.   set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  21.   toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER
  22.   unit UNIT                                set the default unit to UNIT
  23.   version                                  display the version number and copyright information of GNU Parted
  24. (parted) u                                                                
  25. Unit?  [compact]? b                                                      
  26. (parted) print
  27. Model: WD Elements 1048 (scsi)
  28. Disk /dev/sdb: 2000396746752B
  29. Sector size (logical/physical): 512B/512B
  30. Partition Table: gpt
  31. Disk Flags:
  32.  
  33. Number  Start           End             Size            File system  Name                  Flags
  34.  1      20480B          209735679B      209715200B      fat32        EFI System Partition  boot, esp
  35.  2      209735680B      2000262508543B  2000052772864B               WD_Elements
  36.  3      2000262508544B  2000396726271B  134217728B      hfs+         Booter
Advertisement
Add Comment
Please, Sign In to add comment