How to add a new disk
This commit is contained in:
parent
28c8192f5c
commit
c5629225a9
1 changed files with 24 additions and 0 deletions
24
add_new_disk_to_debian.md
Normal file
24
add_new_disk_to_debian.md
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
# Adding a new disk to debian
|
||||||
|
|
||||||
|
I'm adding a new HDD to Frankie, so I'll take the chances to note down the process for future disk additions.
|
||||||
|
|
||||||
|
First, let's find the disk. It should appear in the list of existing disks by running:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo fdisk -l
|
||||||
|
```
|
||||||
|
|
||||||
|
It should show with an id such as `/dev/sda`. If the disk is new, it won't show any partitions.
|
||||||
|
|
||||||
|
To create a new partition, run `fdisk <id of the disk>`. For example, `fdisk /dev/sda`.
|
||||||
|
|
||||||
|
Then click `n` to create a new partition, `p` for primary, a number, and set the size (just press enter to use all
|
||||||
|
available space).
|
||||||
|
|
||||||
|
Finally, you can use `p` to check the final state and `w` to confirm the changes and write them to disk.
|
||||||
|
|
||||||
|
If you want to format the disk as `ext4`, you can run:
|
||||||
|
|
||||||
|
`sudo mkfs -t ext4 <id of the partition>`
|
||||||
|
|
||||||
|
You can check the final result with `lsblk -f.`
|
||||||
Loading…
Add table
Add a link
Reference in a new issue