Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2002 21:44:07 -0500
From:      Brian T.Schellenberger <bts@babbleon.org>
To:        Carlos Antonio Ruggiero <toto@sdf.lonestar.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: booting from extended slice
Message-ID:  <20020319024407.751EFBA05@i8k.babbleon.org>
In-Reply-To: <200203190148.g2J1mVp25047@sdf.lonestar.org>
References:  <200203190148.g2J1mVp25047@sdf.lonestar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 18 March 2002 08:48 pm, Carlos Antonio Ruggiero wrote:
| Hi,
|
| 	I'm trying to boot from an extended partition (slice).  From
| what I have read in the archives, FreeBSD doesn't support this. I
| managed to boot the 4.5R kernel by hacking boot2.c to point directly
| to the start of the extended partition..It does work if I boot the
| kernel directly but if I boot the loader, it does not see the extended
| slice. In fact, lsdev seems to see SOME extended slices but not the
| others...
|
|    My question: is this a normal behaviour of the loader? a bug? some kind
| of limitation?

What good will it do you if do boot it?  FreeBSD doesn't support UFS in 
extended partitions anyway.  I guess you could use ext2 or FAT32 partitions 
as your paritions for the sysem (ext2 would presumably work a lot better), 
but why do you want to do such a thing?  You'd be working in a very 
unsupported environemnt.

I consider this a major FreeBSD weakness but other O/S's don't care so much 
about primary vs. extended and FreeBSD only needs one partition--it'll 
subdivide the rest.

What are the "73" type partitions?  Immovable?

|
| Some info on the hard disk:
|
|
| Linux fdisk reports:
|
|
| Command (m for help):
| Disk /dev/hda: 255 heads, 63 sectors, 9732 cylinders
| Units = cylinders of 16065 * 512 bytes
|
|    Device Boot    Start       End    Blocks   Id  System
| /dev/hda1             1       230   1847443+   6  FAT16
| /dev/hda2           231       395   1325362+  73  Unknown
| /dev/hda3           396       560   1325362+  73  Unknown
| /dev/hda4   *       561      9731  73666057+   5  Extended
| /dev/hda5   *       561      1023   3719016   83  Linux
| /dev/hda6          1024      1087    514048+  82  Linux swap
| /dev/hda7          1088      2235   9221278+  83  Linux
| /dev/hda8          2236      2482   1983996    b  Win95 FAT32
| /dev/hda9   *      2483      3056   4610623+  83  Linux
| /dev/hda10  *      3057      3630   4610623+  a5  BSD/386
| /dev/hda11  *      3631      4205   4618624+  83  Linux
| /dev/hda12         4206      4460   2048256    6  FAT16
|
| Command (m for help):
|
| I trying to boot from hda10
|
| and /stand/sysinstall (in wizard mode) says:
|
| --==##==--
| Debug_Disk(ad0)  flags=0  bios_geom=9732/255/63 = 156344580
|   boot1=0x0, boot2=0x0, bootmgr=0x0
| -->        0x82e5480        0 156355584 156355583 ad0      whole    0x00
|   -->      0x82e54c0        0       63       62 -        unused   0x00
|   -->      0x82e5500       63  3694887  3694949 ad0s1    fat      0x06
|   -->      0x82e5540  3694950  2650725  6345674 ad0s2    unknown  0x63
|   -->      0x82e55c0  6345675  2650725  8996399 ad0s3    unknown  0x63
|   -->      0x82e5600  8996400 147332115 156328514 ad0s4    extended 0x05
|     -->    0x82e5640  8996400       63  8996462 -        unused   0x00
|     -->    0x82e5580  8996463  7438032 16434494 ad0s5    unknown  0x83
|     -->    0x82e56c0 16434495       63 16434557 -        unused   0x00
|     -->    0x82e5700 16434558  1028097 17462654 ad0s6    unknown  0x82
|     -->    0x82e5740 17462655       63 17462717 -        unused   0x00
|     -->    0x82e5780 17462718 18442557 35905274 ad0s7    unknown  0x83
|     -->    0x82e57c0 35905275       63 35905337 -        unused   0x00
|     -->    0x82e5800 35905338  3967992 39873329 ad0s8    fat      0x0b
|     -->    0x82e5840 39873330       63 39873392 -        unused   0x00
|     -->    0x82e5880 39873393  9221247 49094639 ad0s9    unknown  0x83
|     -->    0x82e58c0 49094640       63 49094702 -        unused   0x00
|     -->    0x82e5900 49094703  9221247 58315949 ad0s10   freebsd  0xa5
|       -->  0x82e5940 49094703   819315 49914017 ad0s10b  part     0x01
|       -->  0x82e59c0 49914018  8401932 58315949 ad0s10a  part     0x07
|     -->    0x82e5980 58315950      126 58316075 -        unused   0x00
|     -->    0x82e5a00 58316076  9237249 67553324 ad0s11   unknown  0x83
|     -->    0x82e5a40 67553325       63 67553387 -        unused   0x00
|     -->    0x82e5a80 67553388  4096512 71649899 ad0s12   fat      0x06
|     -->    0x82e5ac0 71649900 84678615 156328514 -        unused   0x00
|   -->      0x82e5680 156328515    27069 156355583 -        unused   0x00
| ad0>
|
| lsdev says:
| ....
| disk1s5:ext2fs
| disk1s7: Linux swap (shouldn't it be s6? s7 is ext2fs...)
|
| Thanks for any help/pointers..
|
| Toto
| toto@sdf.lonestar.org
|
| To Unsubscribe: send mail to majordomo@FreeBSD.org
| with "unsubscribe freebsd-hackers" in the body of the message

-- 
Brian T. Schellenberger . . . . . . .   bts@wnt.sas.com (work)
Brian, the man from Babble-On . . . .   bts@babbleon.org (personal)
                                ME -->  http://www.babbleon.org
http://www.eff.org   <-- GOOD GUYS -->  http://www.programming-freedom.org 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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