Open main menu

Changes

How to Format and Mount the HDD/SSD on Raspberry Pi

1,266 bytes added, 01:07, 8 December 2023
no edit summary
[[File:New-partition-ok.jpg]]
 
If you want to access the new partition within the file explorer, the easiest way is to unplug the USB jumper and plug it in again. Raspberry Pi OS will automatically mount the new partition:
 
[[File:Data-auto-mount.jpg]]
 
That’s it, you can now use it and create files in this folder
 
==Mount a HDD/SSD with a command on a Lite version==
Find the virtual drive name.
 
Before doing anything else, you need to find the current name of the drive. Once you plug it in, Raspbian will detect the drive and partitions, and assign a name to it. Follow this procedure to find it:
 
- We’ll use “fdisk” to list the current devices on the Raspberry Pi.
 
- Use the command below:
pi@raspberrypi ~ $ sudo fdisk -l
- A list will appear, and most of the time your HDD/SSD drive is the last item, so it’s easy to read.
 
In my case, I have this:
 
[[File:Fdisk-list-devices.jpg]]
 
- You have two things to note (squared in red):
#The partition name, assigned by Raspberry Pi OS: /dev/sda1 here.
#The file system type: FAT32 here.
- Once you know this, you have everything you need to move forward.
 
If you are not sure which one is your drive, the disk size may help you select the correct one (7.5G in my case). My SD card is 32G and is always identified as /dev/mmcblk0