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.
Distribution: Redhat 7.3 Valhalla, Solaris 8, HP Tru64
restore image with dd
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
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.