fdisk

টিউন করেছেনঃ | প্রকাশিত হয়েছেঃ 4:34 AM | টিউন বিভাগঃ


[root@localhost Desktop]# fdisk -l
[root@localhost Desktop]# df -HT
[root@localhost Desktop]# fdisk /dev/sda
Command (m for help):
   d   delete a partition
   p   print the partition table
   n   add a new partition
   w   write table to disk and exit
   l   list known partition types
   t   change a partition's system id
Command (m for help): n
First cylinder (49744-60802, default 49744): [press Enter for Default]
Last cylinder, +cylinders or +size{K,M,G} (53252-60802, default 60802): +200M
Command (m for help): p
Command (m for help): w
[root@localhost Desktop]# reboot
[root@localhost Desktop]# df -HT
[root@localhost Desktop]# mkfs.ext4 /dev/sdax

Mount:
==========================================
[root@localhost Desktop]# mkdir /data
[root@localhost Desktop]# mount /dev/sdax /data
[root@localhost Desktop]# cd /data
[root@localhost Desktop]# ls -l   (lost + found)
[root@localhost Desktop]# df -HT
[root@localhost Desktop]# reboot
[root@localhost Desktop]# df -HT

Permanent Mount:
===========================================
[root@localhost Desktop]# vim /etc/fstab
/dev/sdax               /data                   ext4    defaults        0 0
:x
[root@localhost Desktop]# mount -a
[root@localhost Desktop]# mount
[root@localhost Desktop]# df -HT
[root@localhost Desktop]# cd /data
[root@localhost Desktop]# ls -l

unmount:
=============
[root@localhost Desktop]# umont /data

Partition Delete:
=================================

[root@localhost Desktop]# fdisk /dev/sda
Command (m for help): d
Partition number (1-9): x (where x your partition no. i.e.: sda9 (9))
Command (m for help): w
[root@localhost Desktop]# reboot
[root@localhost Desktop]# fdisk -l
[root@localhost Desktop]#



Previous
Next Post »
Designed by MS Design

Powered by Blogger