Operating System - Linux
1830061 Members
2677 Online
109998 Solutions
New Discussion

Linux FileSystem Creation

 
sdip
Advisor

Linux FileSystem Creation

Hi All,

I am new in Linux world. I would like to know how to create file system in Linux. I am using Linux Advance Server in Itanium rx5670 server & Linux kernel version is 2.4.18-e.12smp.

I have configured all the file system during Linux installation. Now I would like to configure some more new file systems.

6 REPLIES 6
Stuart Browne
Honored Contributor

Re: Linux FileSystem Creation

Depending on what type of file systems you want to make (and whether you want to use software raid etc.) depends on how far you want to go.

The simplest part of it is the issuing of the 'mkfs' command.

Before that you'll obviously have to partition the disk (using 'fdisk' or 'sfdisk' or some other partitioning utility), making sure you select the right file system type (usually 83 for 'native linux' or ext2).

These commands like to know which disk your talking about, so you'll have to figrue out whether it's an IDE disk you're using (and thus /dev/hd[abcd]) or a SCSI disk (using /dev/sd[a-z]).

Using the command 'dmesg', or looking at the log file '/var/log/dmesg' should help you figure out what sort of disk it is, and what it is called in the system (look for lines starting with 'sd' or 'hd').

If you need specific help with any step, please don't hesitate to ask, just try to give us a few more details so we can be specific with our advice..
One long-haired git at your service...
Vitaly Karasik_1
Honored Contributor

Re: Linux FileSystem Creation

You can read these articles

http://www.linux-mag.com/cgi-bin/printer.pl?issue=2001-09&article=guru - Adding a New Hard Disk

http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/other-formats/html_single/Hard-Disk-Upgrade.html

http://www.linuxplanet.com/linuxplanet/tutorials/4232/1/ Tutorial: Adding Additional Hard Drives in Linux

http://www.faqts.com/knowledge_base/view.phtml/aid/1263/fid/107 How can I add new hard disk after I've installed Linux?


if you want to learn this in-depth.

Regards,
Vitaly.
Balaji N
Honored Contributor

Re: Linux FileSystem Creation

does this help.

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/admin-primer/s1-storage-rhlspec.html#S2-STORAGE-ADDREM

and go here if u need more help.

www.redhat.com/docs/

-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Caesar_3
Esteemed Contributor

Re: Linux FileSystem Creation

Hello!

It's not so hard you must create partition
with fdisk/sfdisk and set the type.
After all you need is to
use the mkfs command with parameter of wanted
filesystem and it will create the filesystem
on the partition.

Caesar
I_M
Honored Contributor

Re: Linux FileSystem Creation

Hi

On IA64, you need to use parted to create/delete new partitions. fdisk may NOT work for you.

Claudio Cilloni
Honored Contributor

Re: Linux FileSystem Creation

Give a look at LVM. Maybe it could be useful for you.

look for LVM-HOWTO at www.tldp.org.

rgds
Claudio