Ubuntu: how can I check if two directory are in the same partition in ubuntu


I forget whether I have mounted / and /boot to the same partition in my ubuntu 10.04. What command can I use to check it out? Thank you very much!


Try df. It will give you the free space per partition and also its mount point.


Use the mount command itself. You can pipe through grep to de-clutter if necessary:

me@banshee:~$ mount | egrep 'on /(boot)? '  /dev/mapper/banshee-root on / type ext4 (rw,errors=remount-ro)  /dev/sdc1 on /boot type ext2 (rw)  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »