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
  • 197,895
  • 55
  • 485
  • 740
Ducnb
  • 13
  • Are the partitions actually mounted when you first run the command? Sounds like they aren't, and opening them from the Launcher mounts them which then makes them appear in the listing. – douggro Dec 28 '14 at 16:31
  • Is there an easy how-to question about basic mounting? I tried a quick search but didn't see one.. maybe even a youtube video about the basics of Ubuntu? – Xen2050 Dec 28 '14 at 16:33

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

Merlijn Sebrechts
  • 7,394
  • 1
  • 42
  • 70
  • @Ducnb, If this answer solved your problem, can you please mark it as accepted? This closes the question and rewards me for answering it correctly. Thanks! – Merlijn Sebrechts Dec 29 '14 at 15:10