Stay at Home!! Be Safe!! Take Care!!

Thanks all my viewers for your support, I am an Oracle Ace now. For Any queries, please mail us at support@funoracleapps.com

How to mount a Folder from another Partition in Linux

No comments

How to mount a Folder from another Partition in Linux


In case we want to mount a folder located in other partition, below steps can be followed.

mkdir /stage

mount --bind /u01/stage /stage

To make this permanent add in your /etc/fstab like this:

/u01/stage    /stage    none    bind

Check the mount now.

[himanshu@ebs122 ~]$ df -aTh
Filesystem     Type         Size  Used Avail Use% Mounted on
/dev/sda1      ext4         9.8G  3.6G  5.8G  39% /
proc           proc            0     0     0    - /proc
sysfs          sysfs           0     0     0    - /sys
devpts         devpts          0     0     0    - /dev/pts
tmpfs          tmpfs        7.3G     0  7.3G   0% /dev/shm
none           binfmt_misc     0     0     0    - /proc/sys/fs/binfmt_misc
sunrpc         rpc_pipefs      0     0     0    - /var/lib/nfs/rpc_pipefs
/dev/sdb       ext4         394G   77G  318G  20% /u01
/u01/stage     none         394G   77G  318G  20% /stage

No comments :

Post a Comment