Re: Salvage files from harddrive

2010-08-03 Thread David Cross
FreeBSD 6.2 didn't use volume labels the same way that 7 and above do; 
and even then only if you specifically label the filesystems, and even 
then you can get to the filesystems with the 'bus' methods (which is 
what you need to do in 6.2 anyway)


On your system that you have access to /var in single user mode, note 
what 'df /var' returns for the device, it will be in the form of:


/dev/adXsYL
  or
/dev/daXsYL

where X and Y are numbers, and 'L' is a letter.  Take note of  'Y' and 
'L', but you can ignore 'X'.


on the working system note what disks are currently in the system, if 
you run 'df -l' you'll get a list of everything in the form of above, 
there make note of 'X' (and ignore 'Y' and 'L').


Now shutdown, move the drive over, and reboot, pay attention to the 
kernel messages, you should see a new 'adX' line come up that wasn't 
there on the working system before, this is where your new drive is.


(typical layouts are that ad0 is the primary-master, ad1 is the 
primary-slave, ad2 is the secondary-master, ad3 is the 
secondary-slave... with sata motherboards ad4 can be the first sata 
port, ad6 is the next, etc.. these are just generalities to help guide 
you, pay attention to what the kernel tells you)


now that you have that do

mount /dev/adXsYL /mnt(take 'X' from the "new" disk on the working 
system, and YL that you took note of above.).. your old /var will now be 
on /mnt


--
David E. Cross

On 10/7/2011 7:07 AM, jeffry killen wrote:

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?

system is FreeBSD v6.2

Thank you in advance for guidance, suggestions.
JK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"freebsd-questions-unsubscr...@freebsd.org"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Salvage files from harddrive

2010-01-19 Thread Christoph Kukulies

Your computers date/time is wrong. It's dated in the future.

--
Christoph

jeffry killen schrieb:



Thank you in advance for guidance, suggestions.
JK


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Salvage files from harddrive

2009-12-29 Thread Alex de Kruijff
On Fri, Oct 07, 2011 at 04:07:51AM -0700, jeffry killen wrote:
> 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?

I've changed the size of the disk slices by copying files over to a
nother disk, boot from that one and later back.

I would suggest using 'rsync -aHW source dest"
And later remove with 'chflags -R noschg source; rm -rf source'
-- 
Alex

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Salvage files from harddrive

2009-11-03 Thread RW
On Tue, 6 Oct 2009 20:50:39 -0400
jhell  wrote:


> If you can mount this disk in single user mode your best bet to be
> safe is just glabel it to something else that your second system is
> not before you take the disk out of the machine.
> 
> Even though I don't think it should/would be a problem I can not
> speak of a authoritative nature on this subject because I have not
> had to test such cases.

Personally, I don't think this practise of labelling partitions with
names like var makes any sense. fstab exists to keep track of what
devices map to which mount points, the point of glabel is to give those
devices unique names that are independent of where and when they
are detected.

I think people get the idea that if they use labels like var they'll
never need to edit fstab again.  The benefit of that is negligible, it's
much easier and less confusing to make minor changes to fstab when you
copy it to a new disk than it is to shuffle labels around.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Salvage files from harddrive

2009-10-22 Thread tomasz dereszynski

jeffry killen wrote:

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?

system is FreeBSD v6.2

Thank you in advance for guidance, suggestions.
JK


Nay,

you need to check as what 'device' that partition has been recognised on 
your 'new' system and mount it wherever you like

e.g.

mkdir /tmp/old-var
mount /dev/da0s1a /mnt/old-var

--
bEsT rEgArDs|   "Confidence is what you have before you
tomasz dereszynski  |   understand the problem." -- Woody Allen
   |   
Spes confisa Deo|   "In theory, theory and practice are much

numquam confusa recedit |   the same. In practice they are very
   |   different." -- Albert Einstein


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Salvage files from harddrive

2009-10-06 Thread jhell




On Fri, 7 Oct 2011 04:07 -0700, jekillen@ wrote:


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?

system is FreeBSD v6.2

Thank you in advance for guidance, suggestions.
JK 
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



If you can mount this disk in single user mode your best bet to be safe is 
just glabel it to something else that your second system is not before you 
take the disk out of the machine.


Even though I don't think it should/would be a problem I can not speak of a 
authoritative nature on this subject because I have not had to test such 
cases.


Best regards.

--

%{+
 | dataix.net!jhell 2048R/89D8547E 2009-09-30 |
 | BSD since FreeBSD 4.2Linux since Slackware 2.1 |
 | 85EF E26B 07BB 3777 76BE  B12A 9057 8789 89D8 547E |
 +%}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Salvage files from harddrive

2009-10-06 Thread jhell




On Tue, 6 Oct 2009 16:14 -0800, lists@ wrote:


On Fri, 07 Oct 2011, jeffry killen wrote:


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?

system is FreeBSD v6.2

Thank you in advance for guidance, suggestions.


It shouldn't be a problem. If you stick the "broken" drive in a new
system it will show up as a new device to the 2nd system.

You will then manually mount the 1st system via the device node to
wherever you want. It will not auto-mount that to /var .

So, for example your 2nd system has /dev/ad4s1  as its main disk.
When you plig the 2nd disk (from the old box) it will show up as
/dev/ad5s1 or similar. YOu would then just mount the /var/ slice to
wherever you want.

For example:
mount /dev/ad5sa6 /mnt/oldvar

or similar. Please note that your device nodes and slice numbers
will most likely be different.

Henrik



I think (correct me if I am wrong) he is trying to describe that glabel is 
being used on both systems and that he is worried that a label of "var" 
that would be in /dev/ufs/var on two separate disks would be conflicting 
and which one would be mounted first as he does not wish for the disk he 
is trying to save the contents of to be mounted and be used as the var of 
the system he is placing the said disk he wants to recover.


--

%{+
 | dataix.net!jhell 2048R/89D8547E 2009-09-30 |
 | BSD since FreeBSD 4.2Linux since Slackware 2.1 |
 | 85EF E26B 07BB 3777 76BE  B12A 9057 8789 89D8 547E |
 +%}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Salvage files from harddrive

2009-10-06 Thread Henrik Hudson
On Fri, 07 Oct 2011, jeffry killen wrote:

> 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?
> 
> system is FreeBSD v6.2
> 
> Thank you in advance for guidance, suggestions.

It shouldn't be a problem. If you stick the "broken" drive in a new
system it will show up as a new device to the 2nd system.

You will then manually mount the 1st system via the device node to
wherever you want. It will not auto-mount that to /var .

So, for example your 2nd system has /dev/ad4s1  as its main disk.
When you plig the 2nd disk (from the old box) it will show up as
/dev/ad5s1 or similar. YOu would then just mount the /var/ slice to
wherever you want. 

For example:
mount /dev/ad5sa6 /mnt/oldvar

or similar. Please note that your device nodes and slice numbers
will most likely be different.

Henrik
-- 
Henrik Hudson
li...@rhavenn.net
-
"God, root, what is difference?" Pitr; UF 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"