Difference between revisions of "How to Format and Mount the HDD/SSD on Raspberry Pi"

From Geekworm Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{GD Template Impl}}
 
{{GD Template Impl}}
  
'''Install Gparted tool on Raspberry Pi'''
+
'''1. Install Gparted tool on Raspberry Pi'''
  
 
You can either use a terminal, and simply use the following commands:
 
You can either use a terminal, and simply use the following commands:
Line 15: Line 15:
  
 
[[File:Menu-gparted.jpg]]
 
[[File:Menu-gparted.jpg]]
 +
 +
'''2. Use Gparted on Raspberry Pi'''
 +
 +
When you start Gparted, you need to type your password (administrator privileges are required). Then, you’ll get an interface looking like:
 +
 +
[[File:Gparted-interface.jpg]]
 +
 +
'''Start by picking the disk you want to modify in the top-right corner.'''
 +
 +
Reminder: It’s not possible to make changes on the disk you are currently using. You have to install Raspberry Pi OS on another device, and then plug the drive you want to edit.
 +
 +
Once done, you can change anything with a right-click on the partition name or in the graphical representation. I will show you how to resize a partition or create a new one.
 +
 +
'''Resize a partition'''
 +
 +
You need to unmount the partition before resizing it. That’s why you can resize the system partition once the system is loaded. As Raspberry Pi OS will automatically mount all partitions, the first step is to right-click on it, and choose “Unmount”:
 +
 +
  
  

Revision as of 00:57, 8 December 2023

1. Install Gparted tool on Raspberry Pi

You can either use a terminal, and simply use the following commands:

sudo apt update
sudo apt install gparted

Apt-gparted-800p.jpg

Or via the graphical tool (“Add/Remove Software”), open the package manager and look for Gparted:

Gparted-add-remove.jpg

Check the box corresponding to gparted, and click “Apply” to start the installation, once installed, Gparted should be available in the main menu, under System Tools:

Menu-gparted.jpg

2. Use Gparted on Raspberry Pi

When you start Gparted, you need to type your password (administrator privileges are required). Then, you’ll get an interface looking like:

Gparted-interface.jpg

Start by picking the disk you want to modify in the top-right corner.

Reminder: It’s not possible to make changes on the disk you are currently using. You have to install Raspberry Pi OS on another device, and then plug the drive you want to edit.

Once done, you can change anything with a right-click on the partition name or in the graphical representation. I will show you how to resize a partition or create a new one.

Resize a partition

You need to unmount the partition before resizing it. That’s why you can resize the system partition once the system is loaded. As Raspberry Pi OS will automatically mount all partitions, the first step is to right-click on it, and choose “Unmount”:



Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Anonymous user #1

26 days ago
Score 0++
thanks, was confused getting my m.2 setup!:)