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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 "
"I do not know how to handle files with mode 81a4
must set cylinders"
What can I do at know ?
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.
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.