How to mount space in /dev/sda2
26,517
/dev/sda1 and /dev/sda2 are descriptors for filesystems. In order to have those filesystems available to you in linux, they have to be mounted to a specific location (/dev/sda2 is mounted as /mnt, for example). Anything you put in the /mnt directory will be stored on /dev/sda2 and will count against the 147G of space you have available there.
You are already aware of df -h
- this is what I use to tell how much space I have available.
Related videos on Youtube
Comments
-
alexanderzhirov over 1 year
I have EC2 instance running, executing command
df -h
in the putty i get the following resultFilesystem Size Used Avail Use% Mounted on /dev/sda1 9.9G 9.4G 11M 100% / tmpfs 854M 0 854M 0% /lib/init/rw varrun 854M 80K 854M 1% /var/run varlock 854M 0 854M 0% /var/lock udev 854M 104K 854M 1% /dev tmpfs 854M 0 854M 0% /dev/shm /dev/sda2 147G 188M 140G 1% /mnt
It shows that I am running out of space in /dev/sda1, but have 140G free space in /dev/sda2. I am new to linux and EC2 hosting, so can you please solve my following queries
- What is /dev/sda1 and /dev/sda2 ??
- How can i utilize the space in dev/sda2 ??
- How to know total how much space I have ???
-
alexanderzhirov about 13 yearsYour answer is good but as a new bee i am little afraid of performing all this task but i can do as calman suggest storing some backup files in /mnt.. thanks