1. lubuntu@lubuntu:~$ sudo fdisk /dev/sda
  2. Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
  3. Building a new DOS disklabel with disk identifier 0x8a75eca1.
  4. Changes will remain in memory only, until you decide to write them.
  5. After that, of course, the previous content won't be recoverable.
  6. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
  7. Command (m for help): w
  8. The partition table has been altered!
  9. Calling ioctl() to re-read partition table.
  10. Syncing disks.
  11. lubuntu@lubuntu:~$ sudo fdisk /dev/sda
  12. Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
  13. Building a new DOS disklabel with disk identifier 0xb9107636.
  14. Changes will remain in memory only, until you decide to write them.
  15. After that, of course, the previous content won't be recoverable.
  16. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
  17. Command (m for help): q
  18. lubuntu@lubuntu:~$ sudo fdisk /dev/sda
  19. Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
  20. Building a new DOS disklabel with disk identifier 0x0cd406b1.
  21. Changes will remain in memory only, until you decide to write them.
  22. After that, of course, the previous content won't be recoverable.
  23. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
  24. Command (m for help): w
  25. The partition table has been altered!
  26. Calling ioctl() to re-read partition table.
  27. Syncing disks.
  28. lubuntu@lubuntu:~$ sudo fdisk /dev/sda n
  29. Usage:
  30. fdisk [options] <disk> change partition table
  31. fdisk [options] -l <disk> list partition table(s)
  32. fdisk -s <partition> give partition size(s) in blocks
  33. Options:
  34. -b <size> sector size (512, 1024, 2048 or 4096)
  35. -c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
  36. -h print this help text
  37. -u[=<unit>] display units: 'cylinders' or 'sectors' (default)
  38. -v print program version
  39. -C <number> specify the number of cylinders
  40. -H <number> specify the number of heads
  41. -S <number> specify the number of sectors per track
  42. lubuntu@lubuntu:~$ sudo fdisk /dev/sda w
  43. Usage:
  44. fdisk [options] <disk> change partition table
  45. fdisk [options] -l <disk> list partition table(s)
  46. fdisk -s <partition> give partition size(s) in blocks
  47. Options:
  48. -b <size> sector size (512, 1024, 2048 or 4096)
  49. -c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
  50. -h print this help text
  51. -u[=<unit>] display units: 'cylinders' or 'sectors' (default)
  52. -v print program version
  53. -C <number> specify the number of cylinders
  54. -H <number> specify the number of heads
  55. -S <number> specify the number of sectors per track
  56. lubuntu@lubuntu:~$ sudo mkfs.vfat /dev/sda
  57. mkfs.fat 3.0.26 (2014-03-07)
  58. mkfs.vfat: Device partition expected, not making filesystem on entire device '/dev/sda' (use -I to override)
  59. lubuntu@lubuntu:~$ sudo fdisk -b /dev/sda
  60. Usage:
  61. fdisk [options] <disk> change partition table
  62. fdisk [options] -l <disk> list partition table(s)
  63. fdisk -s <partition> give partition size(s) in blocks
  64. Options:
  65. -b <size> sector size (512, 1024, 2048 or 4096)
  66. -c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
  67. -h print this help text
  68. -u[=<unit>] display units: 'cylinders' or 'sectors' (default)
  69. -v print program version
  70. -C <number> specify the number of cylinders
  71. -H <number> specify the number of heads
  72. -S <number> specify the number of sectors per track
  73. lubuntu@lubuntu:~$ sudo fdisk -c /dev/sda
  74. Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
  75. Building a new DOS disklabel with disk identifier 0x7d306087.
  76. Changes will remain in memory only, until you decide to write them.
  77. After that, of course, the previous content won't be recoverable.
  78. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
  79. Command (m for help): w
  80. The partition table has been altered!
  81. Calling ioctl() to re-read partition table.
  82. Syncing disks.
  83. lubuntu@lubuntu:~$ sudo cfdisk /dev/sda
  84. lubuntu@lubuntu:~$ lsblk
  85. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  86. sda 8:0 0 279,5G 0 disk
  87. sr0 11:0 1 598,2M 0 rom /cdrom
  88. loop0 7:0 0 542,3M 1 loop /rofs
  89. zram0 251:0 0 247,1M 0 disk [SWAP]

"no volume" found on hdd