Linux-Noob Forums
How do i format and mount my drives. - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+---- Forum: Filesystem Management (https://www.linux-noob.com/forums/forum-26.html)
+---- Thread: How do i format and mount my drives. (/thread-2833.html)



How do i format and mount my drives. - alch - 2005-02-17

I am trying to format and mount 2 additional drives in my sistem. I dont know what is on hte drives and i dont care, i want to erase them and then mount them to a dir. When i try and mount them i get an error saying that it is already mounted or the dir im mounting it to is busy. I checked the fstab but there is nothing listed for the 2 drives.



How do i format and mount my drives. - xDamox - 2005-02-17


to format your partitions use fdisk as shown below:

 



Code:
fdisk /dev/haX/




 

and then to make the filesystem you can run the mkfs las shown below:

 



Code:
mkfs.ext2 /dev/hdX







How do i format and mount my drives. - alch - 2005-02-17

yea so i formatted the wrong partition. turned out it was a partition on the first drive and not the second drive. so im installing again :P