stanislas-brossette
May 10th, 2018, 11:07 AM
Hello,
I recently build a PC and installed ubuntu 18.04 on it. I installed 2 HDD in it, but only one is automatically mounted.
I'd like the second one to be mounted as well. Any help appreciated.
Here is the output of sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/sda1: UUID="C8C2-BEA4" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="fb5edaef-2b34-4e67-9f76-5d34f70810ef"
/dev/sda2: UUID="07a11cb8-b84f-4f35-bf75-6e668ac561c8" TYPE="ext4" PARTUUID="47c698fe-e8b2-409b-83e3-71a9f77c9d8d"
/dev/sda3: UUID="821db62e-17ad-40da-9e8f-6c9a7a7b3c61" TYPE="swap" PARTUUID="886347f6-0054-4d89-a960-4f41749c0c8f"
And here of sudo fdisk -l
Disk /dev/loop0: 86,6 MiB, 90759168 bytes, 177264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 86,6 MiB, 90828800 bytes, 177400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 4,9 MiB, 5152768 bytes, 10064 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
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: gpt
Disk identifier: 28ECA11E-5078-4865-9C16-A69D817F902C
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 200980479 199929856 95,3G Linux filesystem
/dev/sda3 200980480 234440703 33460224 16G Linux swap
Disk /dev/sdb: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
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/sda2 during installation
UUID=07a11cb8-b84f-4f35-bf75-6e668ac561c8 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=C8C2-BEA4 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda3 during installation
UUID=821db62e-17ad-40da-9e8f-6c9a7a7b3c61 none swap sw 0 0
I assume that I need to add the correct line in /etc/fstab, but not sure how to write that line.
Thanks
I recently build a PC and installed ubuntu 18.04 on it. I installed 2 HDD in it, but only one is automatically mounted.
I'd like the second one to be mounted as well. Any help appreciated.
Here is the output of sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/sda1: UUID="C8C2-BEA4" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="fb5edaef-2b34-4e67-9f76-5d34f70810ef"
/dev/sda2: UUID="07a11cb8-b84f-4f35-bf75-6e668ac561c8" TYPE="ext4" PARTUUID="47c698fe-e8b2-409b-83e3-71a9f77c9d8d"
/dev/sda3: UUID="821db62e-17ad-40da-9e8f-6c9a7a7b3c61" TYPE="swap" PARTUUID="886347f6-0054-4d89-a960-4f41749c0c8f"
And here of sudo fdisk -l
Disk /dev/loop0: 86,6 MiB, 90759168 bytes, 177264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 86,6 MiB, 90828800 bytes, 177400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 4,9 MiB, 5152768 bytes, 10064 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
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: gpt
Disk identifier: 28ECA11E-5078-4865-9C16-A69D817F902C
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 200980479 199929856 95,3G Linux filesystem
/dev/sda3 200980480 234440703 33460224 16G Linux swap
Disk /dev/sdb: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
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/sda2 during installation
UUID=07a11cb8-b84f-4f35-bf75-6e668ac561c8 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=C8C2-BEA4 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda3 during installation
UUID=821db62e-17ad-40da-9e8f-6c9a7a7b3c61 none swap sw 0 0
I assume that I need to add the correct line in /etc/fstab, but not sure how to write that line.
Thanks