Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2005 03:15:53 -0400
From:      Ted Nolan <Ted.Nolan@sri.com>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        freebsd-bugs@FreeBSD.org, Ted.Nolan@sri.com
Subject:   Re: bin/85011: /sbin/restore on 5.4 will not read Solaris-sparc dumps, whereas 4.x restore will 
Message-ID:  <20050824071553.FXJD3199.imf19aec.mail.bellsouth.net@sri.com>
In-Reply-To: Message from Gleb Smirnoff <glebius@FreeBSD.org> of "Sat, 20 Aug 2005 11:27:32 -0000." <200508201127.j7KBRWxW071121@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200508201127.j7KBRWxW071121@freefall.freebsd.org>you write:
>Synopsis: /sbin/restore on 5.4 will not read Solaris-sparc dumps, whereas 4.x 
>restore will
>
>State-Changed-From-To: open->feedback
>State-Changed-By: glebius
>State-Changed-When: Sat Aug 20 11:26:16 GMT 2005
>State-Changed-Why: 
>Some changes to re-add support for old tapes were commited
>to 5-STABLE _after_ 5.4-RELEASE.
>
>Can you please update your system and say whether SunOS
>tapes are readable in 5.4-STABLE?
>
>
>http://www.freebsd.org/cgi/query-pr.cgi?pr=85011

Hello,

I'm afraid I can't upgrade my system at this time.  However, I have
downloaded the ssbin source code from a stable snapshot:

http://snapshots.jp.freebsd.org/pub/FreeBSD/snapshots/i386/
	5.4-STABLE-20050824-JPSNAP/src/

(This site suggested in the handbook)

extracting the sbin/dump and sbin/restore src directories, and compiling
on my 5.4-RELEASE machine appears to work, and produces a binary:

=========================================
cc -O -pipe  -DRRESTORE  -c main.c
cc -O -pipe  -DRRESTORE  -c interactive.c
cc -O -pipe  -DRRESTORE  -c restore.c
cc -O -pipe  -DRRESTORE  -c dirs.c
cc -O -pipe  -DRRESTORE  -c symtab.c
cc -O -pipe  -DRRESTORE  -c tape.c
cc -O -pipe  -DRRESTORE  -c utilities.c
cc -O -pipe  -DRRESTORE  -c /usr/home/ted/stable/sbin/restore/../dump/dumprmt.c
cc -O -pipe  -DRRESTORE   -o restore main.o interactive.o restore.o dirs.o symtab.o tape.o utilities.o dumprmt.o 
gzip -cn restore.8 > restore.8.gz
=========================================

But the binary fails in the same way as the original 5.4-RELEASE binary:
=========================================
%./restore if ~/root.dump
Tape is not a dump tape
=========================================

whereas copying a 4.x binary to the 5.4-RELEASE system works:

=========================================
%restore4 if ~/root.dump
Note: Doing Quad swapping
restore > ls
.:
.TTauthority     adrg             kernel/          proc/
.Xauthority      bin              lib              projects/
.cshrc           cdrom/           lost+found/      sbin/
.dt/             core             mirror/          tmp/
.dtprofile       dev/             mnt/             usr/
.java/           devices/         net/             var/
.lsof_solabel10  etc/             netwars          vol/
.rhosts          export/          opt/             www/
.ssh/            home/            overflow/        xfn/
TT_DB/           home.local       platform/

restore > quit
%
=========================================



				Ted Nolan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050824071553.FXJD3199.imf19aec.mail.bellsouth.net>