How to clone enter harddisk on Sun Sparc20?

Hi mates,

well before posting my problem, i really searched hi and low for some ideas, but sad to say none of them worked, including dd command.

My problem is that i have 2 harddisk, 1 in use and 1 for spare. The one im using got crashed and now im using my spare harddisk with all the engraver and rip software in it.

I would like to clone the good harddisk to this new harddisk that i got. Just in case another crash happens.

The only thing i can share is that i have a SunSparcstation 20. please refer to the attach for the system. And by the way i don't have a CD rom installed.

anyhelp would do. and please if you need other info please do let me know.

Hi,

use SVM and create a mirror volume.

Please elaborate. How did the dd command failed ?

i used this dd comand

dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror

but the result was
if=/dev/sda?

@sijocg
sorry im a newbie :frowning:

What OS release are you using ? How did you boot the SS20 ?

/dev/sda?? on solaris ? pls check

  1. Make sure the source and destination disk have the same disk geometry

  2. Become superuser

  3. Create /reconfigure file on the sys so that the system will recognize the clone disk to be added when it reboots. # touch /reconfigure

  4. Shut down the system. # init 0

  5. Attach the new hard disk to Secondary IDE and set cable select

  6. Boot the system. ok boot

  7. Use the �dd� command to copy the master disk to the new hard drive.
    # dd if=/dev/rdsk/master-harddisk of=/dev/rdsk/new-harddisk bs=blocksize

  8. Wait for the hard disk to clone finish, and check the new file system.
    # fsck /dev/rdsk/new-harddisk

  9. Mount the new-harddisk�s root file system
    #mount /dev/dsk/new-harddisk /mnt

  10. Edit the new-harddisk /etc/vfstab to reference to the correct device name using VI
    Changing all instance of new-harddisk to master-harddisk

  11. Unmount the new-harddisk.
    #umount /mnt

  12. Shut down the system # init 0

  13. Remove the master hard disk , replace with the new-hard drive

I would suggest having the source disk filesystems being mounted read-only here, or at least being in a quiet single user mode.

@jlliagre
i don't know what OS i have, how can i see it?
anyways i went to ok prompt by STOP+D then an error appears
"Timeout waiting for ARP/RARP packet" in loop
so i press STOP+A to show ok prompt
the boot-disk = disk, but if i let it boot by itself it will go straigth to OHIO software.

@incredible
how to become a superuser?
what do you mean by this on number 3: # touch /reconfigure
what do you mean by this on number 4: # init 0

You need to have the OS booted successfully then run "cat /etc/release" and/or "uname -a".

Being in the boot prom monitor isn't going to allow any dd or other shell command to happen.

What's OHIO software ?

is this how you become a superuser?

this is what OHIO software

sorry for the few info, right now i'm at home, but tomorrow i'll take picture of it for more in-depth info.

after the boot up, this software automatically shows, how can i go to openboot?

Ouch, you are using SunOS 4.1.1 ... anyway, what about asking Matt Daetwyler Corp. ?
It seems you are using that box as an appliance and any advice to unlock it might breach your license.

They don't support anymore this hardware/software. You can get thier tech support if you buy a new line on what they are offering.

That's why i was thinking of just cloning the entire harddisk for me to have a backup.

So is there anyway, we can do it?

You need to boot in single user mode and clone the disks as already suggested.

The tricky parts will be how to boot in single user mode with such an old open boot prom (possibly "boot -s" at the ok prompt if you have one), how to have your new disk recognized (cd /dev;MAKEDEV ?) and what device names to use (something like dd if=/dev/sd0c of=/dev/sd1c bs=256k).

ok i'll try this one out.

---------- Post updated at 10:05 PM ---------- Previous update was at 09:29 AM ----------

@jlliagre
though i can call up Daetwyler to ask for a password? but on what password would i ask them of?

root password.

Hi jlliagre,

Until now i got no response from Daetwyler,

Anyways i manage to log-in as a single user with "boot -s", like what you've told me.
i wrote:
# dd if=/dev/sd0 of=/dev/sd1 bs=256k
message this:
dd: open: /dev/sd0: No such file or directory

next i did copy from partition to partition:
# dd if=/dev/sd0g of=/dev/sd1g bs=256k
dd: write: Error 0
8189+0 records in
8189+0 records out
i did the same thing on sd0a,sd0d,sd0e,sd0f,sd0g,sd0h, but when i boot it with the new hard drive, it says
sd0: corrupt label - bad geometry

when i tried the dd command on another target drive.
# dd if=/dev/sd0a of=/dev/sd1a
sd1a: Error for command 'write'
sd1a: Error level: Fatal
sd1a: Block 87328, Absolute Block: 87398
sd1a: Sense key: Hardware Error
sd1a: Vendor 'SEAGATE' error code: 0x3

tried another drive:
# dd if=/dev/sd0a of=/dev/sd1a bs=256k
sd1a: Error for command 'read'
sd1a: Error level: Retryable
sd1a: Block 0, Absolute Block: 65
sd1a: Sense key: Media Error
sd1a: Vendor 'SEAGATE' error code: 0x11

i hope you can shed some answers...thanks

Is the destination disk partitioned exactly like the source one ? Before copying the slices content, you need to have partitions ids and size matching exactly (or the destination slices being larger than the source ones).

The partition is the same, because the target drive has the same content before it was corrupted. The size i think is bigger than the master.

The disk size discrepancy might be the root cause of the booting issue:

sd0: corrupt label - bad geometry