Wednesday, 23 October 2019

Mounting a new disk in the linux machine

step 1: df -h  ( to check the present file system directories)
step 2: fdisk -l : to check the hidden file storage, which need to active.
step 3: fdisk /dev/XXXX
step 4: enter m (for more info)
step 5: sequence to be followed:
                   n:add new disk.
                   p: (choose with extended or primary)
                   1: partition number 1

Note: if need to be 1 or more partitions. Need to provide details here.
          if required with one partition use the default value.
step 6: w to write the changes.
step 7: mkfs.ext3 -b 4096 /dev/XXXX
           for writing the idone number.
step 8: vi /etc/fstab

 add the entry of /dev/XXXX

wq

step 9: mkdir -p /file directory name (eg: /usr/sap)

step 10: if step 8 is not performed then every time need to execute the cmd

               mount /dev/XXXX    /<eg, usr>

reference link:
https://www.youtube.com/watch?v=sH6r7bwWuUw

No comments:

Post a Comment