![]() dev/sda5 on / type ext4 (rw,noatime,errors=remount-ro,user_xattr,barrier=1,data=ordered) Tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=153392k,mode=755) Udev on /dev type devtmpfs (rw,relatime,size=764668k,nr_inodes=191167,mode=755)ĭevpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) Proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) If you type the command mount without option, you would see something like the following: sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) ![]() ![]() an empty directory used as a start point for the specific filesystem, in such a way that all files can be reached as descendant of the root directory. Other filesystems (real or virtual) are mounted on the root filesystem on a mount point, i.e. In Linux and Unix there is a main filesystem called root filesystem, and indicated with /. Hard disks (drives, as you call them) contain partitions, and each partition contain a filesystem. If there are errors, it will tell you, and you can correct and repeat until it works. If you want to do that, you can experiment by creating an entry, then using the command "mount -a" to mount everything in /etc/fstab. To make it permanent, you need to enter it into /etc/fstab. It is only temporary until you reboot (or unmount using the "umount" command). Where "type" is the type shown in the blkid command, such as ntfs, ext4, etc.ĮDIT: to experiment, don't be afraid to try the mount command. If you have a directory named /mnt/drive2 (/mnt is commonly used, but it can be in your home directory if you want), and your drive is /dev/sdb, with a single partition, then the simplest command is: sudo mount -t type /dev/sdb1 /mnt/drive2 This may be useful in certain circumstances, such as testing or temporarily changing a configuration for some other reason, as it will alleviate the need to rename or delete the current contents. In most cases, you would want to use an empty directory as the "mount point" if the directory is not empty, its contents will be masked and unavailable during the mount. Using the terminal, you need to mount a partition to actually use it. If you're only using the terminal, I've found that the command "blkid" is handy to list the drives with their UUIDs. Using the Disk Utility or gparted, you can see all the partitions graphically. But if your drives each only have one partition, it doesn't really matter.Īnyway, to access a drive, you actually need to specify the partition in some way, usually by a definition like /dev/sda1 (1st partition on 1st drive) or /dev/sda2 (2nd partition on first drive). Linux doesn't really have a way to work with "drives", per se, except with system utilities that access partitions they often need to specify the drive that contains the partition.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |