Line 117: |
Line 117: |
| The '''n''' command is used to create a new partition. This will be a primary partition and use number 2 since 1 is the boot partition. Just press Enter for the First cylinder and Last cylinder questions to accept the default conditions which be to use the remainder of the CF card. | | The '''n''' command is used to create a new partition. This will be a primary partition and use number 2 since 1 is the boot partition. Just press Enter for the First cylinder and Last cylinder questions to accept the default conditions which be to use the remainder of the CF card. |
| | | |
− | Command (m for help): n | + | Command (m for help): n |
− | Command action | + | Command action |
− | e extended | + | e extended |
− | p primary partition (1-4) | + | p primary partition (1-4) |
− | p | + | p |
− | Partition number (1-4): 2 | + | Partition number (1-4): 2 |
− | First cylinder (1012-4036, default 1012): | + | First cylinder (1012-4036, default 1012): |
− | Using default value 1012 | + | Using default value 1012 |
− | Last cylinder or +size or +sizeM or +sizeK (1012-4036, default 4036): | + | Last cylinder or +size or +sizeM or +sizeK (1012-4036, default 4036): |
− | Using default value 4036 | + | Using default value 4036 |
− | | + | |
| Use the '''p''' command to examine our current configuration. | | Use the '''p''' command to examine our current configuration. |
− | | + | |
− | Command (m for help): p | + | Command (m for help): p |
− | | + | |
− | Disk /dev/sdc: 512 MB, 512483328 bytes | + | Disk /dev/sdc: 512 MB, 512483328 bytes |
− | 4 heads, 62 sectors/track, 4036 cylinders | + | 4 heads, 62 sectors/track, 4036 cylinders |
− | Units = cylinders of 248 * 512 = 126976 bytes | + | Units = cylinders of 248 * 512 = 126976 bytes |
− | Disk identifier: 0x00000000 | + | Disk identifier: 0x00000000 |
− | | + | |
− | Device Boot Start End Blocks Id System | + | Device Boot Start End Blocks Id System |
− | /dev/sdc1 * 1 1011 125333 6 FAT16 | + | /dev/sdc1 * 1 1011 125333 6 FAT16 |
− | /dev/sdc2 1012 4036 375100 83 Linux | + | /dev/sdc2 1012 4036 375100 83 Linux |
− | | + | |
| We must now write this configuration out to the CF card using the '''w''' command. | | We must now write this configuration out to the CF card using the '''w''' command. |
− | | + | |
− | Command (m for help): w | + | Command (m for help): w |
− | The partition table has been altered! | + | The partition table has been altered! |
− | | + | |
− | Calling ioctl() to re-read partition table. | + | Calling ioctl() to re-read partition table. |
− | | + | |
− | WARNING: Re-reading the partition table failed with error 16: Device or resource busy. | + | WARNING: Re-reading the partition table failed with error 16: Device or resource busy. |
− | The kernel still uses the old table. | + | The kernel still uses the old table. |
− | The new table will be used at the next reboot. | + | The new table will be used at the next reboot. |
− | Syncing disks. | + | Syncing disks. |
− | | + | |
| | | |
| We must now format the newly created partition. To do this we will use the '''mkfs''' (Make Filesystem) command. From above, we see that the Linux partition is located on /dev/sdc2 (the second partition on /dev/sdc). Remember, your system might have the CF card configured as a different device. | | We must now format the newly created partition. To do this we will use the '''mkfs''' (Make Filesystem) command. From above, we see that the Linux partition is located on /dev/sdc2 (the second partition on /dev/sdc). Remember, your system might have the CF card configured as a different device. |
| | | |
− | root@sierra:/home/rhammock# mkfs -t ext2 /dev/sdc2 | + | root@sierra:/home/rhammock# mkfs -t ext2 /dev/sdc2 |
− | mke2fs 1.40.8 (13-Mar-2008) | + | mke2fs 1.40.8 (13-Mar-2008) |
− | Filesystem label= | + | Filesystem label= |
− | OS type: Linux | + | OS type: Linux |
− | Block size=1024 (log=0) | + | Block size=1024 (log=0) |
− | Fragment size=1024 (log=0) | + | Fragment size=1024 (log=0) |
− | 93840 inodes, 375100 blocks | + | 93840 inodes, 375100 blocks |
− | 18755 blocks (5.00%) reserved for the super user | + | 18755 blocks (5.00%) reserved for the super user |
− | First data block=1 | + | First data block=1 |
− | Maximum filesystem blocks=67633152 | + | Maximum filesystem blocks=67633152 |
− | 46 block groups | + | 46 block groups |
− | 8192 blocks per group, 8192 fragments per group | + | 8192 blocks per group, 8192 fragments per group |
− | 2040 inodes per group | + | 2040 inodes per group |
− | Superblock backups stored on blocks: | + | Superblock backups stored on blocks: |
− | 8193, 24577, 40961, 57345, 73729, 204801, 221185 | + | 8193, 24577, 40961, 57345, 73729, 204801, 221185 |
− | | + | |
− | Writing inode tables: done | + | Writing inode tables: done |
− | Writing superblocks and filesystem accounting information: done | + | Writing superblocks and filesystem accounting information: done |
− | | + | |
− | This filesystem will be automatically checked every 31 mounts or | + | This filesystem will be automatically checked every 31 mounts or |
− | 180 days, whichever comes first. Use tune2fs -c or -i to override. | + | 180 days, whichever comes first. Use tune2fs -c or -i to override. |
| | | |
| | | |