automounting 3tb hdd i 6 ext4 partitions [SOLVED]

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

automounting 3tb hdd i 6 ext4 partitions [SOLVED]

Post by Summerof69 »

Hello this is almost a dublicate of my own post here:

viewtopic.php?f=49&t=239731

I've just installed Linux Mint 19 and i tried to take ownership and auto mount my internal hdd, and I've read some of the fine threads in this forum, but I just fubared my install and rendered it useless.

Timeshift did not help - the image I made once I finished the install did not work.

So now I'm reinstalling Mint 19 as I'm typing this on my laptop.

What needs to get done:

Have one 3TB hdd partitioned in 6 almost equal 500gb ext4 partitions called "Drev1,Drev2 and so on.


I have read other threads but since i rendered the new install useless (probably because I also messed with grub.... :( so that is why I'm seeking qualified help so I don't mess up the new install.

So I only need the 6 partitions to auto mount and own them.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: automounting 3tb hdd i 6 ext4 partitions

Post by Summerof69 »

Result of "lsblk -f"

sda
├─sda1 ext4 eabbf762-4360-4d40-ae46-c519d6641aba /boot
├─sda2
├─sda5 ext4 d1025bdb-4733-40ad-8337-396330a20c04 /
└─sda6 ext4 76c3f694-1d87-4ddf-ad8b-211a9e254c87 /home
sdb
├─sdb1 ext4 Drev1 945f8c2a-94b6-4184-b603-460d1e4e4043
├─sdb2 ext4 Drev2 03ce559b-8987-41fc-837c-4ad538f73dfd
├─sdb3 ext4 Drev3 12deb4cb-6f10-45eb-89a6-913e60bc94a1
├─sdb4 ext4 Drev4 ab6467e4-d65a-4520-92d2-9d2abb09db1d
├─sdb5 ext4 Drev5 4d0646c5-3ead-41f1-ab22-42d7a2c13db8
└─sdb6 ext4 Drev6 9d6a53fd-738a-44c1-9ea1-5fca4907e914
sdc
├─sdc1 ntfs 08E3A8A334B92AB0
├─sdc2 ntfs 36DF42C829D52C66 /media/sren/36DF42C829D
├─sdc3 ntfs 63DD3FD41DB83BEE /media/sren/63DD3FD41DB
└─sdc4 swap dac7deb7-b5f3-4f05-b58d-686e94098fd0 [SWAP]
and "cat /etc/fstab"

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=d1025bdb-4733-40ad-8337-396330a20c04 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=eabbf762-4360-4d40-ae46-c519d6641aba /boot ext4 defaults 0 2
# /home was on /dev/sda6 during installation
UUID=76c3f694-1d87-4ddf-ad8b-211a9e254c87 /home ext4 defaults 0 2
# swap was on /dev/sdc4 during installation
UUID=dac7deb7-b5f3-4f05-b58d-686e94098fd0 none swap sw 0 0
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
Sir Charles

Re: automounting 3tb hdd i 6 ext4 partitions

Post by Sir Charles »

1) Make a mount point in /media for each one of the partitions you want to mount:

Code: Select all

sudo mkdir /media/$USER/Drev1
Repeat for Drev2, ...

2) Add a new line for each partition in /etc/fstab:

Code: Select all

UUID=uuid-for-drev1 /media/$USER/Drev1  ext4  defaults,noatime,nofail 0  2
Replace uuid-for-drev1 with the actual UUID from the output from lsblk. Repeat for all the partitions.

3)Once done for each partition:

Code: Select all

sudo mount --all
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: automounting 3tb hdd i 6 ext4 partitions

Post by Summerof69 »

Hey it works!

Thank you Marziano :D

All 6 partitions are mounted at startup and I'm the owner.

Would you please take a look at my fstab as it's looking now?

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=d1025bdb-4733-40ad-8337-396330a20c04 /               ext4    noatime,errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=eabbf762-4360-4d40-ae46-c519d6641aba /boot           ext4    defaults,noatime        0       2
# /home was on /dev/sda6 during installation
UUID=76c3f694-1d87-4ddf-ad8b-211a9e254c87 /home           ext4    defaults,noatime        0       2
# swap was on /dev/sdc4 during installation
UUID=dac7deb7-b5f3-4f05-b58d-686e94098fd0 none            swap    sw              0       0
UUID=945f8c2a-94b6-4184-b603-460d1e4e4043 /media/sren/Drev1  ext4  defaults,noatime,nofail 0  2
UUID=03ce559b-8987-41fc-837c-4ad538f73dfd /media/sren/Drev2  ext4  defaults,noatime,nofail 0  2
UUID=12deb4cb-6f10-45eb-89a6-913e60bc94a1 /media/sren/Drev3  ext4  defaults,noatime,nofail 0  2
UUID=ab6467e4-d65a-4520-92d2-9d2abb09db1d /media/sren/Drev4  ext4  defaults,noatime,nofail 0  2
UUID=4d0646c5-3ead-41f1-ab22-42d7a2c13db8 /media/sren/Drev5  ext4  defaults,noatime,nofail 0  2
UUID=9d6a53fd-738a-44c1-9ea1-5fca4907e914 /media/sren/Drev6  ext4  defaults,noatime,nofail 0  2
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
Sir Charles

Re: automounting 3tb hdd i 6 ext4 partitions

Post by Sir Charles »

That's great! I am :D that it worked out. Your /etc/fstab looks alright to me, well done!
Here are two links for future reference should you need it:
https://help.ubuntu.com/community/Fstab
https://wiki.archlinux.org/index.php/fstab

Cheers
Marziano
Summerof69
Level 4
Level 4
Posts: 200
Joined: Sun Oct 25, 2015 11:52 am
Location: Mainland,Denmark

Re: automounting 3tb hdd i 6 ext4 partitions

Post by Summerof69 »

Will do at some point...
Thanks again.
For millions of years mankind lived much like the animals
Then something happened which unleashed the power of our imagination
We learned to talk
All we need to do is make sure we keep talking
Stephen Hawkin's voice on Keep Talking by Pink Floyd
Sir Charles

Re: automounting 3tb hdd i 6 ext4 partitions

Post by Sir Charles »

You are welcome!
Ciao!
Locked

Return to “Storage”