- lubuntu@lubuntu:~$ sudo fdisk /dev/sda
- Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x8a75eca1.
- Changes will remain in memory only, until you decide to write them.
- After that, of course, the previous content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- lubuntu@lubuntu:~$ sudo fdisk /dev/sda
- Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0xb9107636.
- Changes will remain in memory only, until you decide to write them.
- After that, of course, the previous content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- Command (m for help): q
- lubuntu@lubuntu:~$ sudo fdisk /dev/sda
- Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x0cd406b1.
- Changes will remain in memory only, until you decide to write them.
- After that, of course, the previous content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- lubuntu@lubuntu:~$ sudo fdisk /dev/sda n
- Usage:
- fdisk [options] <disk> change partition table
- fdisk [options] -l <disk> list partition table(s)
- fdisk -s <partition> give partition size(s) in blocks
- Options:
- -b <size> sector size (512, 1024, 2048 or 4096)
- -c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
- -h print this help text
- -u[=<unit>] display units: 'cylinders' or 'sectors' (default)
- -v print program version
- -C <number> specify the number of cylinders
- -H <number> specify the number of heads
- -S <number> specify the number of sectors per track
- lubuntu@lubuntu:~$ sudo fdisk /dev/sda w
- Usage:
- fdisk [options] <disk> change partition table
- fdisk [options] -l <disk> list partition table(s)
- fdisk -s <partition> give partition size(s) in blocks
- Options:
- -b <size> sector size (512, 1024, 2048 or 4096)
- -c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
- -h print this help text
- -u[=<unit>] display units: 'cylinders' or 'sectors' (default)
- -v print program version
- -C <number> specify the number of cylinders
- -H <number> specify the number of heads
- -S <number> specify the number of sectors per track
- lubuntu@lubuntu:~$ sudo mkfs.vfat /dev/sda
- mkfs.fat 3.0.26 (2014-03-07)
- mkfs.vfat: Device partition expected, not making filesystem on entire device '/dev/sda' (use -I to override)
- lubuntu@lubuntu:~$ sudo fdisk -b /dev/sda
- Usage:
- fdisk [options] <disk> change partition table
- fdisk [options] -l <disk> list partition table(s)
- fdisk -s <partition> give partition size(s) in blocks
- Options:
- -b <size> sector size (512, 1024, 2048 or 4096)
- -c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
- -h print this help text
- -u[=<unit>] display units: 'cylinders' or 'sectors' (default)
- -v print program version
- -C <number> specify the number of cylinders
- -H <number> specify the number of heads
- -S <number> specify the number of sectors per track
- lubuntu@lubuntu:~$ sudo fdisk -c /dev/sda
- Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
- Building a new DOS disklabel with disk identifier 0x7d306087.
- Changes will remain in memory only, until you decide to write them.
- After that, of course, the previous content won't be recoverable.
- Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- lubuntu@lubuntu:~$ sudo cfdisk /dev/sda
- lubuntu@lubuntu:~$ lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 0 279,5G 0 disk
- sr0 11:0 1 598,2M 0 rom /cdrom
- loop0 7:0 0 542,3M 1 loop /rofs
- zram0 251:0 0 247,1M 0 disk [SWAP]
"no volume" found on hdd