Visit The New, Modern Unix Linux Community


Cloned drive won't boot ?


 
Thread Tools Search this Thread
Operating Systems Solaris Cloned drive won't boot ?
# 1  
Cloned drive won't boot ?

Solaris system
version 6

I cloned the drive using the DD command.

Using the format command and examining the partitions, all looks the same as the original drive.

Problem:

When I attach the cloned drive as the master, and only drive in system, it will not boot.

Error messages:

Hostname bstdx-srvr
/sbin/swapadd: expr: not found
/sbin/swapadd: /usr/sbin/swap not found
Warning: /usr/sbin/fsck not found. Most likely the mount of USR failed or the /usr filesystem is badly damaged. The system is being halted. Either reinstall the system or boot with the -b option in an attempt to recover.
Syncing file systems...done
Program terminated
Ok>


When I tried the boot-b from the ok> prompt:

Init - cannot create /var/adm/utmp or /var/adm/vtmp
Init - single user mode


****************

Any Advice to this Solaris newbie ? Thanks !! Smilie
# 2  
can you give the syntax of the dd command that you used? maybe you've taken the wrong slice for cloning....
# 3  
After the dd command you need to install the boot block also inorder for the new disk to boot corectly.
# 4  
here is the DD command I used

First I booted to single usermode from CD rom

here is the dd command:

dd if=dev/dsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 bs=256k

here is more info after the cloning, when I stil had the original as master and the clone as slave:
*****************
Partion of the master drive

# prtvtoc /dev/dsk/c0t0d0s2
* /dev/dsk/c0t0d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 16 tracks/cylinder
* 1008 sectors/cylinder
* 17662 cylinders
* 17660 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 17800272 1008 17801279
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 0 2048256 2048255 /
1 3 01 2048256 2048256 4096511
2 5 00 0 17801280 17801279
5 4 00 4096512 2048256 6144767 /usr
6 0 00 6144768 11655504 17800271 /opt
#
#

Partition of the cloned slave drive

# prtvtoc /dev/dsk/c0t1d0s2
* /dev/dsk/c0t1d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 16 tracks/cylinder
* 1008 sectors/cylinder
* 17662 cylinders
* 17660 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 17800272 1008 17801279
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 0 2048256 2048255 /usr/local
1 3 01 2048256 2048256 4096511
2 5 00 0 17801280 17801279
5 4 00 4096512 2048256 6144767
6 0 00 6144768 11655504 17800271




#
#
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ST39140A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@0,0
1. c0t1d0 <ST39140A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@1,0
Specify disk (enter its number): 0
selecting c0t0d0
No defect list found
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> partition


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print
Current partition table (original):
Total disk cylinders available: 17660 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 2031 1000.12MB (2032/0/0) 2048256
1 swap wu 2032 - 4063 1000.12MB (2032/0/0) 2048256
2 backup wm 0 - 17659 8.49GB (17660/0/0) 17801280
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 usr wm 4064 - 6095 1000.12MB (2032/0/0) 2048256
6 unassigned wm 6096 - 17658 5.56GB (11563/0/0) 11655504
7 unassigned wm 0 0 (0/0/0) 0

partition> qu


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> qu
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ST39140A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@0,0
1. c0t1d0 <ST39140A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@1,0
Specify disk (enter its number): 1
selecting c0t1d0
No defect list found
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> parti


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> pri
Current partition table (original):
Total disk cylinders available: 17660 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 2031 1000.12MB (2032/0/0) 2048256
1 swap wu 2032 - 4063 1000.12MB (2032/0/0) 2048256
2 backup wm 0 - 17659 8.49GB (17660/0/0) 17801280
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 usr wm 4064 - 6095 1000.12MB (2032/0/0) 2048256
6 unassigned wm 6096 - 17658 5.56GB (11563/0/0) 11655504
7 unassigned wm 0 0 (0/0/0) 0
# 5  
I'll do a search, but after cloning, how do I reinstall the "boot block".....?

Thanks for the help and advice....
# 6  
Hi,
I do this the last time before Solaris 9, because normal I prefer to use the flash feature!
It is very simple to use!

But as hint and as example:

installboot /usr/platform/sun4u/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0

best regards joerg
# 7  
Thanks....
here is what I tried, it was unsuccessful:

This is a SUN Ultra-10 system

installboot /usr/platform/SUNW,Ultra-5_10/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0


the command appeared to go fine.
Ran fsck, did not find any problems on the clone disk first partition.

Next I mounted the cloned disk by itself as master, and rebooted - >

Result: still get the failure to boot completely, and get the same error messages...

Hostname bstdx-srvr
/sbin/swapadd: expr: not found
/sbin/swapadd: /usr/sbin/swap not found
Warning: /usr/sbin/fsck not found. Most likely the mount of USR failed or the /usr filesystem is badly damaged. The system is being halted. Either reinstall the system or boot with the -b option in an attempt to recover.
Syncing file systems...done
Program terminated
Ok>


When I tried the boot-b from the ok> prompt:

Init - cannot create /var/adm/utmp or /var/adm/utmpx
Init - single user mode

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #926
Difficulty: Medium
On 05:20:00 UTC on Saturday, 24 January 2065, the Unix time value will equal 4000000000 seconds.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

New kernel won't boot

I compiled new kernel in linux 10.04 called linux-2.6.26.8-xenomai, it runs alongside the other kernel, but when I want to boot it I get an error message saying: Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/sda5 does not exist. After making the modules and headers I made the... (4 Replies)
Discussion started by: mdop
4 Replies

2. SCO

SCO UNIX Won't Boot

Our system is not booting up properly. It keeps going to this screen: Enter Run Level (0-6, s or S): I tried to hit all nos# 0-6 is just goes to hung state. Tried s or S & it brings me to single user mode. I've checked the file systems & found out that all three had 98%. I tried to... (86 Replies)
Discussion started by: jedimaster
86 Replies

3. AIX

won't mount /usr...won't boot fully

Hello: NOOB here. I attempted to use smit mkcd. Failed on first attempt, not enough space. 2nd attempt tried to place iso on /usr, not enough space there. Cleanup ran for about 5 minutes after aborting. Now AIX won't boot. LCD display on 7029-6E3 says: 0517 MOUNT /USR. Attempted to boot from CD... (11 Replies)
Discussion started by: bbird
11 Replies

4. UNIX for Dummies Questions & Answers

Linux won't boot

I'm trying to install Fedora 9 on a Dell OptiPlex GX300 machine. The instalation runs properly, but when the computer restarts after the instalation, it simply won't boot, like there's no OS installed. I tried diffrent Linux distributions, but nothing works. This are the partitions, maybe it's... (12 Replies)
Discussion started by: teis
12 Replies

5. Ubuntu

External Hard drive won't mount

i have a Simple Tech hard drive that i use between two computers. it is formatted to ntfs. i have a dell desktop with Ubuntu 7.10 and Ubuntu 8.04 and Windows XP Home. and i have a laptop with Ubuntu 7.10 and Ubuntu 8.04. the laptop recognizes the hard drive on both 8.04 and 7.10 but my desktop... (9 Replies)
Discussion started by: Texasone
9 Replies

6. Solaris

Ultra 60 won't boot

I just was given an Ultra 60 that I'm trying to get started so that I can re-load the system with Solaris 10. I can't seem to get the system to boot past the initial memory check. I've tried to do an Stop-A to get to the eeprom, but can't do that. My next step is to try to send a break from the... (0 Replies)
Discussion started by: zosojohnny
0 Replies

7. Solaris

cannot find boot device and won't boot off cdrom

I'm running solaris 2.5.1. My main development server is DEAD, i can't even boot off the cdrom, it powers up, acts like it is starting the boot process but then says cannot find boot device. I've done the search here on this site and saw the other posts, but at the ok prompt it won't even let me... (3 Replies)
Discussion started by: kymberm
3 Replies

8. Solaris

nfsd won't start at boot up

Hi Inexplicably, nfsd no longer starts automatically on our Sun boxes running Solaris 9, so that 'automount' no longer functions automatically. The problem first manifested itself when we could not access files on any of the nfs automounted directories in our LAN after one of the servers (say... (19 Replies)
Discussion started by: dcshungu
19 Replies

9. AIX

server won't boot

Hi all , i was trying to upgrade firmware on machine 7028-6E4 and it failed . Now machine does not boot anymore , i can not get SMC menu either ... What are my options ? Thanks, Rahim (1 Reply)
Discussion started by: rahim
1 Replies

10. Solaris

Solaris (9) won't boot!

Hi, I've just bought an Ultra 60 running solaris 9 (or so I've been led to believe). When I start up, it looks for a (presumably) domain/network to hook up to and the following messages are displayed: Boot device: net file and args: Network link setup failed Please check cable and try... (3 Replies)
Discussion started by: alarmcall
3 Replies

Featured Tech Videos