-
when using fdisk the new drive says this idk if thats a problem
I've created a GPT partition table and i have set it up to /dev/sda1 but then i mount it in /etc/fstab with the UUID and the do mount -a it says this
"mount: /home: can't find UUID=BF3D2D40-32EB-9D4F-8ACB-0894B255FEDA."
-
@mdc773 said in adding a drive:
can't find UUID=[..]A."
I would say the dot at the end could be the issue here. I don't think I have ever seen a uuid with a dot.
For the error message the explanation would be that the disk was indeed still mounted when you ran fdisk. Any existing and mounted partitions should be unmounted (
umount /media/my-new-disk
) before creating new partitions and filesystems. -
@fbartels you're absolutely correct about it not matching the first error. What's funny to me is when I do blkid /dev/sda1 I get the PARTUUID but when I do blkid /dev/sda I get a UUID
Honestly drives and partitions aren't things that I'm familiar with this is why I'm having an issue so if anybody knows the correct way for me to add this drive I'd really appreciate it it seems is that this drive has nothing on it but I get that error in the beginning when I'm trying to create the partition
-
@mdc773 said in adding a drive:
What's funny to me is when I do blkid /dev/sda1 I get the PARTUUID but when I do blkid /dev/sda I get a UUID
That is because
/dev/sda
is the harddisk, and/dev/sda1
is the first partition on said harddisk.Hetzner has a lengthy article about mounting disks: https://community.hetzner.com/tutorials/howto-linux-mount
-
This is very much a generic Linux topic, not much related to Cloudron. So looks like it is already mounted from the last error message you have posted.
You can run themount
command to see all currently mounted filesystems. Maybe you have to first unmount it to then mount it to the correct mountpoint? -
-