Quantcast
Viewing all articles
Browse latest Browse all 4933

Networking and servers • Raspberry Pi NAS setup with USB HDD

Guys,

I realize that very similar posts have happened in the past but as you guys are aware, unless things fall specifically into what someone
is doing, sometimes newbies like myself need more guidance. Here's the deal:

I have a 14Tb Seagate 'Expansion' USB HDD plugged into my RPi 5. Trying to setup a NAS. The RPi sees the HDD:

lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 12.7T 0 disk
├─sda1 8:1 0 200M 0 part
└─sda2 8:2 0 12.7T 0 part /media/sandip/Expansion
mmcblk0 179:0 0 119.1G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 118.6G 0 part /

df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4078928 0 4078928 0% /dev
tmpfs 824144 8400 815744 2% /run
/dev/mmcblk0p2 122322964 5977212 110112432 6% /
tmpfs 4120704 496 4120208 1% /dev/shm
tmpfs 5120 48 5072 1% /run/lock
/dev/mmcblk0p1 522230 69530 452700 14% /boot/firmware
tmpfs 824128 256 823872 1% /run/user/1000
/dev/sda2 13671946240 588135168 13083811072 5% /media/sandip/Expansion


I understand that I'm supposed to partition, format, and mount the USB HDD. I get mounting it, but why do I need to partition
it and format it? I have no plan to have the RPi boot from or use the HDD, I only want to use the micro SD card for that.
The HDD should only be for data (unless someone convinces me this is bad).

Second, if I must partition it, I don't understand the info gdisk is telling me.

Welcome to fdisk (util-linux 2.38.1).
sudo gdisk /dev/sda2
GPT fdisk (gdisk) version 1.0.9

Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************

Exact type match not found for type code F400; assigning type code for
'Linux filesystem'
Exact type match not found for type code F400; assigning type code for
'Linux filesystem'
Exact type match not found for type code F400; assigning type code for
'Linux filesystem'
Exact type match not found for type code F400; assigning type code for
'Linux filesystem'

The disk is already formatting using ExFAT.

Final question, do I have to go the Samba route? I just want the RPi to share a folder to my Mac which is on the
same local network as the RPi.

Please advise this newbie!!

S

Statistics: Posted by sarnath — Tue Jan 21, 2025 2:56 am



Viewing all articles
Browse latest Browse all 4933

Trending Articles