Re: Mounting/examining dd image?

2007-11-07 Thread Chad Gross
On Nov 7, 2007 7:44 PM, Chad Gross <[EMAIL PROTECTED]> wrote:

>
>
> On Nov 3, 2007 3:38 PM, Jon Drukman <[EMAIL PROTECTED]> wrote:
>
> > On Nov 3, 2007 9:23 AM, Warren Block <[EMAIL PROTECTED]> wrote:
> > > vnconfig is the predecessor of mdconfig.  It should be present in 4.9.
> >
> > thanks, it is.  however, i am unable to mount the vnconfig'd device.
> > any ideas?  i made the backup originally just by doing dd if=/dev/ad0
> > of=some.file
> >
> > then i ran vnconfig vn0 some.file
> >
> > if i dd /dev/ad0 i see all the boot sector stuff, etc.  however i
> > can't use disklabel or mount.
> >
> > # disklabel -r vn0
> > disklabel: bad pack magic number (label is damaged, or pack is
> > unlabeled)
> > # disklabel -r vn0a
> > disklabel: bad pack magic number (label is damaged, or pack is
> > unlabeled)
> > # disklabel -r vn0b
> > disklabel: bad pack magic number (label is damaged, or pack is
> > unlabeled)
> >
> > # mount /dev/vn0s1a /mnt
> > mount: /dev/vn0s1a on /mnt: incorrect super block
> >
>
> You have to mount the device with 'mount -t cd9660' because it is an ISO
> which is a cd9660 format.
>
>

Never mind I saw imagine and thought ISO. I apologize, this should hopefully
help:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html

>
> >
> > it seems like the data is there but i don't know how to access it.
> >
> >   fc 31 c0 8e c0 8e d8 8e  d0 bc 00 7c be 1a 7c bf
> >  |.1.|..|.|
> > 0010  1a 06 b9 e6 01 f3 a4 e9  00 8a 31 f6 bb be 07 b1
> >  |..1.|
> > 0020  04 38 2f 74 08 7f 78 85  f6 75 74 89 de 80 c3 10
> >  |.8/t..x..ut.|
> > 0030  e2 ef 85 f6 75 02 cd 18  80 fa 80 72 0b 8a 36 75
> >  |u..r..6u|
> > 0040  04 80 c6 80 38 f2 72 02  8a 14 89 e7 8a 74 01 8b
> >  |8.r..t..|
> > 0050  4c 02 bb 00 7c 80 fe ff  75 32 83 f9 ff 75 2d 51
> >  |L...|...u2...u-Q|
> > 0060  53 bb aa 55 b4 41 cd 13  72 20 81 fb 55 aa 75 1a  |S..U.A..r
> > ..U.u.|
> > 0070  f6 c1 01 74 15 5b 66 6a  00 66 ff 74 08 06 53 6a  |...t.[
> > fj.f.t..Sj|
> > 0080  01 6a 10 89 e6 b8 00 42  eb 05 5b 59 b8 01 02 cd
> >  |.j.B..[Y|
> > 0090  13 89 fc 72 0f 81 bf fe  01 55 aa 75 0c ff e3 be
> >  |...r.U.u|
> > 00a0  bc 06 eb 11 be d4 06 eb  0c be f3 06 eb 07 bb 07
> >  ||
> > 00b0  00 b4 0e cd 10 ac 84 c0  75 f4 eb fe 49 6e 76 61
> >  |u...Inva|
> > 00c0  6c 69 64 20 70 61 72 74  69 74 69 6f 6e 20 74 61  |lid
> > partition ta|
> > 00d0  62 6c 65 00 45 72 72 6f  72 20 6c 6f 61 64 69 6e  |ble.Error
> > loadin|
> > 00e0  67 20 6f 70 65 72 61 74  69 6e 67 20 73 79 73 74  |g operating
> > syst|
> > 00f0  65 6d 00 4d 69 73 73 69  6e 67 20 6f 70 65 72 61  |em.Missing
> > opera|
> > 0100  74 69 6e 67 20 73 79 73  74 65 6d 00 00 00 00 00  |ting
> > system.|
> > 0110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
> >  ||
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> > [EMAIL PROTECTED]"
> >
>
>
>
> --
> Chad M. Gross




-- 
Chad M. Gross
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting/examining dd image?

2007-11-07 Thread Chad Gross
On Nov 3, 2007 3:38 PM, Jon Drukman <[EMAIL PROTECTED]> wrote:

> On Nov 3, 2007 9:23 AM, Warren Block <[EMAIL PROTECTED]> wrote:
> > vnconfig is the predecessor of mdconfig.  It should be present in 4.9.
>
> thanks, it is.  however, i am unable to mount the vnconfig'd device.
> any ideas?  i made the backup originally just by doing dd if=/dev/ad0
> of=some.file
>
> then i ran vnconfig vn0 some.file
>
> if i dd /dev/ad0 i see all the boot sector stuff, etc.  however i
> can't use disklabel or mount.
>
> # disklabel -r vn0
> disklabel: bad pack magic number (label is damaged, or pack is unlabeled)
> # disklabel -r vn0a
> disklabel: bad pack magic number (label is damaged, or pack is unlabeled)
> # disklabel -r vn0b
> disklabel: bad pack magic number (label is damaged, or pack is unlabeled)
>
> # mount /dev/vn0s1a /mnt
> mount: /dev/vn0s1a on /mnt: incorrect super block
>

You have to mount the device with 'mount -t cd9660' because it is an ISO
which is a cd9660 format.


>
>
> it seems like the data is there but i don't know how to access it.
>
>   fc 31 c0 8e c0 8e d8 8e  d0 bc 00 7c be 1a 7c bf
>  |.1.|..|.|
> 0010  1a 06 b9 e6 01 f3 a4 e9  00 8a 31 f6 bb be 07 b1
>  |..1.|
> 0020  04 38 2f 74 08 7f 78 85  f6 75 74 89 de 80 c3 10
>  |.8/t..x..ut.|
> 0030  e2 ef 85 f6 75 02 cd 18  80 fa 80 72 0b 8a 36 75
>  |u..r..6u|
> 0040  04 80 c6 80 38 f2 72 02  8a 14 89 e7 8a 74 01 8b
>  |8.r..t..|
> 0050  4c 02 bb 00 7c 80 fe ff  75 32 83 f9 ff 75 2d 51
>  |L...|...u2...u-Q|
> 0060  53 bb aa 55 b4 41 cd 13  72 20 81 fb 55 aa 75 1a  |S..U.A..r
> ..U.u.|
> 0070  f6 c1 01 74 15 5b 66 6a  00 66 ff 74 08 06 53 6a  |...t.[
> fj.f.t..Sj|
> 0080  01 6a 10 89 e6 b8 00 42  eb 05 5b 59 b8 01 02 cd
>  |.j.B..[Y|
> 0090  13 89 fc 72 0f 81 bf fe  01 55 aa 75 0c ff e3 be
>  |...r.U.u|
> 00a0  bc 06 eb 11 be d4 06 eb  0c be f3 06 eb 07 bb 07
>  ||
> 00b0  00 b4 0e cd 10 ac 84 c0  75 f4 eb fe 49 6e 76 61
>  |u...Inva|
> 00c0  6c 69 64 20 70 61 72 74  69 74 69 6f 6e 20 74 61  |lid partition
> ta|
> 00d0  62 6c 65 00 45 72 72 6f  72 20 6c 6f 61 64 69 6e  |ble.Error
> loadin|
> 00e0  67 20 6f 70 65 72 61 74  69 6e 67 20 73 79 73 74  |g operating
> syst|
> 00f0  65 6d 00 4d 69 73 73 69  6e 67 20 6f 70 65 72 61  |em.Missing
> opera|
> 0100  74 69 6e 67 20 73 79 73  74 65 6d 00 00 00 00 00  |ting
> system.|
> 0110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
>  ||
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>



-- 
Chad M. Gross
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting/examining dd image?

2007-11-07 Thread Jon Drukman
On Nov 7, 2007 4:52 PM, Chad Gross <[EMAIL PROTECTED]> wrote:

>
> # mount /dev/vn0s1a /mnt
> > > mount: /dev/vn0s1a on /mnt: incorrect super block
> > >
> >
> > You have to mount the device with 'mount -t cd9660' because it is an ISO
> > which is a cd9660 format.
> >
> >
>
> Never mind I saw imagine and thought ISO. I apologize, this should
> hopefully help: 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html
>
>

thanks, but no, it doesn't help.  i made this image by doing dd if=/dev/ad0
of=some.file, but i haven't yet found the magic incantation for being able
to mount the filesystems.

if i ever get some free time i am going to have to open the box up, attach a
real hard disk and try dd'ing the image back onto the disk at least long
enough to get the important files out of it.


-jsd-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting/examining dd image?

2007-11-03 Thread Jon Drukman
On Nov 3, 2007 9:23 AM, Warren Block <[EMAIL PROTECTED]> wrote:
> vnconfig is the predecessor of mdconfig.  It should be present in 4.9.

thanks, it is.  however, i am unable to mount the vnconfig'd device.
any ideas?  i made the backup originally just by doing dd if=/dev/ad0
of=some.file

then i ran vnconfig vn0 some.file

if i dd /dev/ad0 i see all the boot sector stuff, etc.  however i
can't use disklabel or mount.

# disklabel -r vn0
disklabel: bad pack magic number (label is damaged, or pack is unlabeled)
# disklabel -r vn0a
disklabel: bad pack magic number (label is damaged, or pack is unlabeled)
# disklabel -r vn0b
disklabel: bad pack magic number (label is damaged, or pack is unlabeled)

# mount /dev/vn0s1a /mnt
mount: /dev/vn0s1a on /mnt: incorrect super block


it seems like the data is there but i don't know how to access it.

  fc 31 c0 8e c0 8e d8 8e  d0 bc 00 7c be 1a 7c bf  |.1.|..|.|
0010  1a 06 b9 e6 01 f3 a4 e9  00 8a 31 f6 bb be 07 b1  |..1.|
0020  04 38 2f 74 08 7f 78 85  f6 75 74 89 de 80 c3 10  |.8/t..x..ut.|
0030  e2 ef 85 f6 75 02 cd 18  80 fa 80 72 0b 8a 36 75  |u..r..6u|
0040  04 80 c6 80 38 f2 72 02  8a 14 89 e7 8a 74 01 8b  |8.r..t..|
0050  4c 02 bb 00 7c 80 fe ff  75 32 83 f9 ff 75 2d 51  |L...|...u2...u-Q|
0060  53 bb aa 55 b4 41 cd 13  72 20 81 fb 55 aa 75 1a  |S..U.A..r ..U.u.|
0070  f6 c1 01 74 15 5b 66 6a  00 66 ff 74 08 06 53 6a  |...t.[fj.f.t..Sj|
0080  01 6a 10 89 e6 b8 00 42  eb 05 5b 59 b8 01 02 cd  |.j.B..[Y|
0090  13 89 fc 72 0f 81 bf fe  01 55 aa 75 0c ff e3 be  |...r.U.u|
00a0  bc 06 eb 11 be d4 06 eb  0c be f3 06 eb 07 bb 07  ||
00b0  00 b4 0e cd 10 ac 84 c0  75 f4 eb fe 49 6e 76 61  |u...Inva|
00c0  6c 69 64 20 70 61 72 74  69 74 69 6f 6e 20 74 61  |lid partition ta|
00d0  62 6c 65 00 45 72 72 6f  72 20 6c 6f 61 64 69 6e  |ble.Error loadin|
00e0  67 20 6f 70 65 72 61 74  69 6e 67 20 73 79 73 74  |g operating syst|
00f0  65 6d 00 4d 69 73 73 69  6e 67 20 6f 70 65 72 61  |em.Missing opera|
0100  74 69 6e 67 20 73 79 73  74 65 6d 00 00 00 00 00  |ting system.|
0110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ||
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting/examining dd image?

2007-11-03 Thread John Nielsen
On Saturday 03 November 2007, Jon Drukman wrote:
> Hm, anything that works in Freebsd 4.9?  I've never been able to
> install 5.0 or higher on this machine, it always freezes when booting.

In 4.x the analogous command is called vnconfig with slightly different 
syntax.

> On Nov 2, 2007 10:22 PM, John Nielsen <[EMAIL PROTECTED]> wrote:
> > On Friday 02 November 2007, Jon Drukman wrote:
> > > I was trying to transplant my system from a small, old drive to a
> > > big, new one.  I made a dd dump of the entire small drive, but then I
> > > accidentally destroyed the drive (be careful with bare drives and
> > > metal PC cases...)
> > >
> > > Anyway, I have the dd file but I don't have a spare drive onto which
> > > to copy it.  Is there a way to read its contents/mount it/explore
> > > it/hopefully extract files from it on a running system?
> >
> > Yes there is:
> >
> > mdconfig -a -t vnode -f "/path/to/dd/image/file"
> >
> > That will cause the file to be treated as an md device. See also man
> > mdconfig. The output of that command is the newly created /dev/md?
> > device node. Depending on whether you dumped the whole disk, a slice,
> > or a partition there may be additional devices. If you dd'ed the whole
> > disk your former root partition might show up as /dev/md0s1a, for
> > example.
> >
> > Once you've identified the device node(s) that contain(s) the
> > filesystem(s) you're interested in, just mount it/them like you would
> > any other device, e.g.
> > mount /dev/md0s1a /mnt
> >
> > JN


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


Re: Mounting/examining dd image?

2007-11-03 Thread Warren Block

On Sat, 3 Nov 2007, Jon Drukman wrote:


Hm, anything that works in Freebsd 4.9?  I've never been able to
install 5.0 or higher on this machine, it always freezes when booting.


Please don't top post.

vnconfig is the predecessor of mdconfig.  It should be present in 4.9.

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting/examining dd image?

2007-11-03 Thread Jon Drukman
Hm, anything that works in Freebsd 4.9?  I've never been able to
install 5.0 or higher on this machine, it always freezes when booting.

On Nov 2, 2007 10:22 PM, John Nielsen <[EMAIL PROTECTED]> wrote:
>
> On Friday 02 November 2007, Jon Drukman wrote:
> > I was trying to transplant my system from a small, old drive to a big,
> > new one.  I made a dd dump of the entire small drive, but then I
> > accidentally destroyed the drive (be careful with bare drives and
> > metal PC cases...)
> >
> > Anyway, I have the dd file but I don't have a spare drive onto which
> > to copy it.  Is there a way to read its contents/mount it/explore
> > it/hopefully extract files from it on a running system?
>
> Yes there is:
>
> mdconfig -a -t vnode -f "/path/to/dd/image/file"
>
> That will cause the file to be treated as an md device. See also man
> mdconfig. The output of that command is the newly created /dev/md? device
> node. Depending on whether you dumped the whole disk, a slice, or a
> partition there may be additional devices. If you dd'ed the whole disk your
> former root partition might show up as /dev/md0s1a, for example.
>
> Once you've identified the device node(s) that contain(s) the filesystem(s)
> you're interested in, just mount it/them like you would any other device,
> e.g.
> mount /dev/md0s1a /mnt
>
> JN
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mounting/examining dd image?

2007-11-02 Thread John Nielsen
On Friday 02 November 2007, Jon Drukman wrote:
> I was trying to transplant my system from a small, old drive to a big,
> new one.  I made a dd dump of the entire small drive, but then I
> accidentally destroyed the drive (be careful with bare drives and
> metal PC cases...)
>
> Anyway, I have the dd file but I don't have a spare drive onto which
> to copy it.  Is there a way to read its contents/mount it/explore
> it/hopefully extract files from it on a running system?

Yes there is:

mdconfig -a -t vnode -f "/path/to/dd/image/file"

That will cause the file to be treated as an md device. See also man 
mdconfig. The output of that command is the newly created /dev/md? device 
node. Depending on whether you dumped the whole disk, a slice, or a 
partition there may be additional devices. If you dd'ed the whole disk your 
former root partition might show up as /dev/md0s1a, for example.

Once you've identified the device node(s) that contain(s) the filesystem(s) 
you're interested in, just mount it/them like you would any other device, 
e.g.
mount /dev/md0s1a /mnt

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Mounting/examining dd image?

2007-11-02 Thread Jon Drukman
I was trying to transplant my system from a small, old drive to a big,
new one.  I made a dd dump of the entire small drive, but then I
accidentally destroyed the drive (be careful with bare drives and
metal PC cases...)

Anyway, I have the dd file but I don't have a spare drive onto which
to copy it.  Is there a way to read its contents/mount it/explore
it/hopefully extract files from it on a running system?

-jsd-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"