LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-11-2012, 08:33 PM   #1
yukes
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
dd stops at 1GB with input/output error


Hello.
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.

Thank you very much for reading.

P.S.
I am creating the image of hda for P2V.
 
Old 09-11-2012, 08:44 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,697

Rep: Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455Reputation: 2455
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.
 
Old 09-12-2012, 11:09 AM   #3
yukes
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
OK. I will try it with CD boot.

Thank you very much for your suggestion!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error fsyncing/closing/dev/sda: Input/output error Petalocsta Linux - Laptop and Netbook 2 11-07-2011 05:40 PM
mount error 5 input output error cifs suse abhay.asingh Linux - Networking 0 01-19-2010 01:52 AM
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
RPM iinstallation [error: failed to stat /mnt/windows: Input/output error] Ameii83 Linux - Software 1 04-09-2007 07:05 AM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration