Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 649
  • Last Modified:

HOW TO GHOST A SUN OS 2.5 HARD DRIVE

I have a couple of questions really, I'm working with a VoxelQ Workstation running Sun OS 2.5 on a 9GB hard drive that is starting to fail.   We have ordered a new hard drive (18gb) and according to SUN, it appears that the OS will only recognize the first 8GB (which isn't a problem).  

First, can I put these on my WinXP SP2 machine on the SCSI card, and just copy or are there any copy programs you suggest to use?  

Second, Will WinXP SP2 even recognize these Hard Drives on my system?   What is the format that Sun OS 2.5 uses?  (I am not profecient in Sun OS 2.5)


Thanks!

0
sacscorpio
Asked:
sacscorpio
  • 2
  • 2
1 Solution
 
wesly_chenCommented:
> Will WinXP SP2 even recognize these Hard Drives on my system?   What is the format that Sun OS 2.5 uses?
No, XP won't recognize the SunOS filesystem, ufs (Unix FileSystem).

Put your old disk and new disk to other Sun server, which have 2 more spare slots.
Then
1. boot that sun server with "boot -r"  from ok promt

2. login that Sun server as root and do type command
format
to check the new device path.
Say /dev/dsk/c0t1d1  (9GB)
     /dev/dsk/c0t2d1  (18GB)

3. Clone the disk
dd if=/dev/rdsk/c0t1d1s2 of=/dev/rdsk/c0t1d1s2
s2 (Slice 2) stands for the whole disk

4. Put the new disk to VoxelQ Workstation and type "boot -r"  from ok promt

Note: You only use 9GB out of 18GB for the new disk by using "dd"
 
0
 
sacscorpioAuthor Commented:
Dear Wesly Chen,

My name is Alan Wu. I work with Kevin Stead.

I have some questions about your previous 4 steps:

question 1: before step 3, do I need to build a filesystems on the new harddrive using the command "newfs" or "mkfs"?

question 2: if the answer to question 1 is NO, then do I see the raw disk /dev/rdsk/c0t2d1s2 ? Did you mean "c0t2d1" instead of "c0t1d1" in step 3 of your answer?

Thank you very much,

Alan Wu
0
 
wesly_chenCommented:
A1. No. dd will clone the fielsystem for you.

A2. Sorry, that's my typo.
dd if=/dev/rdsk/c0t1d1s2 of=/dev/rdsk/c0t2d1s2

However, you need to make sure your disk devices in format command.
0
 
sacscorpioAuthor Commented:
Dear Wesly Chen,

I have followed your steps except that between step 2 and step 3 I had to use fdisk to
format the new harddrive into Solaris partition. And I did it successfully.

The old drive is: c2d0 (about 2 GB) and the new drive is: c2d1 (about 4.3GB)
(I am doing this on a Solaris 7 x86 platform).

But I ran into this message more than 12 hours after I started "dd" command:

dd if=/dev/rdsk/c2d0s2 of=/dev/rdsk/c2d1s2
dd: unexpected short write, wrote 0 bytes, expected 512
8391601+0 records in
8391601+0 records out

Any recommendation/comments on this? Did I run the command successfully?

Thanks a lot,

Alan Wu


 

Then, I used the dd
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now