Open main menu

Changes

How to View/Partition/Format/Mount HDD/SSD

225 bytes added, 18:41, 26 July 2023
{{GD Template Impl}}
==How to view the HDD/SSD==1. Check USB device: pi@raspberrypi:~ $ lsusb The result is as follows‎<pre>Bus 002 Device 004: ID 152d:0561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS551 - Sharkoon SATA QuickPort Duo Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</pre> The first line indicates that the USB device has been correctly recognized by the OS.('''JMicron''' is the USB storage chip supplier)  If you cannot find the corresponding USB device, please check that your USB device is tightly connected, or replug the USB3 connector, or replace the USB3 connector with a USB-A to USB-A cable. Sometimes, '''insufficient power supply''' may also cause the USB device not to be found, so we can also try to replace a high-quality power adapter. If you have tried these actions and still cannot solve the problem, please contact us ('''support@geekworm.com''') with the result information after running the '''lsusb''' command and your order number. 
2. View HDD/SSD
pi@raspberrypi:~ $ fdisk lsblk -lpThe result is as follows<pre> fdiskNAME MAJ: cannot open MIN RM SIZE RO TYPE MOUNTPOINT/dev/ram0sda 8: Permission denied0 0 298.1G 0 disk fdisk: cannot open └─/dev/ram1sda1 8: Permission denied1 0 298.1G fdisk: cannot open /dev/ram2: Permission denied0 part fdisk: cannot open /dev/ram3sdb 8: Permission denied16 0 fdisk: cannot open /dev/ram4: Permission denied74.5G fdisk: cannot open /dev/ram5: Permission denied0 disk fdisk: cannot open └─/dev/ram6sdb1 8: Permission denied17 0 fdisk: cannot open /dev/ram7: Permission denied74.5G fdisk: cannot open /dev/ram8: Permission denied0 part fdisk: cannot open /dev/ram9mmcblk0 179: Permission denied0 0 7.4G fdisk: cannot open /dev/ram10: Permission denied0 disk fdisk: cannot open ├─/dev/ram11mmcblk0p1 179: Permission denied1 0 256M fdisk: cannot open /dev0 part /ram12: Permission deniedboot fdisk: cannot open └─/dev/ram13mmcblk0p2 179: Permission denied2 0 7.1G fdisk: cannot open 0 part /dev/ram14: Permission denied fdisk: cannot open </dev/ram15: Permission deniedpre> fdisk: cannot open /dev/mmcblk0: Permission denied fdisk: cannot open There are two SSDs devices were found. (/dev/sda: Permission denied fdisk: cannot open and /dev/sdb: Permission denied)
The last two lines indicate that 2 SSDs devices were found. (sda and sdb)
3. Check if the hard disk is partitioned.
'''If the hard disk is not partitioned, we need to [[How to Partition a HDD | partition the hard disk]]'''
 
==How to Partition a HDD==
Creating journal (131072 blocks):
done
Writing superblocks and filesystem accounting information: done   '/dev/sda1'/ is the first partition of the SDA . If you divide SDA into multiple partitions, there may be /dev/sda2, /dev/sda3, etc.
==How to mount HDD/SSD Partition==
/dev/sda1 76314492 24 72392188 1% /mnt
'/dev/sda1' is mounted under '/mnt' folder