Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the "writing to /dev/sdc input/output error" message. Can you please let me know how can I overcome this as the fdisk now returns as " #fdisk /dev/sdc "I do not know how to handle files with mode 81a4 must set cylinders" What can I do at know ? Thank you
I think below command will serve your purpose. #dd if=/dev/sdb of=/dev/sdc conv=noerror,sync Vishesh Kumar http://linuxmantra.com/ On Mon, Nov 11, 2013 at 3:14 PM, hadi motamedi <motamedi24 at gmail.com> wrote:> Dear All > I needed to clone my disk to another hard drive . I did it as the > following : > #dd if=/dev/sdb of=/dev/sdc > But after a while, the procedure ended with the "writing to /dev/sdc > input/output error" message. > Can you please let me know how can I overcome this as the fdisk now > returns as " > #fdisk /dev/sdc > "I do not know how to handle files with mode 81a4 > must set cylinders" > What can I do at know ? > Thank you > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- http://linuxmantra.com
On Mon, Nov 11, 2013 at 3:14 PM, hadi motamedi <motamedi24 at gmail.com> wrote:> Dear All > I needed to clone my disk to another hard drive . I did it as the following : > #dd if=/dev/sdb of=/dev/sdc > But after a while, the procedure ended with the "writing to /dev/sdc > input/output error" message.Is /dev/sdc >= /dev/sdb? Also, input/output error is an indication of a hardware problem (disk controller on the board, cable, or the disk).> Can you please let me know how can I overcome this as the fdisk now returns as " > #fdisk /dev/sdc > "I do not know how to handle files with mode 81a4 > must set cylinders"What does 'parted --list' display?> What can I do at know ?Post the answers for above. -- Arun Khan
On 11/11/13, Reindl Harald <h.reindl at thelounge.net> wrote:> > > Am 11.11.2013 11:52, schrieb hadi motamedi: >> On 11/11/13, Vishesh kumar <linuxtovishesh at gmail.com> wrote: >>> I think below command will serve your purpose. >>> >>> #dd if=/dev/sdb of=/dev/sdc conv=noerror,sync >>> >> Sorry. It quit with the following error : >> "no space left on device" >> What can I do next? > > buy a bigger target drive? > > >Sorry . Both are 40GB . Is it sufficient ?
Excuse me, You mean I need to buy a larger disk ? Please comment.
> > the response below was pretty clear > __________________________________________________ > >>> buy a bigger target drive? >>> >>Thank you for your help. So I will try to buy a larger target drive.
>i pretty clear explained you to shrink the last partition >and after that you can safely ignore the typical difference >of physical disksSorry . You mean using "resize2fs" for this purpose ? What is the most safe procedure that can be done on the source hard disk without losing any data ?
>gparted and if it is the system-partition a Live-CD with gpartedExcuse me, the source hard disk is a second hard disk connected to usb drive . The actual scenario is the main hard disk is my centos machine and the second source hard disk connected to usb port and the target is the third hard disk connected to usb port. Is it still necessary to use gparted with live cd or there is another simple procedure for this scenario? In the meantime, If I want to format the target hard disk with the same geometry as the source hard disk what can I do to accomplish that ? Thank you
> what do you think would this gain?Excuse me, I thought to format it to have a fresh dish to try with. Can you please let me know how to format it at this situation?
>the problem you have to solve is that the last partition on the source >ends a few MB before the maximum size and after that it does not matter >if the targt drive is a little smaller than the sourceThank you very much for your help. So my case is SOLVED . Thank you again for your kind assistance