|
格式化硬盘,并挂载
- armbian:~:#
- armbian:~:# lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
- sda 8:0 0 465.8G 0 disk
- mmcblk0 179:0 0 7.3G 0 disk
- ├─mmcblk0p1 179:1 0 511M 0 part /boot
- └─mmcblk0p2 179:2 0 6.8G 0 part /var/log.hdd
- /
- mmcblk0boot0 179:32 0 4M 1 disk
- mmcblk0boot1 179:64 0 4M 1 disk
- zram0 253:0 0 483M 0 disk [SWAP]
- zram1 253:1 0 50M 0 disk /var/log
- zram2 253:2 0 0B 0 disk
-
- armbian:/:# mkfs -t ext4 /dev/sda
- mke2fs 1.47.0 (5-Feb-2023)
- /dev/sda contains a ext4 file system
- last mounted on Thu Apr 4 21:29:32 2024
- Proceed anyway? (y,N) y
- Creating filesystem with 122096644 4k blocks and 30531584 inodes
- Filesystem UUID: e84afda2-67df-4550-9b56-8bb17c130621
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
- 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
- 102400000
- Allocating group tables: done
- Writing inode tables: done
- Creating journal (262144 blocks):
- done
- Writing superblocks and filesystem accounting information: done
- armbian:~:# cd /.
- armbian:/:# ls
- bin etc lib.usr-is-merged opt sbin sys
- bin.usr-is-merged home lost+found proc sbin.usr-is-merged tmp
- boot lib media root selinux usr
- dev lib64 mnt run srv var
- armbian:/:# mkdir DATA
- armbian:/:#
- armbian:/:# mount /dev/sda /DATA/
-
- armbian:/:# ls DATA
- lost+found
- armbian:/:# mount /dev/sda /DATA/
- mount: /DATA: /dev/sda already mounted on /DATA.
- dmesg(1) may have more information after failed mount system call.
- armbian:/:# blkid /dev/sda
- /dev/sda: UUID="e84afda2-67df-4550-9b56-8bb17c130621" BLOCK_SIZE="4096" TYPE="ext4"
-
- armbian:/:# nano /etc/fstab
- armbian:/:# mount -a
- Mount is denied because the NTFS volume is already exclusively opened.
- The volume may be already mounted, or another software may use it which
- could be identified for example by the help of the 'fuser' command.
- mount: (hint) your fstab has been modified, but systemd still uses
- the old version; use 'systemctl daemon-reload' to reload.
- armbian:/:#
- armbian:/:# poweroff
- armbian:/:#
- Connection closed by foreign host.
复制代码 |
|