Format and Mount Disks


After the disks have been presented they have to be formated and then mounted

Format the disk

As root

fdisk -l

This will display the disks that are available, usually something like sda

We will use sdc in this example.

fdisk /dev/sdc to partition disk

n add new partition
p  primary partition
prompt for size – select full size of disk
w  to write partition

NOTE this has given me some issues

Another way which I am just testing is

fdisk /dev/sdc to partition disk

a add new partition
p  primary partition
prompt for size – select full size of disk
w  to write partition

Then

mkfs.ext3 /dev/sdc /

Formats the disk

Mount the disk

This is an example of calling the disk u12 and ensuring that it mounts when the OS is started.

mount file system under u/12 (new partition)
mkdir /u12
mount /dev/sdc /u12
df -h
backup then update /etc/fstab file
vi /etc/fstab
/dev/sdc /u12 ext3 defaults 1 2

Advertisements

One Comment on “Format and Mount Disks”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s