Pages

29 March 2009

Enabling new harddrive for linux with ext3 filesystem

After adding a new harddisk, Debian will detect it and may automatically mount it, especially it is an USB device and has a filesystem. Today I going to prepare my USB external harddisk to re-partition and reformat with Ext3 filesystem.

fdisk -l
Command to see the list of attached disks & partitions.

fdisk /dev/sdc
To create or modify partition table for /dev/sdc

umount /dev/sdc1
Need to unmount the /dev/sdc1 partition, if any, otherwise we may not able to create and format a new partition onto device /dev/sdc

mkfs -v -t ext3 /dev/sdc
To format and create an Ext3 filesystem for /dev/sdc

mkdir /media/mynewdisk
Once it is done, we need to create a mount point (with any name) for this new drive.

mount /dev/sdc1 /media/mynewdisk
To manually mount it.

No comments:

Post a Comment