0

I have a problem need help. I have two partitions called Data and Sofware.

Default, when I run command :

ls /media/my_username/

It's show empty (dont have any result on terminal)

but when I click on disk icon on launcher and run this command again, it's show two result. Please let me know why ?

muru
  • 207,228
Ducnb
  • 13

1 Answers1

1

Why does this happen?

Non-system partitions are not mounted on startup. Your system knows the partitions are present (the disk icon is shown) but they are not yet accessible through the filesystem.

Filemanagers automatically mount partitions when you click on them. They get mounted to /media/username/... That's why you see them only after you clicked on them, because nautilus mounted them when you clicked on them.

More information on what mounting is

What can I do to see them immediately?

You can easily set a partition to automount on system startup. One of the ways is using the disks utility. More information on how to set a partition to automount in the GUI