Penguin

Differences between version 10 and previous revision of EPIA-Grub.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 10 Last edited on Monday, February 27, 2006 3:57:21 am by MattCollins Revert
Older page: version 9 Last edited on Monday, February 27, 2006 3:51:18 am by MattCollins Revert
@@ -168,11 +168,19 @@
  
 <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> 
+</ 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> 
+So:  
+  
+# Disable journaling with 'tune2fs -O ^has_journal /dev/hdX'  
+# fsck.ext2 -f /dev/hdX to check the filesystem is ok.  
+# resize2fs /dev/hdX <new, smaller, size>  
+# under fdisk, set the start partition to be the old starting cylinder, and define the size as +<size of new partition in cylinders> using the method described above.  
+# use fsck.ext2 to ensure your new size isn't smaller than the filesystem; if it is, fsck.ext2 will immediately quit warning you of this issue. If not, you're likely to have overshot by a few blocks.  
+# use 'resize2fs /dev/hdbX' to grow the filesystem to use the full size of the new partition,  
+# finally, re-enable journaling with the 'tune2fs -j /dev/hdX' command.  
  
 __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.