Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-14-2008, 11:26 AM   #1
LQ Newbie
Registered: Feb 2008
Distribution: Redhat 7.3 Valhalla, Solaris 8, HP Tru64
Posts: 25

Rep: Reputation: 15
restore image with dd

Hi guys,

I have a redhat laptop and a sun solaris 8 server networked together

I created an nfs share on the sun server and backed up an image of the Redhat laptop to it.
The Hard disk size of the laptop is 40Gb but I have about 38Gb free space on the sun server. So I compressed the image while backing up.

# dd if=/dev/hda | gzip > /NFS_MOUNT/backup.gz

This created the file OK.

Now I'm testing a restore.

So I have donwloaded System Rescue CD and booted the laptop with that.
I've set up the ip address and default gateway and can ping the Sun server.

I've then mounted the NFS partition, and can see the backup file.

However when I try to restore with the command:

# gzip -dc /NFS_MOUNT/backup.gz | dd of=/dev/hda

I get an error: No space left on device.

Am I missing a step? I thought dd would just overwrite the disk.
Does this mean there is not enough space on the sun server or not enough space on the redhat laptop?

When booted with the system rescue cd the output of sfdisk -l has /dev/sdX where I was expecting /dev/hdX

Can anyone help?

Many thanks and kind regards,


Last edited by Stin; 05-14-2008 at 11:35 AM.
Old 05-14-2008, 12:31 PM   #2
Senior Member
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,783
Blog Entries: 14

Rep: Reputation: 279Reputation: 279Reputation: 279
I think you diagnosed your own problem. Your rescue disk uses /dev/sdX instead of /dev/hdX; therefore there is "no room on the (/dev/hdX) device" which isn't there. My understanding is that PATA disks used to go by /dev/hdX with SCSI and SATA as /dev/sdX, but that most distros now have all hds as /dev/sdX.

Bottom line, I'd recommend trying to restore using the appropriate disk now called /dev/sdX. Better still, make sure the rescue disk is compatible with the underlying distro or do both backup and restore with the same rescue CD.

Good luck


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
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 08:59 PM
LXer: Creating a dd/dcfldd Image Using Automated Image & Restore (AIR) LXer Syndicated Linux News 0 03-07-2007 06:16 PM
kernel panic after image restore turnbui Linux - Software 1 06-20-2006 03:30 AM
Restore GHOST image to new HD mstahl Linux - Hardware 3 09-07-2005 04:05 PM
ZFD Image restore from CD wait for next cd Provogeek SUSE / openSUSE 0 05-13-2005 02:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:21 AM.

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