Russell Coker: How I Partition Disks
Having had a number of hard drives fail over the years I use RAID whenever possible to reduce the probability of data loss caused by hardware failure. It’s unfortunate that some machines make it impractically difficult to install a second hard drive (my laptop and some small form factor desktop machines I have given to relatives). But when it’s possible I have two hard drives running software RAID-1.
I use two partitions, one for /boot and one as a LVM physical volume (PV). When using RAID I make both /boot and the PV be software RAID-1 devices (the vast majority of machines that I install don’t have budget available for hardware RAID). /boot is a small partition, approximately 100M. For a machine with only one disk I make the second partition take all the available space as there is no benefit in doing otherwise (LVM allows me to create an arbitrary number of block devices out of the space at run-time).
When using software RAID I often make the PV take less than the full capacity of the disks. When the disks are 40G or more I usually use less than half the capacity. For most machines that I install or run the full capacity of the disks is not required. One deficiency of Linux software RAID is that on a power failure the entire RAID device must be checked to ensure that all disks have matching data. Reading the entire contents of a pair of disks can take a large amount of time if the disks are large, and as the size of disks is increasing at a greater rate than the speed of disks this problem is getting worse. See my ZCAV benchmark results page for graphs of the contiguous IO performance of some disks I’ve owned [1]. It seems that with a 10G disk you may expect to be able to read it all in less than 1000 seconds, for a 46G disk it’ll be something greater than 1,500 seconds, and for 300G disks you are looking at something well in excess of 5,000 seconds.
Almost all disks (and all IDE and SATA disks for which I’ve seen benchmark results) have the lower block numbers mapped to the outside tracks which are longer and give a higher contiguous IO speed. So by using the first half of the disk the RAID synchronisation time is reduced to less than half what it might be (in the absence of motherboard bottlenecks).
When there is no need for more than about 10G of storage space there’s no benefit in making a large RAID device and wasting recovery time. While the system can operate while the RAID is synchronising the performance will be significantly lower than normal.
If the usage pattern of the machine changes such that it needs more space it’s easy to create new partitions, make a new software RAID, and then add it to the LVM volume group (I’ve done this before). So the down-side to this is minimal.
When creating LVM logical volumes (LVs) I create volumes for the root filesystem and swap space when doing the install. This should result in the swap space being near enough to the start of the disk to get reasonable performance (but I haven’t verified this). I make the root filesystem reasonably large (EG 6G) as disk space is plentiful and cheap nowadays and the root filesystem is the only one that you can’t easily extend when running LVM (trying to do so deadlocks the disk IO). After the base install is done I create other LVs.
My mothers computer had died. Well, the Linux on it was still working, so she
was able to open her document files, read her email and use chat. Pretty much
everything works under Linux, with the exception of using the Fax functionality
of the AVM Fritz!Box via CAPI-over-TCP. (Ironically, the Fritz!Box itself runs
Linux, so it's just because AVM doesn't bother to supply a Linux client too).Anyway. Logging in remotely, I quickly found out that the hard drive had
serious issues, with lots of bad sectors on the main Windows partition
(fortunately, we kept system data and user data separate!). So I'm not blaming
Microsoft for dying (but Samsung; since this is the second time within three
years the drive has died, I guess I won't be buying a Samsung HD anytime soon).Last weekend, I bought a new hard disk and went to my parents to fix it.
I copied over the partitions (some 64k data could not be read any more), and
tried to get Windows up again, too. (Linux was trivial; copy, boot record,
done)So I ended up doing a "rescue" Windows installation, using the XP service pack
2 CD. I figure this is still the latest setup for XP available? It went through
the usual driver-loading, did the first part of the installation, rebooted into
the new system, did this "estimated time 39 Minutes" setup screen. After like
10-15 Minutes, it had a bluescreen, dumped memory and rebooted. And cycled
through that again and again.It took me like 6 hours total to get the Windows system fixed (mostly waiting
for the Microsoft setup to run through again). I figure that there aren't many
users out there that actually could have fixed that Windows. The reason is
simple: Microsoft crappy setup. Probably to protect it's serial number thingy
or just to display fancier graphics, setup refuses to work in safe
mode. And the bluescreen even suggested to try the safe mode, just to display
the message "setup.exe doesn't work in safe mode, click OK to reboot".If I could have used that "safe mode", fixing would have been a lot easier.
The bluescreen mentioned a device driver ati2something.sys; apparently part
of the ATI video driver. So I tried the rescue console of the XP CD to just
kill that driver, but setup kept on actually reinstalling the file.The way I fixed it in the end is simple: Linux to the rescue.
I booted the (working like a charm) Linux installation, accessed the main
Windows partition using ntfs-3g, found all references to the ATI driver in the
Windows\Inf driectory and removed them.After I had removed these references, Microsofts setup.exe completed, and I had
a working-again Windows in VGA mode. Then I could install the ATI drivers
again. Microsoft really needs to work on that setup, it needs to allow
disabling certain drivers and similar rescue things.Maybe Microsoft should start shipping a Knoppix CD with Windows, for repair.
How often have you said to yourself "this programming language's if
statement is too flexible, I need to make it more rigid, and with a
syntax nobody else understands"?
If you've ever said that to yourself, then take a look at
In just over a month (1 month and 1 day, to be precise), it's FOSDEM
again. The Debian Developers Room schedule is almost complete, and some
interesting things are being published around it.
Such as the pre-FOSDEM beer event. In previous years, this always
happened at the "Le Roi d'Espagne", a bar at Grand Place in Brussels.
This was a nice place for many years, because it's easily found, and
they have this backroom where quite a lot of people would fit in.
Unfortunately, "quite a lot" does not equal "a huge number", with the
amount of people going to the pre-FOSDEM beer event more and more
approaching the latter than the former as the years go by. Last year, it
finally became too crowded, and it was decided that the pre-FOSDEM beer
event would change bars this year.
Which has now happened. This year, the pre-FOSDEM beer event will be
at the 
* .. because its too cold, and fortunately my laptop heats so much. Sometime bad things are good for life
Long time ago I used
In an old
The story seems to have started with
Recently I bought a new desktop PC and rotated my existing machines around, leaving me with one spare. Last night I donated that PC to a local friend, (co-incidentally the same woman who had been out cat-sitter when I went to stay at Megan's parents for Christmas).
I said "Its got Debian on it, that funny operating system that you used when you were looking after our kitten, remember?".
She said "Linux ssems to be getting popular these days I might as well try it out".
But seriously she used it. It had GNOME, it had firefox, she seemed happy. It isn't rocket science these days to point a technicalish user at a Debian Desktop and expect them to know what to do with it. The only minor complication was the lack of flash/java since it was etch/amd64 - but thats probably a plus with the amount of flash adverts!
In other news I made a new release of