Quote:
Does anyone have any suggestions (other than nuking the lot and starting again)?
|
Nuke the lot and start over again.
Even more blunt... you will likely end up doing this eventually anyway.
You can also do this for both security and performance considerations
(culled from one or more of the above) using solely the Knoppix liveCD:
1. Backup all data and configurations made since the past distro was 1st installed. Do this by consolidating all such SW into one organized directory with subdirectories, do a
on the top directory of this to make a more compact tarball, use k3b for burning all this onto a CD.
So what if you already made a backup. Another backup never really hurts.... unless that is, the original hard drive contents are somehow corrupted.
2. Blow away all hard-disk partitions with
3. Double-check that MBR is really gone too, with a
Code:
dd if=/dev/zero of=/dev/sda bs=512 count=1
4. Wipe and zero-out the contents of the entire hard-drive with
a
Code:
shred -n1 -vz /dev/sda
You can use -n2, -n3, ... etc. if you want to have shred make more passes to more completely and securely wipe out the drive.
5. Run a
Code:
mke2fs -ccvv /dev/sda
and then hit Ctl-c the instant the
command appears. Enter the exact
command that just appeared, substituting -svvw in one piece for any separate -s -v or -w options.
Check for the reporting of any bad blocks after this finishes.
6. Reboot PC and re-run fdisk
Partition as follows assuming that this will be a general-purpose desktop workstation
(justification in smallsize):
sda1 20 MB
for /boot
sda2 ?
recommended space for another OS to be run dual-booted without added apps or data
sda3 Extended
to end of hard-drive
sda5 ?
recommended apps plus data space for other OS in dual-boot system, e.g., 6GB vfat or ntfs for Win9x or Win2K/WinXP respectively but disrespectfully
sda6 250 MB
maximum for /<root>, dependant upon total hard drive space
sda7 2 X RAM
[/SIZE]swap partition, fdisk type 82
sda8 400 MB-500 MB
for /tmp
sda9 1 GB - 2 GB
for /var
sda10 4 GB - 8 GB
for /usr
sda11 2 GB +
for /home, dependant upon amount of data generated or downloaded
sda12 1-2 GB
for /opt, dependant upon number of 3rd-party apps added
Dont forget to write this to disk with fdisk's 'w'!
6. Format and install whatever dual-boot OS you are also using 1st. and make certain that it is working fine off of /dev/sda2 -- not /dev/sda1 !. Make an extended partition from this OS when prompted to, create a recommendeded apps-plus-data logical partition space (will be /dev/sda5 automatically) for that other OS when in dual-boot e.g., 6GB vfat or ntfs for Win9x or Win2K/WinXP respectively but disrespectfully Format this with that "other" OS.
7. Re-run fdisk from the Knoppix liveCD as follows.
sda6 250 MB
maximum for /<root>, dependant upon total hard drive space
sda7 2 X RAM
swap partition, fdisk type 82
sda8 400 MB-500 MB
for /tmp
sda9 1 GB - 2 GB
for /var
sda10 4 GB - 8 GB
for /usr
sda11 2 GB +
for /home, dependant upon amount of data generated or downloaded
sda12 1-2 GB
for /opt, dependant upon number of 3rd-party apps added[SIZE="1"]
Enter the 'a' option for /dev/sda1 to make this partition an active bootable one, before writing and exiting fdisk with the 'w' option.
8. When using the Linux distro of choice's formatting utility in the re-installation, format Linux partitions as follows
/dev/sda1 /boot ext3
/dev/sda6 /<root> ext3 or another journaling filesystem
/dev/sda7 swap swap
/dev/sda8 /tmp ext3
/dev/sda9 /var ext3 or another journaling filesystem
/dev/sda10 /usr " ditto "
/dev/sda11 /home " ditto "
/dev/sda12 /opt " ditto "
Minimize surface checking at the install and formatting stages.
9. After Linux re-installation, check to be certain that the distro boots okay, is optimized for acceptable efficieny, and then has any immediately-necessary patches/downloads for HW and SW. Restore, copy and then and
your backed up tarball from the CD. Make any necessary changes in LILO or GRUB so that the "other" dual-boot OS can also boot.
10. Test that the other OS can boot fine using this dual-mode scenario.