Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 2009 11:02:43 -0700
From:      jeffry killen <jekillen@prodigy.net>
To:        freebsd-questions@freebsd.org
Subject:   salvaging hard drive contents
Message-ID:  <c1d51f0fbd14910fb7121c3e6fad565f@prodigy.net>

next in thread | raw e-mail | index | archive | help
> Hello;
> I have a hard drive that contains the /var file system in a system that
> will not boot.
> In single user mode I can mount  /var.
>
> I want to take this disk and put it in another FreeBSD system and
> try to copy the files I need off of it to a safe place.
>
> The system I will plug it into will also have a separate disk with
> /var.
>
> Is there going to be a conflict with the labels and how would I
> best go about this?

response to above query-------------------

There will be no conflict.  All the magic as to 'wher to mout what' is 
in
the /etc/fstab file.  because it doesn't know about the disk you're 
adding,
ther won'tbe any conflicts. Simply use the long form of mount(1), to 
wit:
"mount devicename mountpoint", and mount it on any convenient location,
say '/mnt'.
--------------
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?
I tried cd ad12s1d/var and I got the 'file does not exist' response.
If I do
cd /;  ls -la
I do not see an added entry.

Thanks for suggestions, info, etc
Jeff K







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