How to enter /dev/sda1 under linux


https://zhidao.baidu.com/question/294388204.html

All storage devices in LINUX are mapped as "files" for access, including U disk, CD-ROM, hard disk, etc. Therefore, if you need to use disk under Centos system, you need to Mount the disk partition through mount as follows:

1. Create a directory (mount disk partition)
mkdir /mnt/sda1
#Create a folder with the mkdir command


2. Mount the /dev/sda1 partition
mount /dev/sda1 /mnt/sda1
#Mount /dev/sda1 to /mnt/sda1 directory


3. Then enter the mount partition directory.
cd /mnt/sda1
#cd command to enter this directory, you can see the files stored in the partition

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326399225&siteId=291194637