daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Disk /dev/md0: 3667 MB, 3667853312 bytes
  2. 2 heads, 4 sectors/track, 895472 cylinders, total 7163776 sectors
  3. Units = sectors of 1 * 512 = 512 bytes
  4. Sector size (logical/physical): 512 bytes / 4096 bytes
  5. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  6. Disk identifier: 0x00000000
  7.  
  8. Disk /dev/md0 doesn't contain a valid partition table
  9.    
  10. $ dd if=/dev/zero of=/tmp/file bs=4096 count=$((1024*1024 / 4096))
  11. $ mkfs -t ext4 /tmp/file
  12. mke2fs 1.42.9 (4-Feb-2014)
  13. /tmp/file is not a block special device.
  14. Proceed anyway? (y,n) y
  15. $ fdisk -l !$
  16. fdisk -l /tmp/file
  17.  
  18. Disk /tmp/file: 1 MB, 1048576 bytes
  19. 255 heads, 63 sectors/track, 0 cylinders, total 2048 sectors
  20. Units = sectors of 1 * 512 = 512 bytes
  21. Sector size (logical/physical): 512 bytes / 512 bytes
  22. I/O size (minimum/optimal): 512 bytes / 512 bytes
  23. Disk identifier: 0x00000000
  24.  
  25. Disk /tmp/file doesn't contain a valid partition table
  26.    
  27. parted /dev/md0 mklabel msdos
  28.    
  29. $ fdisk /tmp/file
  30. Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
  31. Building a new DOS disklabel with disk identifier 0xb1f4c1d2.
  32. Changes will remain in memory only, until you decide to write them.
  33. After that, of course, the previous content won't be recoverable.
  34.  
  35. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
  36. You must set cylinders.
  37. You can do this from the extra functions menu.
  38.  
  39. Command (m for help): w
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top