Partitioning

Disks/Partitions/filesystems

Installed Partition Magic on XP pro C: drive and followed instructions to make a backup, which involved using a couple of floppies. Once I had actually found a pair of floppies, I produced the backed up and then I replaced the floppy drive with a 2nd hard disk as this is the first time I had used a floppy in what must have been years. I proceeded to defrag the C: drive, which squashes all the data on C into the lower numbered cylinders, thus enabling it to be safely re-sized with Partition Magic. I shrank drive C: from a 55Gb to a 7 Gb partition.

Boot from SuSE 8.0 installation CD/DVD. Select all the appropriate options/settings. E.g. timezone, keyboard. Then opted to manually edit partitions. With a two disks, one of 60Gb and one of 20Gb, I opted for the following layout: -

/devlabelfsfstab optionsdisk1 (Gb)disk2 (Gb)
hda1Dell Utility*1?
hda2XP pro C:NTFS *2 ro,noauto,user,umask=022*37
hda5/boot*4ext2defaults0.5
hda6/ext3defaults1
hda7/homeext3defaults12
hda8/optext3defaults8
hda9/usr/localext3defaults8
hda10swap2swappri=42 *50.5
hda11XP pro F:vfat *2,3 rw,noauto,user,umask=0228
hda12/usrext3defaults10.8
hdc1XP pro E:NTFS *2,6ro,noauto,user,umask=0224
hdc2swap1swappri=42 *50.5
hdc5/tmpext2defaults1
hdc6/varext3defaults1
hdc7/srvext3defaults2.5
hdc8/home/dean/home/cameraext3defaults9.5
  1. Dell's 50K partition, Id of 0xde, for what ?.
  2. XP pro will only use primary partitions. Linux does not care if a partition is primary or exteneded, so all linux partitions will be extended.
  3. Current, recommended, linux implementation of the NTFS driver is Read ONLY. An experimental writable driver exists.... So to make one of the XP partitions safely writable from linux use of the vfat filesystem is recommended!
  4. Must be in first 1024 cylinders for lilo/BIOS limits.
  5. Equal priority (hence OS will use first available.)
    swapon -s or any of the many GUI utilites, will display swap usage to verify that linux finds, and uses, all swap devices at boot up.
  6. D: is grabbed by XP for the CDRW/DVD drive.

The above is overkill (e.g. /usr and /usr/local could easily be one partition.) The other infrequent changing partitions (/srv, /opt, /local could also have been subsumed by others…) however, having more than necessary is easier to manage than having too few.

Installation then proceeds to format the Linux partitions with the selected filesystems. After partitioning and Linux install, we continue with selection of desired rpm packages. SuSE installation DVD failed to find any rpm packages at all! Cleaned the DVD and started again. No joy. Finally gave up and used the CD ROMS instead. This worked and only took about 2 hours in total (including selection of rpms and the swapping of CDs.)

Once I had the basic system running I was able install further rpms from the DVD with no problems. So it was not a problem with being able to read the installation DVD, it would seem to be a problem with the actual linux installation via DVD (for my setup ?).

N.B. Same DVD issue with SuSE 8.1 (and SuSE 8.2 …)

Booting installed Linux:- 'Calibrating delay loop... 3971.48 BogoMIPS'. Wow !

Hard disk - tuning

After getting a stable-ish system it is now time to tune the hard disks. After a little playing, mainly with hdparm, I now use the following: -

hdparm -d 1 -X udma5 -c 3 -m 16 -k 1 /dev/hdc
hdparm -d 1 -X udma5 -c 3 -m 16 -k 1 /dev/hda

The values are specifically for MY machine, yours will almost certainly differ. These hdparm commands are configured in /etc/sysconfig/ide which is parsed and fed to hdparm by /etc/rc.d/boot.idedma.

DEVICES_FORCE_IDE_DMA="/dev/hda:udma2:-m16:-c3 /dev/hdc:udma5:-m16:-c3"


Dean Darlison
Last modified: Mon Jul 5 17:27:23 BST 2004