LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   partition table reload (https://www.linuxquestions.org/questions/linux-server-73/partition-table-reload-601498/)

polar_bear 11-21-2007 01:13 PM

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
partprobe

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?

bigearsbilly 11-22-2007 05:55 AM

be careful messing with that if you have real data.

if you mess up an existing partition, even if you restore it
exactly as it was before, the file system will probably go AWOL

(I know this)


All times are GMT -5. The time now is 09:43 PM.