Advertisement
mateorod

fdisking...

Feb 24th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. adb devices
  2. List of devices attached
  3. 0000000000000000 recovery
  4.  
  5. mateor@mateor-HP-Pavilion-dv6700:~/android/autopatcher/master/new/auto-patcher$ adb shell
  6. ~ # fdisk /dev/block/mmcblk0
  7.  
  8. The number of cylinders for this disk is set to 242432.
  9. There is nothing wrong with that, but this is larger than 1024,
  10. and could in certain setups cause problems with:
  11. 1) software that runs at boot time (e.g., old versions of LILO)
  12. 2) booting and partitioning software from other OSs
  13. (e.g., DOS FDISK, OS/2 FDISK)
  14.  
  15. Command (m for help): d
  16. Partition number (1-8): 4
  17.  
  18. Command (m for help): p
  19.  
  20. Disk /dev/block/mmcblk0: 7944 MB, 7944011776 bytes
  21. 4 heads, 16 sectors/track, 242432 cylinders
  22. Units = cylinders of 64 * 512 = 32768 bytes
  23.  
  24. Device Boot Start End Blocks Id System
  25. /dev/block/mmcblk0p1 * 1 2260 72261 c Win95 FAT32 (LBA)
  26. Partition 1 does not end on cylinder boundary
  27. /dev/block/mmcblk0p2 2260 4519 72292+ c Win95 FAT32 (LBA)
  28. Partition 2 does not end on cylinder boundary
  29. /dev/block/mmcblk0p3 4486 14024 305235 83 Linux
  30. Partition 3 does not end on cylinder boundary
  31.  
  32. Command (m for help): p
  33.  
  34. Disk /dev/block/mmcblk0: 7944 MB, 7944011776 bytes
  35. 4 heads, 16 sectors/track, 242432 cylinders
  36. Units = cylinders of 64 * 512 = 32768 bytes
  37.  
  38. Device Boot Start End Blocks Id System
  39. /dev/block/mmcblk0p1 * 1 2260 72261 c Win95 FAT32 (LBA)
  40. Partition 1 does not end on cylinder boundary
  41. /dev/block/mmcblk0p2 2260 4519 72292+ c Win95 FAT32 (LBA)
  42. Partition 2 does not end on cylinder boundary
  43. /dev/block/mmcblk0p3 4486 14024 305235 83 Linux
  44. Partition 3 does not end on cylinder boundary
  45.  
  46. Command (m for help): n
  47. Command action
  48. e extended
  49. p primary partition (1-4)
  50. e
  51. Selected partition 4
  52. First cylinder (14024-242432, default 14024): Using default value 14024
  53. Last cylinder or +size or +sizeM or +sizeK (14024-242432, default 242432): Using default value 242432
  54.  
  55. Command (m for help): n
  56. First cylinder (14024-242432, default 14024): Using default value 14024
  57. Last cylinder or +size or +sizeM or +sizeK (14024-242432, default 242432): +57
  58.  
  59. Command (m for help): n
  60. First cylinder (14082-242432, default 14082): Using default value 14082
  61. Last cylinder or +size or +sizeM or +sizeK (14082-242432, default 242432): +121
  62.  
  63. Command (m for help): n
  64. First cylinder (14204-242432, default 14204): Using default value 14204
  65. Last cylinder or +size or +sizeM or +sizeK (14204-242432, default 242432): +44
  66.  
  67. Command (m for help): n
  68. First cylinder (14249-242432, default 14249): Using default value 14249
  69. Last cylinder or +size or +sizeM or +sizeK (14249-242432, default 242432): Using default value 242432
  70.  
  71. Command (m for help): t
  72. Partition number (1-8): 8
  73. Hex code (type L to list codes): c
  74. Changed system type of partition 8 to c (Win95 FAT32 (LBA))
  75.  
  76. Command (m for help): w
  77. The partition table has been altered!
  78.  
  79. Calling ioctl() to re-read partition table
  80. fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
  81.  
  82. ... A REBOOT ...
  83.  
  84. adb shell
  85. ~ # fdisk -l /dev/block/mmcblk0
  86.  
  87. Disk /dev/block/mmcblk0: 7944 MB, 7944011776 bytes
  88. 4 heads, 16 sectors/track, 242432 cylinders
  89. Units = cylinders of 64 * 512 = 32768 bytes
  90.  
  91. Device Boot Start End Blocks Id System
  92. /dev/block/mmcblk0p1 * 1 2260 72261 c Win95 FAT32 (LBA)
  93. Partition 1 does not end on cylinder boundary
  94. /dev/block/mmcblk0p2 2260 4519 72292+ c Win95 FAT32 (LBA)
  95. Partition 2 does not end on cylinder boundary
  96. /dev/block/mmcblk0p3 4486 14024 305235 83 Linux
  97. Partition 3 does not end on cylinder boundary
  98. /dev/block/mmcblk0p4 14024 242432 7309068+ 5 Extended
  99. /dev/block/mmcblk0p5 14024 14081 1828+ 83 Linux
  100. /dev/block/mmcblk0p6 14082 14203 3896 83 Linux
  101. /dev/block/mmcblk0p7 14204 14248 1432 83 Linux
  102. /dev/block/mmcblk0p8 14249 242432 7301880 c Win95 FAT32 (LBA)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement