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.
# 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.
Please don't multi-post on Usenet, answered elsewhere.
--
Ian Collins.
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
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.
does "reboot --r" still work?
yes, but
# devfsadm
will achieve what you want, without a reboot.
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.
--
Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
++ http://nagual.nl/ | SunOS 10u4 08/07 ++
>>> 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.