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 was trying to create an image of hda with dd command but it always stops at 1GB. I tried dd to usb drive and also to a network share using smbfs with lfs option, both failed at exactly the same point(1,024,488KB) with input/output error.
The command which failed at 1GB was the following.
dd if=/dev/hda of=/mnt/NAS01/myimage.img bs=1024
I then used conv=notrunc,noerror option. After few hickups, it went a little further but ended with file size limit exceeded error.
I looked it up on google and did the followings.
1. run ulimit -a (file size was unlimited)
2. run cat /etc/security/limits.conf (nothing other than comments.)
3. run a test of creating empty file
dd if=/dev/zero of=myimage.img bs=1024 count=2000000 (I was able to create 2GB file successfully to the same network share.)
It is an old linux box with version 2.4.18.(Red Hat 8.0). The size of the hda is about 30GB.
My question is ...
1. Is there a setting for file size limit other than limits.conf?
2. When I make an image of hda with dd, am I suppose to boot from CD? I am running dd from the hda itself. Would it be a cause of this error?
I spent 2 days looking for solution myself but could not find the right one, unfotunately.
I would appreciate if anyone can lead me to the right direction.
dd with the most simple of if= and of= should work. What I am thinking is that mnt is part of your current OS and it fails. Use a live cd to separate it from your OS or use dd over ftp or dd over nc to mount remote storage. If you want you can use g4u.