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
[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
Post a Comment