Advertisement
Guest User

Untitled

a guest
May 16th, 2013
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. root@ubuntu:/home/gubuntu/Downloads# sfdisk /dev/sdb < /home/gubuntu/sfdisk_sdb.mod.txt
  2. Checking that no-one is using this disk right now ...
  3. OK
  4.  
  5. Disk /dev/sdb: 1023 cylinders, 122 heads, 62 sectors/track
  6. Old situation:
  7. Units = cylinders of 3872768 bytes, blocks of 1024 bytes, counting from 0
  8.  
  9. Device Boot Start End #cyls #blocks Id System
  10. /dev/sdb1 0+ 2- 3- 8031+ b W95 FAT32
  11. start: (c,h,s) expected (0,0,2) found (0,1,1)
  12. end: (c,h,s) expected (2,15,6) found (62,253,1)
  13. /dev/sdb2 2+ 2- 1- 2047+ da Non-FS data
  14. start: (c,h,s) expected (2,15,7) found (4,15,7)
  15. end: (c,h,s) expected (2,81,9) found (5,20,9)
  16. /dev/sdb3 2+ 3- 1- 2048 da Non-FS data
  17. start: (c,h,s) expected (2,81,13) found (5,20,13)
  18. end: (c,h,s) expected (3,25,16) found (6,25,16)
  19. /dev/sdb4 3+ 486- 484- 1826974 83 Linux
  20. start: (c,h,s) expected (3,25,19) found (6,25,19)
  21. end: (c,h,s) expected (486,33,58) found (972,33,58)
  22. Warning: given size (7744511) exceeds max allowable size (0)
  23.  
  24. sfdisk: bad input
  25.  
  26.  
  27. root@ubuntu:/home/gubuntu/Downloads# e2fsck -f /dev/sdb4
  28. e2fsck 1.42.5 (29-Jul-2012)
  29. Pass 1: Checking inodes, blocks, and sizes
  30. Pass 2: Checking directory structure
  31. Pass 3: Checking directory connectivity
  32. Pass 4: Checking reference counts
  33. Pass 5: Checking group summary information
  34. /dev/sdb4: 17727/114240 files (1.2% non-contiguous), 113856/456743 blocks
  35.  
  36.  
  37. root@ubuntu:/home/gubuntu/Downloads# resize2fs /dev/sdb4
  38. resize2fs 1.42.5 (29-Jul-2012)
  39. The filesystem is already 456743 blocks long. Nothing to do!
  40.  
  41. root@ubuntu:/home/gubuntu/Downloads# fdisk -l
  42.  
  43. Disk /dev/sdb: 3965 MB, 3965190144 bytes
  44. 122 heads, 62 sectors/track, 1023 cylinders, total 7744512 sectors
  45. Units = sectors of 1 * 512 = 512 bytes
  46. Sector size (logical/physical): 512 bytes / 512 bytes
  47. I/O size (minimum/optimal): 512 bytes / 512 bytes
  48. Disk identifier: 0x00000000
  49.  
  50. Device Boot Start End Blocks Id System
  51. /dev/sdb1 1 16063 8031+ b W95 FAT32
  52. /dev/sdb2 16064 20158 2047+ da Non-FS data
  53. /dev/sdb3 20162 24257 2048 da Non-FS data
  54. /dev/sdb4 24260 3678207 1826974 83 Linux
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement