Solved

How do I copy files from a Sun Solaris to an external hard drive

Posted on 2009-04-09
7
653 Views
Last Modified: 2013-12-27
Hi,

I have a external hard drive(USB connected to my sun solaris 10 server)....It see's the drive and I"m trying to copy data from sun solaris machine to the external hard drive. What commands do I use to do this...

Do I use ufsdump or just use  cp to copy  the files.
0
Comment
Question by:anthony
  • 3
  • 2
  • 2
7 Comments
 
LVL 22

Expert Comment

by:blu
Comment Utility
Unless there is something unusual about the files, just use the cp command.
0
 

Author Comment

by:anthony
Comment Utility
I copying the entire Sun file system...

Can just do cp /dev/rmt/c1t0d0s0 /rmdisk/unnamed_rmdisk
0
 
LVL 22

Expert Comment

by:blu
Comment Utility
Are you sure you meant /dev/rmt and not /dev/dsk or /dev/rdsk?  No, you don't want to use cp if you are copying the
whole disk like that. In that case ufsdump would be a better choice, but the external disk  should already be formatted with a UFS file system.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 40

Expert Comment

by:omarfarid
Comment Utility
you need to have the disk partitioned (use format command) and then create a file system on the selected partition (use newfs) and then mounted on a dir (use mount) and then you can use ufsdump and ufsrestore to copy files from your system filesystems to that new file system
0
 
LVL 22

Expert Comment

by:blu
Comment Utility
It would be a good idea if you explained exactly what you are trying to accomplish.
0
 

Author Comment

by:anthony
Comment Utility
I'm coping the entire sun file structure on the external hard drive...How can I ufsdump commands to point to the external hard drive..
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
Comment Utility
the steps were given in earlier posting:

- partition the external disk, run

format
then choose number that corresponds to external disk
then choose p(artition)
then select a slice to set start and size
save and exit

- then create a file system on the new slice using newfs command, e.g.

newfs /dev/rdsk/c0d6t0s1 (put the real disk slice name)

- then mount the new slice with the command mount, e.g.

mount /dev/dsk/c0d6t0s1 /mnt

- run

ufsdump -0f - /path | (cd /mnt ; ufsrestore xf - )

- if your system is more than one file system then you need to create as many as partitions on the new disk as above
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now