Backing up the Harddrive.

NeXT Computer, Inc. -> NeXT Black Hardware

Title: Backing up the Harddrive.
Post by: martinws on July 02, 2008, 04:44:12 PM
Hi all,

I have a bit of a newbie question....

I've got a NeXTstation turbo but no install disks.

What I need to do is to be able to backup all of the hard drive in case of failure and to be able to restore everything back on a replacement drive.
Something like the Macs ability to create a 'disk image' would be nice.

What's the best way of doing this on NeXTstep?

I've been able to nfs mount a drive from my Mac so creating a complete 'Disk Image' on that drive should be possible.

I've also been able to create a small install disk on a Syquest EZ135 drive using the backup admin app. I've forgotten it's proper name atm ;-)

< Just started the NeXTstation the backup app I'm talking about is BuildDisk.app>

Thanks for any pointers,

Regards,

Martin
Title: Backing up the Harddrive.
Post by: martinws on July 06, 2008, 09:16:35 AM
Not to worry about this question.

I've found an external SCSI case and 1.6 GB drive and have managed to clone the disk.

One other question, is there any way of getting the NeXTstation to boot from the external disk instead of the internal one?

Thanks

Martin
Title: Backing up the Harddrive.
Post by: neozeed on July 06, 2008, 10:04:57 AM
from the boot rom you ought to...

bsd(1,0,0)


If I'm not mistaken..
Title: Backing up the Harddrive.
Post by: martinws on July 08, 2008, 03:56:44 PM
Quote from: "neozeed"from the boot rom you ought to...

bsd(1,0,0)


If I'm not mistaken..

Thanks that's pointed me in the right direction. I eventually worked out how to get into ROM Monitor.

Cmd Left-Alt Shift ~ ;-)

Unfortunately the BuildDisk did not create a carbon copy to my external drive and I dont have any BLD* files in /etc nor /usr/etc. So the quest to create a Carbon Copy on the internet disk continues.

Regards,

Martin
Title: Backing up the Harddrive.
Post by: martinws on July 09, 2008, 07:11:36 AM
Update. It appears I was wrong, the BuildDisk does work but only copies a 'fresh' version of the OS.

In order to get the external drive to boot I had to fix the /etc/fstab entry on the external drive from sd0 to sd1.

Then during reboot I aborted the boot, dropped into ROM Monitor, typed:

> bsd(1,0,0) -a

Looked to make sure the external drive was present on sd1, typed

> sd1

and the external drive booted. :lol:

Am I a happy NeXT Newbie or what?

Martin
Title: Better late than never?
Post by: vergil on August 30, 2008, 09:18:41 PM
Maybe this will help, maybe not.

Assumptions:
1) Your box is connected to a network
2) You have a linux box at your disposal
3) You have ssh installed
4) you're somewhat comfortable with unix

Procedure:
on the NeXT...
1) edit /usr/local/etc/sshd_config
Set PermitRootLogin to Yes. REMEMBER, don't leave things this way!
2) Restart ssh
3) run "mount" without quotes. You should see your root drive. On my box it is /dev/sd0a
on the linux box...
4) find a directory with space for a whopping nextstep disk.
5) ssh root@YOURIP "dd if=/dev/sd0a" >  backup.raw
6) wait a while... look for errors.
7) When the command completes you should be able to run "file" to see that things came out semi okay:

$ file athena-20080830.raw
athena-20080830.raw: Unix Fast File system [v1] (big-endian), last mounted on /, last written at Sat Aug 30 22:16:11 2008, clean flag 2, number of blocks 416103, number of data blocks 402253, number of cylinder groups 91, block size 8192, fragment size 1024, minimum percentage of free blocks 10, rotational delay 4ms, disk rotational speed 60rps, TIME optimization

8) if you're feeling really frisky, mount the image on your linux box:
mount -t ufs backup.raw /mnt -o loop,ro,ufstype=nextstep

This hasn't had a whole lot of testing, mind you, but I think it's enough to get you something you can throw back down on a system.

You could also probably replace the dd command in quotes above with "tar -cf - /" and redirect to BACKUP.tar or whatever. (ssh root@IP "tar -cf - /" > blahblahblah.tar)

Go to top  Forum index