[Cialug] Aligning blocks with fdisk
Andrew Denner
linux-list at upeke.com
Thu Sep 24 14:35:30 UTC 2020
The categorical first question, do you have a backup of the information on
the disk?
On Thu, Sep 24, 2020 at 8:19 AM Mike Hughes <mike at visionary.com> wrote:
> 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
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> https://www.cialug.org/cgi-bin/mailman/listinfo/cialug
>
More information about the Cialug
mailing list