Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@partedmagic:~# sudo fdisk /dev/sda
- Welcome to fdisk (util-linux 2.23.2).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Command (m for help): m
- Command action
- a toggle a bootable flag
- b edit bsd disklabel
- c toggle the dos compatibility flag
- d delete a partition
- g create a new empty GPT partition table
- G create an IRIX (SGI) partition table
- l list known partition types
- m print this menu
- n add a new partition
- o create a new empty DOS partition table
- p print the partition table
- q quit without saving changes
- s create a new empty Sun disklabel
- t change a partition's system id
- u change display/entry units
- v verify the partition table
- w write table to disk and exit
- x extra functionality (experts only)
- Command (m for help): d
- Partition number (1,2, default 2): 1
- Partition 1 is deleted
- Command (m for help): d
- Selected partition 2
- Partition 2 is deleted
- Command (m for help): d
- No partition is defined yet!
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- root@partedmagic:~# fdisk -l
- Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk label type: dos
- Disk identifier: 0x56ed0d2d
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 1026047 512000 7 HPFS/NTFS/exFAT
- /dev/sda2 1026048 125042687 62008320 7 HPFS/NTFS/exFAT
- Disk /dev/sdb: 1977 MB, 1977614336 bytes, 3862528 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk label type: dos
- Disk identifier: 0x000678ad
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 2048 3862527 1930240 c W95 FAT32 (LBA)
- root@partedmagic:~# fdisk -l
- Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk label type: dos
- Disk identifier: 0x56ed0d2d
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 1026047 512000 7 HPFS/NTFS/exFAT
- /dev/sda2 1026048 125042687 62008320 7 HPFS/NTFS/exFAT
- Disk /dev/sdb: 1977 MB, 1977614336 bytes, 3862528 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk label type: dos
- Disk identifier: 0x000678ad
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 2048 3862527 1930240 c W95 FAT32 (LBA)
- root@partedmagic:~# fdisk -l | grep '^Disk'
- Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
- Disk label type: dos
- Disk identifier: 0x56ed0d2d
- Disk /dev/sdb: 1977 MB, 1977614336 bytes, 3862528 sectors
- Disk label type: dos
- Disk identifier: 0x000678ad
- root@partedmagic:~# fdisk /dev/sda
- Welcome to fdisk (util-linux 2.23.2).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Command (m for help): m
- Command action
- a toggle a bootable flag
- b edit bsd disklabel
- c toggle the dos compatibility flag
- d delete a partition
- g create a new empty GPT partition table
- G create an IRIX (SGI) partition table
- l list known partition types
- m print this menu
- n add a new partition
- o create a new empty DOS partition table
- p print the partition table
- q quit without saving changes
- s create a new empty Sun disklabel
- t change a partition's system id
- u change display/entry units
- v verify the partition table
- w write table to disk and exit
- x extra functionality (experts only)
- Command (m for help): d
- Partition number (1,2, default 2): 1
- Partition 1 is deleted
- Command (m for help): d
- Selected partition 2
- Partition 2 is deleted
- Command (m for help): g
- Building a new GPT disklabel (GUID: 721DB2E9-AF1C-455D-BA6B-658464263959)
- Command (m for help): n
- Partition number (1-128, default 1): 1
- First sector (2048-125045390, default 2048): 2048
- Last sector, +sectors or +size{K,M,G,T,P} (2048-125045390, default 125045390): 200000
- Created partition 1
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- root@partedmagic:~# fdisk -l
- Disk /dev/sda: 64.0 GB, 64023257088 bytes, 125045424 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk label type: dos
- Disk identifier: 0x56ed0d2d
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 1026047 512000 7 HPFS/NTFS/exFAT
- /dev/sda2 1026048 125042687 62008320 7 HPFS/NTFS/exFAT
- Disk /dev/sdb: 1977 MB, 1977614336 bytes, 3862528 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk label type: dos
- Disk identifier: 0x000678ad
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 2048 3862527 1930240 c W95 FAT32 (LBA)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement