The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
helo how to mount pendrive on redhat 9 amitpansuria Red Hat 1 10-08-2007 11:07 AM
How to nfs mount with Redhat Linux Heron Red Hat 1 03-21-2005 11:38 AM
Mount W2K share on Redhat Linux Spetnik Linux 3 12-16-2003 07:13 PM
mount external usb drive on Redhat 9 jeremiebarber UNIX for Dummies Questions & Answers 6 05-23-2003 11: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 01:11 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-14-2008
Stin Stin is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 28
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.
  #2 (permalink)  
Old 05-14-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
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.
  #3 (permalink)  
Old 05-14-2008
Stin Stin is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 28
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?
  #4 (permalink)  
Old 05-14-2008
fabtagon fabtagon is offline
Registered User
  
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 189
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.
  #5 (permalink)  
Old 05-14-2008
Stin Stin is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 28
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.
  #6 (permalink)  
Old 05-14-2008
Stin Stin is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 28
THat didn't work either.
It just took longer to fail.

What does the gzip -dc do?
  #7 (permalink)  
Old 05-14-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
It decompresses (-d) from/to standard input (-c).
Sponsored Links
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0