That's the difference between command line and GUI. The icon you see isn't actually there. Under Ubuntu, typically USB disks and partitions are automatically mounted at /media/username
folder.
The GUI icon you see on the desktop is just a "shortcut" in a sense, but the actual folder to which the partition is mounted is elsewhere. When you open it in GUI file manager, and press Ctrl+L you should see the real path to the mountpoint.
As for the part where you need to ls Data
please note two things:
- File and directory names are case sensitive.
- If you
cd Data
you're telling the shell to enter the Data directory that should be located relative to where your shell is right now, i.e. the current working directory. Doing cd ~/Desktop
works because you told it the full path, not relative. When you cd ~/Desktop; ls Desktop
it won't work - there's no Desktop
within ~/Desktop
. If you just run ls
with no arguments, then it will work, because it lists items in the current directory by default
Desktop
is not the same thing asdesktop
. Is the folder calleddata
orData
? – steeldriver Jul 06 '18 at 15:06data
– Christa Frodella Jul 06 '18 at 15:31ls
for thedesktop
. Thedata
folder comes up red with black background which means the link is broken. Our computer savvy professor is away and he set up the link. If anyone knows how to reset up the linked folder (connects Windows partition to Ubuntu partition) please let me know. – Christa Frodella Jul 06 '18 at 15:44~
) is short for your home folder ($HOME
), so~/data
is not what you want. You could use~/Desktop/data
instead. – wjandrea Jul 06 '18 at 17:15readlink ~/Desktop/data
(get the symlink's destination) and the contents of/etc/fstab
(the filesystem table). – wjandrea Jul 06 '18 at 17:20readlink ~/Desktop/data
yields /media/cyprianna/1A48F1D148F/data and/etc/fstab
yields bash: /etc/fstab: Permission denied. – Christa Frodella Jul 06 '18 at 17:24/
), the shell tries to execute the file as a program./etc/fstab
is just a text file; it doesn't have execute permission and that's why you got that error. To read it you need to call a program to display the contents, such ascat
(iecat /etc/fstab
) orless
or open the file in a text editor (double click in file browser should do that by default) Please [edit] your question to add the contents of the file (and any other updates), formatting it as code with the{}
button to make it readable. – Zanna Jul 06 '18 at 20:23lsblk
may also be useful in determining which device to mount if it is connected, I guess? – Zanna Jul 06 '18 at 20:27