3 hard disk configuration, 1 partitioning the hard disk with fdisk, 2 formating the hard disk with mkfs – Kontron AM4530 User Manual
Page 32: 4 configuring the am453x, 1 setting-up network configuration, 1 setting a static ip address, Partitioning the hard disk with fdisk, Formating the hard disk with mkfs, Setting-up network configuration
19
www.kontron.com
4.3
Hard Disk Configuration
4.3.1
Partitioning the Hard Disk with fdisk
The fdisk utility is used to manage hard drive disk partitions. Linux allows only 4 primary partitions. To
partition the hard disk, the following command should be used:
#fdisk /dev/sda
The basic fdisk commands are:
p print the partition table
n create a new partition
d delete a partition
q quit without saving changes
w write the new partition table and exit
4.3.2
Formating the Hard Disk with mkfs
The mkfs command is used to build a Linux file system on a hard disk partition. This command should be used
with care as it will erase all the data on the device. To format the hard disk, the following command should be
used:
#mkfs.ext3 /dev/sda1
4.4
Configuring the AM453x
4.4.1
Setting-up Network Configuration
4.4.1.1
Setting a Static IP Address
Set the correct values for the 'IPADDR' and 'NETMASK' variables in the /etc/ifcfg-eth0 file. Also, make sure
'BOOTPROTO' is set to 'static'. Example:
DEVICE=eth0
IPADDR=192.168.100.10
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes