[PARPORT] Partition usage...


Riley Williams (rhw@bigfoot.com)
Thu, 14 May 1998 15:22:05 +0100 (BST)


Hi David.

Not sure which of the above is your email address (both appear in
your message), so have used both of them to make sure at least
one copy gets through...

>> Partition check:
>> hda: hda1 hda3 hda4 < hda5 >
>> hdc: [PTBL] [1023/64/63] hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6
>> hdc7 hdc8 hdc9 >

> Side comment: This is the biggest partition set I have seen on
> a linux box (8 usable partitions). Are you using these for
> /tmp, /var,...

> It would be the first time I have heard/seen this done on a
> linux box. Just curious.

Here's my /etc/fstab for your reference...

Q> /dev/hda1 / ext2 defaults 1 1
Q> /dev/hda3 /dos/c vfat defaults,umask=0
Q> /dev/hda5 /backups ext2 defaults,ro 1 2

Q> /dev/hdc1 /tmp ext2 defaults 1 2
Q> /dev/hdc2 /root ext2 defaults 1 2
Q> /dev/hdc5 /home ext2 defaults,usrquota 1 2
Q> /dev/hdc6 /usr ext2 defaults 1 2
Q> /dev/hdc7 /usr/src ext2 defaults 1 2
Q> /dev/hdc8 /usr/doc ext2 defaults 1 2
Q> /dev/hdc9 /home/ftp ext2 defaults,usrquota 1 2

Q> # /dev/hdd1 /dos/d vfat defaults,umask=0
Q> # /dev/hdd5 /dos/e vfat defaults,umask=0
Q> # /dev/hdd6 /dos/f vfat defaults,umask=0
Q> # /dev/hdd7 /dos/g vfat defaults,umask=0
Q> # /dev/hdd8 /dos/h vfat defaults,umask=0
Q> # /dev/hdd9 /dos/i vfat defaults,umask=0
Q> # /dev/hdd10 /dos/j vfat defaults,umask=0
Q> # /dev/hdd11 /dos/k vfat defaults,umask=0
Q> # /dev/hdd12 /dos/l vfat defaults,umask=0

Q> /dev/hdc3 swap swap defaults
Q> # /dev/hdd3 swap swap defaults

Q> /dev/cdrom /cdrom iso9660 noauto,user,ro

Q> /dev/fd0 /fd0 auto noauto,user

Q> /dev/sda1 /zip auto noauto,user
Q> /dev/sda2 /zip auto noauto,user
Q> /dev/sda3 /zip auto noauto,user
Q> /dev/sda4 /zip auto noauto,user

Q> /proc /proc proc defaults

As you can see, one of those eight partitions is a swap partition,
so only seven in use for Linux itself...and /dev/hdd is currently
not present, but the allocations when it was can clearly be seen...

Also connected with the above is the following (reformatted) output
from the df command...just for your reference...

Q> Filesystem 1K-blocks Used Available Capacity Mountpoint

Q> /dev/hda1 146,360 42,639 102,721 29.13% /
Q> /dev/hda3 128,754 33,354 95,400 25.91% /dos/c
Q> /dev/hda5 1,626,515 794,390 832,125 48.84% /backups

Q> /dev/hdc1 50,717 7,879 42,838 15.54% /tmp
Q> /dev/hdc2 40,985 4,574 36,411 11.16% /root
Q> /dev/hdc5 99,507 18,031 80,476 18.12% /home
Q> /dev/hdc6 694,695 268,151 426,544 38.60% /usr
Q> /dev/hdc7 255,615 36,751 218,864 14.38% /usr/src
Q> /dev/hdc8 99,507 27,465 72,042 27.60% /usr/doc
Q> /dev/hdc9 630,255 179,431 445,824 28.47% /home/ftp

Incidentally, from experience, there's certain rules that MUST be
followed for schemes like the above to work. These are as follows:

 1. All swap partitions MUST be primary partitions.

 2. All logical partitions within any one extended partition MUST
    either be a mixture of MSDOS/VFAT partitions only, or must all
    be of the same type (ie, all EXT2, all HPFS, etc).

 3. If the root partition isn't on the primary hard drive, the
    files in the /boot directory must be given their own partition
    which IS on the primary hard drive. In these circumstances, a
    partition of 5 Megs is more than sufficient.

When ALL THREE of the above rules are obeyed, I've never had any
problems fitting as many logical partitions as desired onto a
single disk (my record is 20x250 Meg MS-DOS partitions on a 5.1
Gig drive), but break ONE OR MORE of the above, and problems can
easily occur...

Best wishes from Riley.

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:44 EST