Linux Disk checking and formatting related commands

1) List of all partitions on all attached hard drives (both SCSI and IDE)
[root@badar /]# fdisk -l


2) To resize partitions use
[root@badar /]# parted


3) Following command formats a floppy disk in ext2 format, also checks for and marks, bad sectors
[root@badar /]# mke2fs -c /dev/fd0


4) Following command formats a floppy disk in dos format
[root@badar /]# mkdosfs /dev/fd0


5) Following command checks for errors on the partition, the partition being checked should be in unmounted state during check.


[root@badar /]# e2fsck /dev/hda3
or
[root@badar /]# fsck -t ext2 /dev/hda3



Comments

Popular posts from this blog

Create Tables in Oracle Database using TOAD

How to create Oracle stored Procedures using TOAD for Oracle

How to Create Packages in Oracle Database using TOAD for Oracle