Dear all i am writing a script to dd a image to partition for example i have a image say data.img which is a dd image of a data partition of linux machine1 . Now assume .
i have a another machine linux2 with same partitions and even data partition if i want to update the data.img to this partition i use the command dd if=data.img of=/dev/flx now this is done even if the data.img is much bigger than than /dev/flx and it will trow out a error not enough space and leave that partition unusable . this process is automated using a script but i want to put a check so that i can check the size of the parition and size of the image is same before i run dd is there a command which can give me the partition size other than using fdisk -l and greping that blocks and calculating Thanks in Advance regards Yunus __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
