LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Hard disk clone question (http://www.linuxquestions.org/questions/linux-hardware-18/hard-disk-clone-question-871584/)

the_gripmaster 03-28-2011 08:08 PM

Hard disk clone question
 
sda: 512MB
sdb: 1024MB

sda has some data on it and I copied all data from sda to sdb using

Code:

dd if=/dev/sda of=/dev/sdb
Now, when I run fdisk on sdb, it reports as a 1024MB disk but does not let me add any new partitions; says that no free sectors available, even though another 512 should be available. Since its MBR has the partition table info of sda, a 512MB disk, I am getting this error. How can I fix the partition table (using some tool, not manually which I can do by myself) information of sdb without deleting any data contained in sdb (which was copied from sda)?

kbp 03-28-2011 09:58 PM

Try :-

Code:

partx -a /dev/sdb
fdisk -l /dev/sdb



All times are GMT -5. The time now is 06:39 PM.