Quantcast

MBR is not detected on /dev/md0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

MBR is not detected on /dev/md0

Lev Serebryakov
Hello, Freebsd-geom.

I have image of old HDD with one MBR slice and some FFS partitions on
 it.
I mount it ad `md0', but `md0s1' doesn't appear:

root@blob:/usr/home/storage/219 # uname -a
FreeBSD blob.home.serebryakov.spb.ru 9.0-STABLE FreeBSD 9.0-STABLE #30: Sat May 19 21:34:53 MSK 2012     [hidden email]:/usr/obj/usr/src/sys/BLOB  amd64
root@blob:/usr/home/storage/219 # mdconfig -a -t vnode -f 219_1.img
md0
root@blob:/usr/home/storage/219 # ls /dev/md0*
/dev/md0
root@blob:/usr/home/storage/219 # true > /dev/md0
root@blob:/usr/home/storage/219 # ls /dev/md0*
/dev/md0
root@blob:/usr/home/storage/219 # file -s /dev/md0
/dev/md0: x86 boot sector; partition 1: ID=0xa5, active, starthead 1, startsector 63, 12594897 sectors, code offset 0x31
root@blob:/usr/home/storage/219 #

  GEOM_PART_MBR is compiled into kernel:

root@blob:/usr/home/storage/219 # geom part list
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 625142447
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada0s1
   Mediasize: 320070288384 (298G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r5w5e14
   attrib: active
   rawtype: 165
   length: 320070288384
   offset: 32256
   type: freebsd
   index: 1
   end: 625137344
   start: 63
Consumers:
1. Name: ada0
   Mediasize: 320072933376 (298G)
   Sectorsize: 512
   Mode: r5w5e19
....


--
// Black Lion AKA Lev Serebryakov <[hidden email]>

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[hidden email]"
ae
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MBR is not detected on /dev/md0

ae
On 28.05.2012 0:40, Lev Serebryakov wrote:
> Hello, Freebsd-geom.
>
> I have image of old HDD with one MBR slice and some FFS partitions on
>  it.
> I mount it ad `md0', but `md0s1' doesn't appear:

Hi, Lev.

Probably MBR on your image doesn't pass integrity checks.

--
WBR, Andrey V. Elsukov
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[hidden email]"
Loading...