Differences between version 9 and previous revision of EPIA-Grub.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 9 | Last edited on Monday, February 27, 2006 3:51:18 am | by MattCollins | Revert |
Older page: | version 8 | Last edited on Monday, February 27, 2006 3:45:00 am | by MattCollins | Revert |
@@ -162,8 +162,17 @@
!! 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 -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'.
+
+Once resized use fdisk to delete the old partition data and recreate it __starting at the same cylinder__ but finishing just above the new end point. This can be calculated by the following method:
+
+<pre>
+(number of cylinders reported in fdisk) / (old size in blocks reported by 'fsck.ext2 /dev/hdb2') = cylinders per block
+(new size in blocks reported by 'resize2fs /dev/hdb2 <size>') * (cylinders per block) = size of new partition in cylinders
+<pre>
+
+So under fdisk, set the start partition to be the old starting cylinder, and define the size as +<size of new partition in cylinders>
__Note__: this MUST be done with the drive unmounted - 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.