U
U
Umid2016-07-14 12:50:52
linux
Umid, 2016-07-14 12:50:52

How to navigate to hard drive partition in Linux terminal (Google didn't help)?

I'm starting to use the terminal in ubuntu (I'm a teapot in linux) and the first problem is I can't navigate to the hard drive partition.
I climbed through the folders, found the following: that the hard drive is located in the media section in the user folder and then in the protected folder DEF26716F266F1E7 (I would like to know how to rename it).
Tried to go through the terminal trace. command: cd / media / user , after which he entered pwd and / media was displayed. I googled, but didn't find an answer.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
MrSotariz, 2016-07-14
@DarCKoder

1. there can't be a space in the shown path, so the transition command should look like this: cd /media/ $ {USER} /
DEF26716F266F1E7 manual section, eg. from root, execute mount /dev/sdaN /media/user_name/DEF26716F266F1E7 Where /dev/sdaN is partition N on the first disk, it may also not be sda ​​but sd{b/c/d}, etc. To see this in person, run ls -l /dev/ | grep sd look at the output, plug the flash drive into the PC and repeat the command 3. Read literature about mount and fstab UPD: ${USER} is a variable that stores the name of the current user

Y
Yuri Chudnovsky, 2016-07-14
@Frankenstine

Tried to go through the terminal trace. command: cd / media / user , after which he entered pwd and / media was displayed.

Of course, because TWO parameters are passed in the arguments to the cd command: /media and /user. The team honestly made the transition to /media and "shrugged" about the non-existent /user, ignoring the meaningless parameter (it is impossible to be in two places at the same time).

S
sim3x, 2016-07-14
@sim3x

and who told you that the space should not be escaped?
correct command looks like this
cd /media/$USER

A
Adamos, 2016-07-14
@Adamos

sudo chmod 777 /media/user/DEF26716F266F1E7
cd /media/user/DEF26716F266F1E7

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question