SUMMARY: How do you copy a socket?
2007-12-24 22:42:00
1. cpio - refused to copy the file
2. ufsdump - copied the file as a regular file (-rwxrwxrwx) instead of as a
socket (srwxrwxrws)
3. dd - didn't try
But the correct answer (provided first by Nicolas Dorfsman) was:
4. "The software which [created/listens to] this socket will re-create it."
I just booted the machine and sure enough NDS re-created its sockets, and
seems happy about it.
Thanks to:
Nicolas Dorfsman
Darren Dunham
Steve Elliott
Mark Hargrave
JULIAN, JOHN C
Sean Berry
Urie, Todd
Lennon, Padraig
TRUCKS, JESSE
Graham Wood
Jonathan Andrews
Bertrand_Hutin
Lars Hecking
Jeff Claunch
Steven Aizic
Fabrice Guerini
Regards,
Charles
> -----Original Message-----
> From: Homan, Charles (NE)
> Sent: Tuesday, May 14, 2002 11:13 AM
> To: 'codeprof at codeprof.com'
> Subject: How do you copy a socket?
>
> OK, here's what I hope is an easy one: I am trying to move /var onto its
> own partition on the boot disk. I have created a new partition in the
> blank space, newfs'ed it, booted from CD. Then I mount and move stuff
> like so:
>
> mount /dev/dsk/c0t0d0s0 /a
> mount /dev/dsk/c0t0d0s7 /a/newvar
> cd /a/var
> tar cf - . | ( cd /a/newvar ; tar xf - )
>
> Should be no issue, but it seems there are two socket files (created by
> NDS) in /var, which tar barfs on. One is:
>
> srwxrwxrwx 1 root other 0 May 9 9:13 s-n4ucmd
>
> The other is similar.
>
> How can I either copy over or re-create this socket file on the new
> partition? Any help would be vastly appreciated!
>
> Thanks!
> Charles
Comments
Got something to say?
You must be logged in to post a comment.

