Top Ad unit 728 × 90

Latest updates

recent

PARTITIONS PRACTICAL STEPS




'Step 1:-Check the Existing Partitions'
# fdisk -l (to check)

'Step 2:-To create a New Partition'
# fdisk /dev/sda
Press 'm' for help
Press 'p' to check the exisiting partitions
Press 'n' to create a new partition
Enter the Size: +1G (for example)
Press 'p' to check
Press 'w' to save & quit

'Step 3:-Activate the New Changes to Kernel'
# partx -a /dev/sda (run this 2 times)

'Step 4:-Format the Partition'
# mkfs.ext4 <partition_no>
# mkfs.ext4 /dev/sda8 (for example)

'Step 5:-To Use the Partition-Create Mount Point'
# mount <partition_no> <mount_point>
# mount /dev/sda8 /mnt
# mount (to check)
# cd /mnt (to access the partition)
# ls (to check)
'lost+found' dir is the indication of partition
# mkdir zoom{1..100} (create some data)
# ls (to check)


'#### TO CHECK THE FILESYSTEM OF PARTITIONS ####'
# blkid

'#### TO CHECK THE FREE SPACE OF THE PARTITION ###'
# df -h

'#### TO CHECK THE USED SPACE OF THE PARTITION ####'
# du –sh

'#### TO CHECK THE FREE SPACE OF THE HARDISK ####'
# parted
Type: print free
Type: quit (to come out)

'#### TO REMOVE THE MOUNT POINT(LINK) ####'
# umount <partition_no>
# umount /dev/sda8 (for example)
# mount (to check)

'#### TO DO THE PERMANENT MOUNTING ####'
# vim /etc/fstab (open this file)
Come at last & do the changes as given below
/dev/sda11 /mnt ext4 defaults 0 0
'partition_no' 'mount_pt' 'filesystem'
:wq(save & quit the file)
# init 6 (reboot the pc)
# mount (to check the permanent mount point)
PARTITIONS PRACTICAL STEPS Reviewed by Unknown on 10:41 AM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.