partition table reload
I am trying to install diskdump using a script.
The steps I am taking are as follows:
I use fdisk to convert the remaining free space on a drive into a partition for use with diskdump.
In order to format the partition (service diskdump initialformat). I need to load it into the partition table. The closest I have gotten to this is by using two commands:
kpartx -a /dev/cciss/c0d03
This did work the first time I attempted it. However when I tried to repeat this, (after wiping out the diskdump config, and removing the partition of course) - after a reboot /boot had bad blocks.
I think this is occurring because I am reloading the partition table from a drive that has mounted partitions (/dev/cciss/c0d01 and c0d02).
Is there any way to perform this, without spliting the script after the partitioning and rebooting?
Last edited by polar_bear; 11-21-2007 at 02:22 PM.
Reason: fix syntax