Adding a new drive
Dave Germiquet
davegermiquet-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Jun 15 03:04:05 UTC 2009
On Sun, Jun 14, 2009 at 10:12 PM, Rajinder Yadav<devguy-DaQTI0RpDDMAvxtiuMwx3w at public.gmane.org> wrote:
>
> I finally got around to setting up a dedicated CentOS server on my other PC. I added a new unformulated drive to the box, I am wondering how I can format and mount it? I believe it's on /dev/hda...so I assume I just need to run fdisk and create a primary partition on it.
>
> Will fdisk also format the drive for me?
>
Hi Rajinder,
No you will have to format the drive after creating the partition
using fdisk. You can format it with a different variety of file
systems such as ext2,ext3,reiserfs using these commands:
mke2fs /dev/hdaX for ext2 (not suggested unless its a /boot partition)
mke2fs -j /dev/hdaX for ext3 ( I prefer this one, as its more stable i
find, im unsure if ext4 is as stable)
mkreiserfs /dev/hdaX (Some people prefer this, however I found it
lacking in stability and have lost data so i've lost faith in this)
Where X is the partition of the drive.
To mount an ntfs share you would do the following:
mount -t ntfs-3g /dev/xxxx /mountpoint
where /mountpoint is a directory made, I usually prefer /media/path as
its an external media.
Dave Germiqiuet
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list