bash script to modify partition table in MBR
this script can modify/dump the partition table
the script is in https://code.google.com/p/peter/source/browse/trunk/PeterI/utils/pt
only two ways to use it:
1) Dump the partition table
./utils/pt -l hd.img
2) modifiy it
./utils/pt -c hd.img 3 status=80 chs=11,22,33 partitionType=5f lastchs=12,34,56 lba=a100 noOfSector=0
the script is in https://code.google.com/p/peter/source/browse/trunk/PeterI/utils/pt
only two ways to use it:
1) Dump the partition table
./utils/pt -l hd.img
2) modifiy it
./utils/pt -c hd.img 3 status=80 chs=11,22,33 partitionType=5f lastchs=12,34,56 lba=a100 noOfSector=0
The above command line will modify the 4th partition table (first one is 0), change the status to 0x80, chs to 11,22,33 and etc.
Screenshot is here:
ę²ęēčØ: