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