This is really simple. First of all, you need to know the full path to that directory. "cd" into that directory and type:
pwd
and it will display full path of the directory you are in. Remember that or even better, copy it to the clipboard. Type the following command to know the name of the partition:
df
where replace
with the full path of your directory. This in my case becomes "df /data/android/sample
".
If you are already in the directory, you can type "
df .
" and it will give details about the partition you are currently on.
The output should be something like:
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 32768 16016 52% 2271 14% /
The highlighted part is the name of your partition.