First, look at the system's disk code:
Fdisk-l
disk/dev/sda:120.0 GB, 120034123776 bytes
255 heads, Sectors/track, 14593 cylinders, total 234441648 sectors
Units = Sector of 1 * A-bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk IDENTIFIER:0X000214D1
Device Start point end block Id system
/DEV/SDA1 * 2048 217925631 108961792 Linux
/dev/sda2 217927678 234440703 8256513 5 expansion
/dev/sda5 217927680 234440703 8256512 the Linux swap/Solaris
disk/dev/sdb:500.1 GB, 500107862016 bytes
255 heads, Sectors/track, 60801 cylinders, total 976773168 sectors
Units = Sector of 1 * A-bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk IDENTIFIER:0XEC689DDC
Device Start point end block Id system
/DEV/SDB1 2052 471040703 235519326 7 Hpfs/ntfs/exfat
Partition 1 did not start at the physical sector boundary.
/DEV/SDB2 471040704 976770467 252864882 7 Hpfs/ntfs/exfat
disk/dev/sdc:8178 MB, 8178892800 bytes
Heads, Sectors/track, 3046 cylinders, total 15974400 sectors
Units = Sector of 1 * A-bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk Identifier:0x16c0ca45
Device Start point end block Id system
/DEV/SDC1 * 1552 15974399 7986424 b W95 FAT32
Note: The root directory/must be mounted prior to other directories.
The other mount point must be a directory that has already been created.
Use the following command to view the UUID for another disk:
sudo blkid
The results are as follows:/dev/sda1:uuid= "70FB376C-17C2-4CE1-A263-727F647949CF" type= "Ext4"
/dev/sda5:uuid= "0c5f073a-ad3f-414f-85c2-4af83f6a437f" type= "swap"
/dev/sdb1:uuid= "11263962-9715-473f-9421-0b604e895aaa" type= "Ext4"
/dev/sdb2:uuid= "88928fea-5dd3-47b1-9931-bb107d74371e" type= "Ext4"
Next, modify the automatically mounted configuration file: sudo vim/etc/fstab
Modified as follows: UUID=70FB376C-17C2-4CE1-A263-727F647949CF/EXT4 Errors=remount-ro 0 1
# Swap was on/dev/sda5 during installation
uuid=0c5f073a-ad3f-414f-85c2-4af83f6a437f None swap SW 0 0
Uuid=11263962-9715-473f-9421-0b604e895aaa/data EXT4 Defaults 0 1
Uuid=88928fea-5dd3-47b1-9931-bb107d74371e/export EXT4 Defaults 0 1
The last two actions add a mount point.
Note that you should never set the Mount directory to/, or if the original root directory will be overwritten, the system will be dead.