I read some resources about the mount command for mounting devices on Linux, but none of them is clear enough (at least for me).
On the whole this what most guides state:
$ mount
(lists all currently mounted devices)
$ mount -t type device directory
(mounts that device)
for example (to mount a USB drive):
$ mount -t vfat /dev/sdb1 /media/disk
What's not clear to me:
How do I know what to use for "device" as in
$ mount -t type device directory
? That is, how do I know that I should use "/dev/sdb1" in this command$ mount -t vfat /dev/sdb1 /media/disk
to mount my USB drive?what does the "-t" parameter define here? type?
I read the man page ($ man mount
) a couple of times, but I am still probably missing something. Please clarify.
/dev/disk/by-id
I thought "by-id" was to be replaced by something and should be issued as a command. It didn't strike my mind that it could actually be a directory. This probably happens to Windows -> Linux users in their initial phase! (or it's only me :))-t type
.mount
will normally figure it out and generally if it can't, it's a reasonable indication you are doing something wrong.-t
option". The other part of the question (how to determine, which device is represented by a/dev/
entry) is very reasonable.