RECOMMENDEDATIONS: "A minimal system requires a partition of around 1.3 gigabytes (GB)" But we should have enough temporary storage for compiling... 2GB partition with ext3
n = new partition //the new partition is set as type 83 (linux) Enter for default first cylinder Enter for default last cylinder t = change type //if necessary as the default is type 83 already
ALTERNATIVELY, the partition table can be modified using:
Notice the nicer listing of partition names, Boot flag, Size (MB) etc.
Move the up/down arrow keys to move the cursor to highlight the "Free Space" Move the right/left arrow keys to move the cursor over "New" Press Enter (aka Return) - arrow keys to "Primary", press Enter Choose the partition size (just press enter for the default full size) I want the partition to be Bootable (eventually)
Move the right/left arrow keys to "Write" and press Enter to SAVE your changes (if you're sure)... You can always choose Quit instead and start over.
NOTE that I've chosen multiple BOOTABLE partitions which a DOS MBR can't handle... but I've got GRUB
IMMEDIATELY AFTER USING CFDISK ... might be the wrong time...
man mkfs //let's learn about how to make the new partition ext3! man mkfs.ext3 //we learn that mkfs calls other more specific tools mkfs -t ext3 /dev/hda4 //this is the same as mkfs.ext3 /dev/hda4
"root@debian: /mnt/usb# mkfs.ext3 /dev/hda4 mke2fs 1.41.3 (12-Oct-2008) Could not stat /dev/hda4 --- No such file or directory
The device apparently does not exist; did you specify it correctly?"
The above error is more clearly explained if we try to use fdisk /dev/hda to change partition 4 to type 83
"Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks."
So time to reboot...
mkfs -t ext3 /dev/hda4 //this is the same as mkfs.ext3 /dev/hda4
man tune2fs //learn how to reduce the frequency of HD checks
mount -t ext3 /dev/hda1 /mnt/disk_hda1 //TEST by using:
CLEANING UP SPACE AFTER A STEP... tar xvyf grep-2.4.2.tar.bz2 cd grep-2.4.2
configure, make, and install grep
cd .. rm -r grep-2.4.2
A word of advice: after chapter 5 remove all of the un-tarred folders and build folders