1.给Linux系统新增加一块硬盘
2.linux之fstab文件详解
主要使用fdisk修改新建分区,然后w写入,退出后格式化mkfs -t ext4 /dev/sda1;再修改/etc/fstab文件开机自动挂载,options可以使用defaults。默认rw可以读写。如果默认所有者是root,可以chown改变用户。
neil@debian99:~/Desktop$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdc2 during installation
UUID=b554ee6d-0e7e-404f-a505-64454aa30173 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sdc1 during installation
UUID=4A0E-377D /boot/efi vfat umask=0077 0 1
# swap was on /dev/sdc3 during installation
UUID=252844fc-a10c-4ef8-aafc-b21560e33513 none swap sw 0 0
#extend ssd mount on home/neil/data
UUID=4787465c-dee7-4de6-bbde-3f00931b2fa3 /home/neil/data ext4 defaults 0 2