Re: Mounting a partition from freebsd 6.2?

2009-01-14 Thread mojo fms
It was /dev/ad2s1.

I was able to do a force mount of the partition though and started
recovering the information I was looking for.  I am not sure why it is not
allowing it in general but I have access to most of the files right now
which is good.  Has anybody had any problems with 6.2 formatted partitions
not wanting to mount in 7?

On Tue, Jan 13, 2009 at 7:45 AM, Jerry McAllister jerr...@msu.edu wrote:

 On Tue, Jan 13, 2009 at 12:06:25AM -0800, per...@pluto.rain.com wrote:

is there anything specific I should look at for switches or
just dump /dev/ad2s1 | restore?
  
   Use:dump 0af - | restore -rf -
 
  It would be advisable to read the dump and restore manpages first.
 
  In 6.1, and I suspect still in 6.2, restore -r should be used only
  when restoring onto an empty filesystem or loading an incremental on
  top of such a full restore.  If the destination (current directory)
  is not the root of an empty filesystem, you want restore -x or
  restore -i instead.

 I think he was talking about a full filesystem restore in which
 case 'restore -rf' would be correct.

 The man page actually is a tiny bit misleading on the -r.
 You can use it to restore the whole filesystem in any dedicated space
 including any directory.   But with -r you just cannot specify which part
 of the filesystem you want to restore, such as a particular directory
 or file.  For that you will need -xf which will work for a full filesystem
 too in most cases.

 jerry

  ___
  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: Mounting a partition from freebsd 6.2?

2009-01-13 Thread perryh
  is there anything specific I should look at for switches or
  just dump /dev/ad2s1 | restore?

 Use:dump 0af - | restore -rf -  

It would be advisable to read the dump and restore manpages first.

In 6.1, and I suspect still in 6.2, restore -r should be used only
when restoring onto an empty filesystem or loading an incremental on
top of such a full restore.  If the destination (current directory)
is not the root of an empty filesystem, you want restore -x or
restore -i instead.
___
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: Mounting a partition from freebsd 6.2?

2009-01-13 Thread Jerry McAllister
On Tue, Jan 13, 2009 at 12:06:25AM -0800, per...@pluto.rain.com wrote:

   is there anything specific I should look at for switches or
   just dump /dev/ad2s1 | restore?
 
  Use:dump 0af - | restore -rf -  
 
 It would be advisable to read the dump and restore manpages first.
 
 In 6.1, and I suspect still in 6.2, restore -r should be used only
 when restoring onto an empty filesystem or loading an incremental on
 top of such a full restore.  If the destination (current directory)
 is not the root of an empty filesystem, you want restore -x or
 restore -i instead.

I think he was talking about a full filesystem restore in which 
case 'restore -rf' would be correct.

The man page actually is a tiny bit misleading on the -r.
You can use it to restore the whole filesystem in any dedicated space
including any directory.   But with -r you just cannot specify which part 
of the filesystem you want to restore, such as a particular directory 
or file.  For that you will need -xf which will work for a full filesystem 
too in most cases.

jerry

 ___
 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: Mounting a partition from freebsd 6.2?

2009-01-12 Thread mojo fms
I can run a check disk on it and it returned that the file system was
previously mounted on /mnt/backup and returns that the file system is in
good shape.  I will have to wait until I get back in front of it to attempt
the dump piped to restore.  I have never had to recover a drive like that,
is there anything specific I should look at for switches or just dump
/dev/ad2s1 | restore?

On Sun, Jan 11, 2009 at 7:13 PM, per...@pluto.rain.com wrote:

  mojo fms fbsdli...@gmail.com wrote:

  I was working on an upgrade to 6.3 from 6.2 and I lost power
  during the install which hosed most of my system.  Instead of
  trying to really recover it I decided to just rebuild.  I have a
  backup of my /etc and /usr/local/etc on a different drive that
  should be fine, it was just mounted under /mnt normally and used
  for backups.  My problem is that I installed 7.1 and was careful
  not to erase any data on that drive, but my only options for a
  partition to mount is /dev/ad2s1.  When  I try to mount that it
  gives me mount: /dev/ad2s1 : Operation not permitted, what can
  I do to get the data off of it?  I only really care about my /etc
  information  but it would be nice to get all of the information
  off of it.

 Supposing ad2s1 is in fact the slice containing the filesystem in
 question, and the filesystem was originally made directly on that
 slice without partitioning it, it should be possible to run dump(8)
 against it and pipe the output to restore(8).  This should work if
 the slice is readable, even if it cannot be mounted.

___
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: Mounting a partition from freebsd 6.2?

2009-01-12 Thread Jerry McAllister
On Mon, Jan 12, 2009 at 01:15:52PM -0800, mojo fms wrote:

 I can run a check disk on it and it returned that the file system was
 previously mounted on /mnt/backup and returns that the file system is in
 good shape.  I will have to wait until I get back in front of it to attempt
 the dump piped to restore.  I have never had to recover a drive like that,
 is there anything specific I should look at for switches or just dump
 /dev/ad2s1 | restore?

Use:dump 0af - | restore -rf -  
 
 On Sun, Jan 11, 2009 at 7:13 PM, per...@pluto.rain.com wrote:
 
   mojo fms fbsdli...@gmail.com wrote:
 
   I was working on an upgrade to 6.3 from 6.2 and I lost power
   during the install which hosed most of my system.  Instead of
   trying to really recover it I decided to just rebuild.  I have a
   backup of my /etc and /usr/local/etc on a different drive that
   should be fine, it was just mounted under /mnt normally and used
   for backups.  My problem is that I installed 7.1 and was careful
   not to erase any data on that drive, but my only options for a
   partition to mount is /dev/ad2s1.  When  I try to mount that it
   gives me mount: /dev/ad2s1 : Operation not permitted, what can
   I do to get the data off of it?  I only really care about my /etc
   information  but it would be nice to get all of the information
   off of it.

Is it already mounted as something?

Do a df -k  and see what shows up.

Was it just  /dev/ad2s1or   
more like/dev/ad2s1a  (or some other partition letter?

jerry   

 
  Supposing ad2s1 is in fact the slice containing the filesystem in
  question, and the filesystem was originally made directly on that
  slice without partitioning it, it should be possible to run dump(8)
  against it and pipe the output to restore(8).  This should work if
  the slice is readable, even if it cannot be mounted.
 
 ___
 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


Mounting a partition from freebsd 6.2?

2009-01-11 Thread mojo fms
I was working on an upgrade to 6.3 from 6.2 and I lost power during the
install which hosed most of my system.  Instead of trying to really recover
it I decided to just rebuild.  I have a backup of my /etc and /usr/local/etc
on a different drive that should be fine, it was just mounted under /mnt
normally and used for backups.  My problem is that I installed 7.1 and was
careful not to erase any data on that drive, but my only options for a
partition to mount is /dev/ad2s1.  When  I try to mount that it gives me
mount: /dev/ad2s1 : Operation not permitted, what can I do to get the data
off of it?  I only really care about my /etc information  but it would be
nice to get all of the information off of it.
___
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: Mounting a partition from freebsd 6.2?

2009-01-11 Thread perryh
mojo fms fbsdli...@gmail.com wrote:

 I was working on an upgrade to 6.3 from 6.2 and I lost power
 during the install which hosed most of my system.  Instead of
 trying to really recover it I decided to just rebuild.  I have a
 backup of my /etc and /usr/local/etc on a different drive that
 should be fine, it was just mounted under /mnt normally and used
 for backups.  My problem is that I installed 7.1 and was careful
 not to erase any data on that drive, but my only options for a
 partition to mount is /dev/ad2s1.  When  I try to mount that it
 gives me mount: /dev/ad2s1 : Operation not permitted, what can
 I do to get the data off of it?  I only really care about my /etc
 information  but it would be nice to get all of the information
 off of it.

Supposing ad2s1 is in fact the slice containing the filesystem in
question, and the filesystem was originally made directly on that
slice without partitioning it, it should be possible to run dump(8)
against it and pipe the output to restore(8).  This should work if
the slice is readable, even if it cannot be mounted.
___
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