Jellyfin Forum
How to add new hard drive ubuntu - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: How to add new hard drive ubuntu (/t-how-to-add-new-hard-drive-ubuntu)

Pages: 1 2


How to add new hard drive ubuntu - Doom69 - 2024-10-25

I ran all the code from this thread
https://forum.jellyfin.org/t-how-to-add-new-hard-drives-to-jellyfin-using-ubuntu

but it didn't work.

I want Jellyfin to access my /media/<username>/Blue

Note that I have to manually mount that drive every time this server turns on (maybe that's interfering or something). Tho I did all of those commands while the drive was mounted restarted the Jellyfin server and still I didn't see it when trying to add it to the library.

It's my first week at this and it took quite some time to set up, at least I got the first media folder working (/media/jellyfin)


RE: How to add new hard drive ubuntu - TheDreadPirate - 2024-10-25

Read my guide at the link below.

https://forum.jellyfin.org/t-mounting-local-storage-in-linux-linux-permissions-primer


RE: How to add new hard drive ubuntu - Doom69 - 2024-10-25

(6 hours ago)TheDreadPirate Wrote: Read my guide at the link below.

https://forum.jellyfin.org/t-mounting-local-storage-in-linux-linux-permissions-primer

I did the commands (from your guide)

I saw you say "Their media drives were auto-mounted and Jellyfin can't access them." while mine were the opposite do I have to mount them or just leave them unmounted (tried both ways, still didn't seem to work)


I got an error at the UUID=..... stage tho I believe I added the correct one (got the UUID from the Disks app).

When I used this /media/doom/Blue2 (Blue2 is the HHD)
I got
bash: /media/doom/Blue2: No such file or directory

When I used  /dev/sdc
bash: /dev/sdc: Permission denied


RE: How to add new hard drive ubuntu - TheDreadPirate - 2024-10-25

Can you show me the output of "sudo fdisk -lx"? And what you put in /etc/fstab?

You have to use the UUID for the partition, not the drive itself. Same with /dev/sdc. It is probably /dev/sdc1. /media/doom/Blue2 is a directory that your drive is mounted to and isn't a device.


RE: How to add new hard drive ubuntu - Doom69 - 2024-10-25

(4 hours ago)TheDreadPirate Wrote: Can you show me the output of "sudo fdisk -lx"?  And what you put in /etc/fstab?

You have to use the UUID for the partition, not the drive itself.  Same with /dev/sdc.  It is probably /dev/sdc1.  /media/doom/Blue2 is a directory that your drive is mounted to and isn't a device.

I believe it's this one (blocked out some info with x)

Disk /dev/sdc: 465,76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: xxxxxxxxxxxxx
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xxxxx9f

Device    Boot Start      End  Sectors Id Type  Start-C/H/S  End-C/H/S Attrs
/dev/sdc1        2048 976769023 976766976 83 Linux    0/32/33 1023/254/63


RE: How to add new hard drive ubuntu - TheDreadPirate - 2024-10-25

The disk model is not sensitive information. No need to sensor it. Also just realized that -x and -l don't have to be used together.

So show the full output of "sudo fdisk -x /dev/sdc" and also what you put into /etc/fstab.


RE: How to add new hard drive ubuntu - theguymadmax - 2024-10-25

fdisk does not give you the correct uuid, you need to use blkid command. Run the below command and use that uuid, it will be different than what you get using fdisk.
Code:
sudo blkid /dev/sdc



RE: How to add new hard drive ubuntu - TheDreadPirate - 2024-10-25

It does provide the same UUID.

Code:
chris@rat-trap:~$ sudo fdisk -x /dev/sdd ; echo "***************" ; sudo blkid /dev/sdd1
Disk /dev/sdd: 2.73 TiB, 3000592982016 bytes, 5860533168 sectors
Disk model: WDC WD30EFRX-68N
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 524790FD-E3D1-4F80-B9A1-F0582FA72E06
First usable LBA: 34
Last usable LBA: 5860533134
Alternative LBA: 5860533167
Partition entries starting LBA: 2
Allocated partition entries: 128
Partition entries ending LBA: 33

Device     Start        End    Sectors Type-UUID                            UUID                                 Name Attrs
/dev/sdd1   2048 5860533134 5860531087 0FC63DAF-8483-4772-8E79-3D69D8477DE4 63C1787F-E1A3-B34A-AE05-EB66F240E17D      
***************
/dev/sdd1: UUID="ec176098-2c7a-471d-9bd2-2c67b954387a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="63c1787f-e1a3-b34a-ae05-eb66f240e17d"

The UUID for the partition is the same value, "63C1787F-E1A3-B34A-AE05-EB66F240E17D".


RE: How to add new hard drive ubuntu - theguymadmax - 2024-10-25

On ubuntu you'll get differnt results. Only the one from blkid works in fstab:
Code:
max@HOME:~$ sudo blkid /dev/nvme0n1p4
/dev/nvme0n1p4: UUID="a8b87372-d084-4c2c-89ff-8670d4534330" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="Linux" PARTUUID="23bad7c6-2c12-4d09-af99-0ebb9ffa36ee"

max@HOME:~$ sudo fdisk -x
Device              Start        End    Sectors Type-UUID                            UUID                                Name                        Attrs
/dev/nvme0n1p4 1600968704 1870043135  269074432 0FC63DAF-8483-4772-8E79-3D69D8477DE4 23BAD7C6-2C12-4D09-AF99-0EBB9FFA36EE Linux                       



RE: How to add new hard drive ubuntu - TheDreadPirate - 2024-10-25

The "PARTUUID" for blkid is the same as the UUID for fdisk -x. Just lower case for blkid.