Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to mount second hard drive on Solaris 10?

301 views
Skip to first unread message

Michelle

unread,
May 6, 2008, 11:47:21 AM5/6/08
to
I have computer #1 and computer #2, both running Solaris 10 x86.
Computer #2 crashed. I took out the hard drive on computer #2
and installed it as a second hard drive on computer #1 using a
second SATA cable.

I boot up computer #1. What do I need to do to mount the hard
drive from computer #2 so that I can access on the data that was
residing on that hard drive? Thanks.

Dave

unread,
May 6, 2008, 12:00:03 PM5/6/08
to
Try something like this.

# devfsadm
will create device files for the second disk (a reconfigure boot will do
it too).

then look in /dev/dsk and find the recently created device files.
Hopefully you should see some that are for the second drive.

# mkdir /tmp/a


# mount /dev/dsk/some_new_device /tmp/a

then the disk slices should be seen on /tmp/a

If you are using ZFS, then ignore me, and seek more expert help.

Ian Collins

unread,
May 6, 2008, 3:53:27 PM5/6/08
to
Michelle wrote:

Please don't multi-post on Usenet, answered elsewhere.

--
Ian Collins.

Richard B. Gilbert

unread,
May 6, 2008, 6:06:30 PM5/6/08
to

The first thing you need to do is to tell computer #1 that it has a new
disk drive. Easiest way is "boot -r". Or you can "touch /reconfigure"
and reboot. The system will inventory the installed hardware and
rebuild various tables/files to include the new disk drive. You can
also use devfsadm to get the system to recognize the new drive; see man
devfsadm.

Then you can either mount slices from the second disk using the mount
command or edit /etc/vfstab and add entries for the slices you want to
mount. You may have to create some new directories to act as mount points.

Depending on just how and why computer #2 crashed, your efforts may be
fruitless. If it crashed because of disk failure. . . . Or, if the O/S
rolled over and died, it may have crapped on something in the process!

--
Here, there be dragons

Dave

unread,
May 7, 2008, 2:31:54 AM5/7/08
to


It might be worth him running fsck on the raw devices in that case if
they will not mount. If the drive is dead, that is obviously not going
to help though.

Mr. G D Geen

unread,
May 7, 2008, 9:55:19 AM5/7/08
to
Richard B. Gilbert wrote:
> Michelle wrote:
>
> The first thing you need to do is to tell computer #1 that it has a new
> disk drive. Easiest way is "boot -r". Or you can "touch /reconfigure"
> and reboot.

does "reboot --r" still work?

Dave

unread,
May 7, 2008, 6:45:12 PM5/7/08
to


yes, but

# devfsadm

will achieve what you want, without a reboot.

Dave Uhring

unread,
May 7, 2008, 7:03:40 PM5/7/08
to

Probably not. You would use "reboot -- -r" to perform a reconfiguration
reboot.

Dick Hoogendijk

unread,
May 8, 2008, 9:35:27 AM5/8/08
to

But a "touch /reconfigure ; init 6" is safer. Reboot does not clode down
programs in a safe way.

--
Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
++ http://nagual.nl/ | SunOS 10u4 08/07 ++

Dave Uhring

unread,
May 8, 2008, 10:16:59 AM5/8/08
to
On Thu, 08 May 2008 15:35:27 +0200, Dick Hoogendijk wrote:
> quoting Dave Uhring (Wed, 07 May 2008 18:03:40 -0500):
>> On Wed, 07 May 2008 08:55:19 -0500, Mr. G D Geen wrote:

>>> does "reboot --r" still work?
>>
>> Probably not. You would use "reboot -- -r" to perform a
>> reconfiguration reboot.
>
> But a "touch /reconfigure ; init 6" is safer. Reboot does not clode down
> programs in a safe way.

Agreed, but unless one is running processes which can get corrupted in an
uncontrolled shutdown it makes no difference.

0 new messages