Bruce Dubbs wrote:
> Ken Moffat wrote:
>> On Fri, May 04, 2012 at 11:14:19AM -0500, Bruce Dubbs wrote:
>>> Ken Moffat wrote:
>>>
>>>>   Actually, 10 bootable partitions on a dos disk is pushing it  - I
>>>> suppose one or more of /boot, /home, swap is in a primary partition.
>>> Why?
>>>
>>> As of Jan 20, 2010
>>>
>>> Disk /dev/sda: 320.1 GB, 320072933376 bytes
>>> 255 heads, 63 sectors/track, 38913 cylinders
>>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>> Disk identifier: 0x00000080
>>>
>>>      Device Boot      Start         End
>>> /dev/sda1   *          63      208844   /boot       100M
>>> /dev/sda2          208845    19743884   /opt         10G minus
>>> /dev/sda3        19743885    25607609   Swap          2G
>>> /dev/sda4        25607671   439398399   Extended
>>> /dev/sda5        25607673    46588499   lfs-7.0-rc?  10G
>>> /dev/sda6        46588563    67569389   lfs-6.5      10G Aug 2009
>>> /dev/sda7        67569453    87104429   Ubuntu 9.04  10G minus
>>> /dev/sda8        87104493   108085319   blfs dev     10G
>>> /dev/sda9       108085383   191992814   /usr/src     40G
>>> /dev/sda10      191992878   233954594   /mnt/backup  20G
>>> /dev/sda11      233954658   254935484   /home        10G
>>> /dev/sda12      254935548   317862089   ??           30G
>>> /dev/sda13      317862153   338842979   lfs-20110110 10G
>>> /dev/sda14      338843043   359823869   lfs-20100816 10G
>>> /dev/sda15      359823933   380804759   lfs-7.1-rc1  10G
>>> /dev/sda16      380805120   419866623   ubuntu 11.04 20G
>>> /dev/sda17      419868672   439398399   ubuntu 10.10 9G
>>>
>>>
>>>     -- Bruce
>>   I believed, obviously wrongly, that the maximum value for a logical
>> partition on dos disks was 15.
> I think the max is 63, but that would be in the kernel and maybe grub.
>
>>   Did you have to do the math yourself to get the sizes in that
>> table ?
> Yes.  I just did fdisk -l /dev/sda>  disk-layout and edited that to add my 
> notes.
>
>     -- Bruce
A snip from the /dev direcyory on my latest machine:

# ls -lv sd*
...
brw-rw---- 1 root disk 8, 15 May  4 13:03 sda15
brw-rw---- 1 root disk 8, 16 May  4 13:03 sdb
...
brw-rw---- 1 root disk 8, 31 May  4 13:03 sdb15
brw-rw---- 1 root disk 8, 32 May  4 13:03 sdc
...

The most logical place for sda16 would be where sdb is.  Maybe if I
had more, sdb would be moved to where sdc is.  I used to have more
partitions on my IDE drives.

I guess I do things differently.  My latest machine has maintenance
partitions at sd?1.  The first two drives have 10 bootable partitions
each of 25GB. (My old one only has 10 on the first drive.  Who would
have thought I would want more?)  Most of the disk space is in
a single partition on each drive.

I use LILO to boot with, and have one in each partition that is used.
When I tried to put GRUB in other partitions, the package just said
it was a bad idea; so I used a good idea :-รพ.  When I run lilo -r on
another LFS partition, I use a workaround script to bind dev to
/dev since lilo will not work unless it finds the relevant device in
/dev after chroot.

I thought of a maintenance partition, back when I never had
enough disk space and gerrymandered my drives about twice
a year.  I just left sda1 (or hda1) alone and repartitioned the rest
of the drive from there.  sdb1 is used to develop another
partition to put in sda1.  I will probably never use sdc1.

As a holdover from the old days, I put a swapfile in my maintenance
partition; which reminds me; I have to renumber the links to swap,
so swapon occurs after the partitions are mounted and swapoff
occurs before they are unmounted.

This is far enough off topic(s).  I originally had a problem with X
acceleration with LFS-7.1 with my old computer (LFS-7.0 works ok)
and got inetutils to work, then discovered it was missing from
the latest BLFS books.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to