The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
helo how to mount pendrive on redhat 9 amitpansuria Linux 1 10-08-2007 08:07 AM
How to nfs mount with Redhat Linux Heron Linux 1 03-21-2005 07:38 AM
Mount W2K share on Redhat Linux Spetnik Linux 3 12-16-2003 03:13 PM
mount external usb drive on Redhat 9 jeremiebarber UNIX for Dummies Questions & Answers 6 05-23-2003 08:13 PM
how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command? soulshaker UNIX for Dummies Questions & Answers 4 07-18-2001 10:11 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-14-2008
Registered User
 

Join Date: Mar 2008
Posts: 26
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
backup to NFS mount Redhat-Solaris

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/sdaX where I was expecting /dev/hdX

Can anyone help?

Many thanks and kind regards,

Stin.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-14-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,203
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Sounds like you should be restoring to /dev/sda then. I'm not sure if it's okay to use the whole raw disk as opposed to an individual partition (sda1/hda1), though.
Reply With Quote
  #3 (permalink)  
Old 05-14-2008
Registered User
 

Join Date: Mar 2008
Posts: 26
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thanks for the suggestion. I have tried that with the same response.

If I used dd to backup /dev/hda then I thought I'd be able to restore the same.

I might try restoring /dev/hda1 2 etc and then sda 1 2 etc,

What do you think?

EDIT: I get the same thing each time."No space left on device".
The command appears to work suggesting the syntax is ok.
Am i missing a step preparing the disk?
Reply With Quote
  #4 (permalink)  
Old 05-14-2008
Registered User
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 175
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Sure your rescue cd knows about -dc parameters to gzip? Is this maybe some busybox-like gzip?

BTW: If you boot that system backed up that way you'll likely face some complaints by the OS about existing looks it does not like - do not expect that image to work out of the box.
Reply With Quote
  #5 (permalink)  
Old 05-14-2008
Registered User
 

Join Date: Mar 2008
Posts: 26
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by fabtagon View Post
Sure your rescue cd knows about -dc parameters to gzip? Is this maybe some busybox-like gzip?

BTW: If you boot that system backed up that way you'll likely face some complaints by the OS about existing looks it does not like - do not expect that image to work out of the box.

Hi there,

THanks for the swift reply.

I've changed:

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

for

# gunzip /NFS_MOUNT/backup.gz | dd of=/dev/hda



And it seems to be working. I'll let you guys know.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 09:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102