Re: [PATCH] block: bugfix for Amiga partition overflow check patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Christian,

Am 02.07.2023 um 14:17 schrieb Michael Schmitz:
If you cannot shrink the filesystem, you will have to edit the partition
table to extend p4 to the end of the disk. Just replace the partition 4
pb->pb_Environment[10] (at offset 0x8a8, current value 0x04d50344) by
0x04da02d8. As far as I can see, there is no adjustment to the partition
block checksum required, as the checksummed block of 160 bytes ends just
before the location of the partition's low and high cylinder addresses....

I'd best verify that a patched RDB actually works...

Argh - the checksum is over 160 longwords, not bytes.

Replace the checksum (at offset 0x808, currently 0x25d82b54) by 0x25d32bc0.

With these changes, I get the same size for partition 4 as you got by truncation with the original RDB partition code. That might be the fastest way to get your Linux partition mountable again.

Cheers,

	Michael



Cheers,

    Michael



  11        0    1048575 sr0
   8       32     250880 sdc
   8       33     249856 sdc1
   8       16  234431064 sdb
   8       17  144364512 sdb1
   8       18          1 sdb2
   8       19   18500608 sdb3
   8       20   40717312 sdb4
   8       21   14684160 sdb5
   8       22   16161792 sdb6
   8       48       1440 sdd
   8       49       1439 sdd1




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux