Score:0

How to properly mount folders inside a HDD in /mnt?

mx flag

I had 3 smaller disks on my machine, /dev/sda, /dev/sdb/ and /dev/sdc mounted respectively as /mnt/video, /mnt/audio and /mnt/media. Now I purchased a WAY bigger drive and want to consolidate everything into one, but I already have so many services depending on those paths that modifying it would be a huge headache. I sucefully managed to rsync every disk to it's respective folder on the bigger drive mounted as /mnt/DATA01, currently the FSTAB is more or less like that:

UUID={devsdaUUID}       /mnt/video    ext4    defaults          0    2
UUID={devsdbUUID}       /mnt/audio    ext4    defaults          0    2
UUID={devsdcUUID}       /mnt/media    ext4    defaults          0    2
UUID={devsdeUUID}       /mnt/DATA01   ext4    defaults          0    2

I'm planning now to edit it to something like this to mount them on boot:

UUID={devsdeUUID}       /mnt/DATA01          ext4    defaults          0    2
/mnt/DATA01/video       /mnt/video           ext4    defaults          0    2
/mnt/DATA01/audio       /mnt/audio           ext4    defaults          0    2
/mnt/DATA01/media       /mnt/media           ext4    defaults          0    2
UUID={devsdaUUID}       /mnt/backup_video    ext4    defaults          0    2
UUID={devsdbUUID}       /mnt/backup_audio    ext4    defaults          0    2
UUID={devsdcUUID}       /mnt/backup_media    ext4    defaults          0    2

Is this approach correct? will it work properly or should I do something else instead to mount the folders like /mnt/DATA01/video into /mnt/video? like using bind instead of defaults or symlinks.

Score:1
cf flag

You can't mount the three directories as ext4 since they aren't partitions, but you can use bind mounts like this:

UUID={devsdaUUID}       /mnt/backup_video    ext4    defaults          0    2
UUID={devsdbUUID}       /mnt/backup_audio    ext4    defaults          0    2
UUID={devsdcUUID}       /mnt/backup_media    ext4    defaults          0    2
UUID={devsdeUUID}       /mnt/DATA01          ext4    defaults          0    2
/mnt/DATA01/video       /mnt/video           none    bind              0    0
/mnt/DATA01/audio       /mnt/audio           none    bind              0    0
/mnt/DATA01/media       /mnt/media           none    bind              0    0
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.