Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 2009 12:51:10 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        jeffry killen <jekillen@prodigy.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: salvaging hard drive contents
Message-ID:  <alpine.BSF.2.00.0910081247140.24425@wonkity.com>
In-Reply-To: <c1d51f0fbd14910fb7121c3e6fad565f@prodigy.net>
References:  <c1d51f0fbd14910fb7121c3e6fad565f@prodigy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 8 Oct 2009, jeffry killen wrote:

> Now I have the hard disk I want to recover mounted but please for give me
> for being in the learning phase, but how to I cd on to this drive?
>
> I mounted it using the suggested 'mount -r (in this case ad12s1d) /var'
> now how do I actually read it?

What you've done there is mount your salvage drive over your running 
system's /var.  That's probably going to give you problems, possibly 
very quickly.  Just umounting the incorrect /var is probably not going 
to be enough.  You might have to reboot.

Once that's cleared up, use a mountpoint that's not doing anything. 
/mnt is commonly used for that.

mount -r /dev/ad12s1d /mnt

Then /mnt contains the salvage drive's var filesystem:

cd /mnt
ls

-Warren Block * Rapid City, South Dakota USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0910081247140.24425>