1. Open “Terminal”.
2. Login as root.
3. fdisk –l ←
4. fdisk /dev/sda ←
5. m ← (for help)
6. n ← (add a new partition)
7. p ← (primary partition)
8. Partition number (1-4): 2 ←
9. First cylinder (default 1): ________ ←
10. Last cylinder (…+size{K,M,G}….): _______ ←
11. w ← (to save)
12. mkfs –t ext4 /dev/sda2 ← (to format)
13. Now mount the partition to a folder.
14. mkdir /Partition1 ←
15. chmod 777 /Partition1 ←
16. init 1 ←
17. vi /etc/fstab ←
18. i (insert)
19. Now add the following statement at the end of file /dev/sda2 /Partition1 ext4 default 0 0
20. Press “Esc”.
21. :wq ←
22. mount –a ← (to check error)
23. mount –o remount /Partition1 ←
0 comments:
Post a Comment