[nflug] Making A CD Into A Zip File While Preserving Permissions
(A Bit OT)...
Darin Perusich
Darin.Perusich at cognigencorp.com
Fri Feb 17 16:01:24 EST 2006
check if rpcbind, nfsd, mountd, lockd, and statd are running.
ps -aef |egrep "(rpc|nfs|mount|lock|stat)"
DANIEL MAGNUSZEWSKI wrote:
> I'm getting the following error:
>
> nfs mount: local_host: : RPC: Rpcbind failure - RPC: Unable to receive
> nfs mount: retrying: /mnt
>
> *Yes, I did change the "local_host" to the server name ;-)
>
>
>>>>Darin.Perusich at cognigencorp.com 02/17/06 3:39 PM >>>
>
> are you planning on running NFS over the internet? i would not
> recommend
> that if you where. as long as the remote server can talk/ping the
> remote
> machine this isn't a problem.
>
> on the local server:
> - insert the cd into the drive, it should mount at /cdrom/cdrom0.
> - add "share -F nfs -o ro /cdrom/cdrom0" to /etc/dfs/dfstab
> echo "share -F nfs -o ro /cdrom/cdrom0" >> /etc/dfs/dfstab
> - start nfs.server script
> /etc/init.d/nfs.server start
> - test that it's shared
> mount local_server:/cdrom/cdrom0 /mnt
> ls /mnt
> - if you see the contents of the cdrom unmount the nfs mount.
> umount /mnt
>
> on the remote server:
> - mount the nfs filesystem
> mount local_server:/cdrom/cdrom0 /mnt
> - copy the cd to a remote directory
> cd /mnt; tar -cf - . |(cd /dir/with/alot_of_space; tar -xf -)
> - when copy is complete unmount the nfs mount
> umount /mnt
>
> enjoy.
>
> DANIEL MAGNUSZEWSKI wrote:
>
>>I have the CD in a local solaris server. Will NFS work to mount the
>>cdrom drive from the "out of state" servers? If so, what are the
>
> exact
>
>>commands?
>>
>>Thanks!
>>
>>-Dan
>>
>>
>>
>>>>>Darin.Perusich at cognigencorp.com 02/09/06 3:09 PM >>>
>>
>>you can steam line the below 2 steps into one.
>>
>>mount -F hsfs -o ro `lofiadm -a /path/to/file.iso` /mnt
>>
>>Robert Meyer wrote:
>>
>>
>>
>>>In Solaris, do a 'man lofi' to find out how loopbacks work. You
>
> will
>
>>probably
>>
>>
>>>have to do something like:
>>>lofiadm -a file.iso /dev/lofi/1
>>>mount -F hsfs -o ro /dev/lofi/1 /mnt
>>>
>>>It will mount the CDrom image as /mnt in readonly mode. Don't try
>
> to
>
>>make it
>>
>>
>>>read/write or bad things will happen.
>>>
>>>Hope this helps...
>>>
>>>Cheers!
>>>
>>>Bob
>>>
>>>
>>>--- DANIEL MAGNUSZEWSKI <dmagnuszewski at mandtbank.com> wrote:
>>>
>>>
>>>
>>>
>>>>All,
>>>>
>>>>I have a dilemma. I have a CD for an application for a Solaris
>>
>>server.
>>
>>
>>>>The Solaris server is not in this state. In an effort to do this
>
> from
>
>>my
>>
>>
>>>>desk, I tried creating a zip file of all the contents of the CD on
>>
>>my
>>
>>
>>>>Windows XP workstation, and SCP'd the zip files over to the server.
>>
>>I
>>
>>
>>>>unzipped the file and began to install the application - all this
>>>>involves is running one shell script which will in turn run other
>>>>scripts. The CD contains scripts/files of various permission
>
> levels.
>
>>>>When I tried running the script, I kept getting errors about
>
> various
>
>>>>other scripts not being able to execute.
>>>>
>>>>Is there any way that I can zip/tar/copy all the contents of a CD
>
> on
>
>>a
>>
>>
>>>>Windows XP workstation, SCP it to a Solaris server, unzip/untar it,
>>
>>and
>>
>>
>>>>preserve the file permissions?
>>>>
>>>>Thoughts?
>>>>
>>>>-Dan
>>>>
>>>>_______________________________________________
>>>>nflug mailing list
>>>>nflug at nflug.org
>>>>http://www.nflug.org/mailman/listinfo/nflug
>>>>
>>>
>>>
>>>
>>>__________________________________________________
>>>Do You Yahoo!?
>>>Tired of spam? Yahoo! Mail has the best spam protection around
>>>http://mail.yahoo.com
>>>_______________________________________________
>>>nflug mailing list
>>>nflug at nflug.org
>>>http://www.nflug.org/mailman/listinfo/nflug
>>
>>
>
--
Darin Perusich
Unix Systems Administrator
Cognigen Corp.
darinper at cognigencorp.com
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug
More information about the nflug
mailing list