[Cialug] Aligning blocks with fdisk
Mike Hughes
mike at visionary.com
Thu Sep 24 13:18:58 UTC 2020
Hi group,
In attempting to grow a partition the boundaries seem to be different and I've lost access to the underlying filesystem.
This is a screenshot from the original pre-operation disk, taken from the built-in fdisk on CentOS 5 (yes I know how outdated this is):
[Cent-5:root at larry2 ~]# df -hPT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 ext3 8.4G 7.9G 75M 100% /
/dev/sda1 ext3 99M 41M 54M 43% /boot
[Cent-5:root at larry2 ~]# fdisk -l
Disk /dev/sda: 108 MB, 108134400 bytes
4 heads, 32 sectors/track, 1650 cylinders
Units = cylinders of 128 * 512 = 65536 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 2 1633 104448 83 Linux
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 1131 9076736 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 1131 1261 1048640 5 Extended
Partition 2 does not end on cylinder boundary.
/dev/sdb5 1131 1261 1048576 82 Linux swap / Solaris
And this is what I get when I attempt to recreate the partition from a live rescue disk running CentOS 6:
[cid:2014d7e3-75b8-4e7a-8a01-3ded8a47c082]
So the original one ended at 9076736, but the new one, with the same number of cylinders is ending at 9083733.
Anyone familiar with the gymnastics necessary to bring this back online?
Michael Hughes // System Administrator
Visionary Services, Inc.
300 East Locust St., Suite 250
Des Moines, IA 50309
Phone: 515.369.3545 ext.116<tel:515-369-3545,116>
Toll-free: 888.303.2848 ext.116<tel:888-303-2848,116>
Cell 515.661.4343<tel:515-661-4343>
Website: visionary.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 39239 bytes
Desc: image.png
URL: <http://www.cialug.org/pipermail/cialug/attachments/20200924/cdd505eb/attachment-0001.png>
More information about the Cialug
mailing list