Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
It assumes that the two disks are the same size. sdc has to be at least as large as sdb or the copy will fail. And both disks need to be in LBA mode, as then there is no cylinder operations done.
DESCRIPTION
mke2fs is used to create an ext2, ext3, or ext4 filesystem, usually in a disk partition. device is the special file corresponding to the device (e.g
/dev/hdXX). blocks-count is the number of blocks on the device. If omitted, mke2fs automagically figures the file system size. If called as
mkfs.ext3 a journal is created as if the -j option was specified.
The defaults of the parameters for the newly created filesystem, if not overridden by the options listed below, are controlled by the
/etc/mke2fs.conf configuration file. See the mke2fs.conf(5) manual page for more details.
See the 'man mke2fs' pages for option descriptions.
Checking the disk with some diags isn't a bad idea to start.
dd is a bit by bit. So, we might assume any number of issues. One common one is as suggested. The size is different. As to if drive is OK again suggested to test disk. Consider OEM diag cd too. They have best diag apps. Use memtest also. Use best quality cables and set bios to default or failsafe speeds. Could be selecting wrong ata setting. Some clone tools test it and adjust.
Fdisk might be used also to decide true size.
Some older systems may not like the drive if it has a large number of cylinders. Might have the chs limit jumper on it too.
I did this 2 days ago, and while I don't have the disk yet, I called it successful when there were no "errors" reported,
and fdisk and cfdisk both reported the same same for both of them.
I did this 2 days ago, and while I don't have the disk yet, I called it successful when there were no "errors" reported,
and fdisk and cfdisk both reported the same same for both of them.
Is the if the 'source' and the of the drive you want to be cloned?
I have my system running on my sdb drive (don't ask) and would prefer to have it on my sda as it's newer, faster and quieter. Would I use
It is best to do it when /dev/sdb has no mounted partitions. Copying with it mounted allows for the possibility of an incomplete file being copied, which can cause some filesystem corruption - especially if files are being deleted.
Other than that restriction, you can do it anytime.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.