berndbausch |
11-28-2015 09:02 PM |
The latter.
You use the device file as reported by a tool like lsblk. Here is an example (from a Raspberry Pi, which uses an SD card instead of a disk):
Code:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 28.8G 0 disk
mmcblk0p1 179:1 0 1G 0 part
mmcblk0p2 179:2 0 1K 0 part
mmcblk0p3 179:3 0 32M 0 part /media/pi/SETTINGS
mmcblk0p5 179:5 0 60M 0 part /boot
mmcblk0p6 179:6 0 27.7G 0 part /
In this example, the device files for the various partitions are /dev/mmcblk0p1 etc. If I had to mount them, I would say
Code:
mount /dev/mmcblk0p1 /home/users/myusername/Documents
You don't normally need to specify the file system type; the mount command figures this out. If it can't figure it out, you are missing the software for that file system type.
Also, the blkid command should give you clues what filesystem type this is:
Code:
$ sudo blkid
/dev/mmcblk0: PTUUID="00054b8f" PTTYPE="dos"
/dev/mmcblk0p1: LABEL="RECOVERY" UUID="6630-3761" TYPE="vfat" PARTUUID="00054b8f-01"
/dev/mmcblk0p3: LABEL="SETTINGS" UUID="01853b15-8e15-4cff-9dad-00ef72acd2c8" TYPE="ext4" PARTUUID="00054b8f-03"
/dev/mmcblk0p5: SEC_TYPE="msdos" LABEL="boot" UUID="02AC-7D90" TYPE="vfat" PARTUUID="00054b8f-05"
/dev/mmcblk0p6: LABEL="root" UUID="8ba69365-84b7-449b-b3ad-c7fbc4655493" TYPE="ext4" PARTUUID="00054b8f-06"
Again, if it doesn't, you need to add the software required to handle that file system type.
|