Linux configures the mkfs command to format the Linux partitions. If a partition has previously formatted, you need to use mkfs command, and Linux will reformat the partition to same filesystem. Or you have have to specify the type of filesystem to be built by including the -t switch and for checking the bad blocks with -c switch before formatting.
For example; the following commands format the /dev/sda1 partitions to noted filesystems:
# mkfs -t ext2 /dev/sda1
# mkfs -t ext3 /dev/sda1
# mkfs -t vfat /dev/sda1
# mkfs -t reiserfs /dev/sda1
Or you can use:-
# mkfs -j /dev/sda1
(-j creates a journal with ext3 filesystem)
And if you are formatting a partition for Linux swap space, use the mkswap command. For example, if you want /dev/sda4 as a swap partition, the command is
# mkswap /dev/sda4
Related posts:-
Blogroll
Glossary
Installing Linux On a Server
- Installing and configuring Vmware2 to Run Linux (R...
- Installing Linux in a Server Configuration
- Performing Preinstallation Evaluation
- Linux System Administrator
- Installing and Configuring Servers
- Installing and Configuring Application Software
- Creating and Maintaining User Accounts
- Backing Up and Restoring Files
- Monitoring and Tuning Performance
- Configuring a Secure System
- Using Tools to Monitor Security
- Server Design
- Uptime
- Dual-Booting Issues
- Methods of Installation
- Determining a Server’s Functions
- Using the Red Hat Package Manager
- Initialization Scripts
Network Configuration
Filesystem Primer
- Understanding Filesystem Hierarchy Standard
- Basic Linux Directory Structure
- Partition Schemes
- Managing Partitions
- Managing partitions with fdisk
- Adding A New Hard Drive
- Basic Linux Formats
- Formatting a partition
- Tuning
- Troubleshooting With FSCK
- Exploring Logical Volume Management
- File Permissions 1
- File Permissions 2
- umask
- Concept of the i-Nodes and Superblocks in Linux/Un...
- Understanding ext3 file system and its advantages
Administering Users and Groups Securely
Network File System
Comments
Install Softwares
- Install Vuze(Azureus) Bittorent client on Linux 64..
- Install Skype(pc2pc calling software) On Linux 64 ...
- Install WEBMIN to Graphically Administer Your Linu...
- Opening And Extracting .rar Files in Linux/Unix sy...
- Installing vlc player in Fedora/Red Hat/ CentOS
- Linux text to speech festival
- Installing Thunderbird E-mail client
Post a Comment