Differences between version 4 and previous revision of EPIA-Grub.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Monday, February 27, 2006 3:28:15 am | by MattCollins | Revert |
Older page: | version 3 | Last edited on Monday, February 27, 2006 3:23:02 am | by MattCollins | Revert |
@@ -59,21 +59,21 @@
To avoid this error, I repartitioned my drive as follows:
First, I stole 40mb from my swap partition to make a 'boot' partition within the first 1024 cylinders of the disk, those supported by the BIOS. To ensure no configuration changes were required, I did the following:
-1)
Delete existing swap partition
-2)
Create new swap partition 40mb smaller
-3)
Create new boot partition within first 1023 cylinders
-4)
set new swap partition to be of type swap
-5)
write table
-6)
Edit /etc/fstab and add a new line as follows:
+#
Delete existing swap partition
+#
Create new swap partition 40mb smaller
+#
Create new boot partition within first 1023 cylinders
+#
set new swap partition to be of type swap
+#
write table
+#
Edit /etc/fstab and add a new line as follows:
<pre>
/dev/hdb3 /boot ext3 defaults 0 1
</pre>
Note: 'hdb3' will only be correct if you created your new boot space as partition three during the fdisk operations.
-7)
Copy boot files over:
+#
Copy boot files over:
<pre>
mount /dev/hdb3 /mnt
cd /boot
find . | cpio -pdv /mnt
@@ -157,5 +157,11 @@
</pre>
!! Final words:
-But... other distros? Our whole disk is eaten by hdb2. Well, ext2 and ext3 filesystems can be resized without losing data. To do so use the 'resize2fs' command; if your partition is ext3 you will need to disable journaling with the 'tune2fs' command first, and
re-enable it once done using 'tune2fs -j <drive>
'. With your boot partition in the first 1023 cylinders as outlined above it is perfectly possible to place your subsequent OS layouts in extended partitions anywhere on the disk.
+But... other distros? Our whole disk is eaten by hdb2. Well, ext2 and ext3 filesystems can be resized without losing data. To do so use the 'resize2fs' command; if your partition is ext3 you will need to disable journaling with the 'tune2fs -O ^has_journal /dev/hdX
' command first, use resize2fs to shrink your disk spanning drive, then
re-enable it once done using 'tune2fs -j /dev/hdX
'.
+
+Note that this MUST be done with the drive unmount - once again, boot off your cd or floppy, and work on the drive unmounted.
+
+
With your boot partition in the first 1023 cylinders as outlined above it is perfectly possible to place your subsequent OS layouts in extended partitions anywhere on the disk.
+
+Create a new extended partition as partition 4, then divide up the space amongst as many drives as you like. I made two 5gb partitions for a 'stable' and 'test' OS image, while keeping /dev/hdb2 simply as a 'data' partition for my home directories and PVR recordings
.