Add a new hard disk in Linux to automatically mount the hard disk
Source: Internet
Author: User
Add a new hard disk in Linux to automatically mount the hard disk. insert a new hard disk and start the Linux server. use fdisk-l to view the hard disk www.2cto.com # fdisk-lDisk/dev/sda: 1000.2 GB, 1000204886016bytes2. formatting hard disk # mkfs-text4/dev/sda3 .... add a new hard disk in Linux to automatically mount the hard disk. insert a new hard Disk and start the Linux server. use fdisk-l to view the hard Disk www.2cto.com # fdisk-l Disk/dev/sda: 1000.2 GB, 1000204886016 bytes 2. format the hard disk # mkfs-t ext4/dev/sda 3. mount the hard disk www.2cto.com # mount the address of the hard disk # mount/dev/sda/media/imgs 4. automatically mount the partition after system restart # Add/dev/sda/media/imgs ext4 ULTS 1 2 in the last line of vi/etc/fstab
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service