[ubuntu mount hard disk] boot automatically mount

1. View the hard disk identification

First, you can manually mount the hard disk in file management. However looking at the identifier:

df -h

Find the hard disk you want to mount
/dev/sda3 1.6T 547G 1.1T 35%

2. Command mount in the terminal

sudo mount /dev/sda3 /media/wrc/

3. Automatically mount at boot

sudo gedit /etc/rc.d/rc.local

Write commands in rc.local, need to be placed exit 0before. save.

sudo mount /dev/sda3 /media/wrc/

Modify permissions

sudo chmod u+x /etc/rc.d/rc.local 

Establish a soft link

sudo ln -s /etc/rc.d/rc.local /etc/rc.local

After restarting, it is found that it can be automatically mountedinsert image description here

Acho que você gosta

Origin blog.csdn.net/condom10010/article/details/130261623
Recomendado
Clasificación