I can't get my internal HDD to mount at startup - am I missing something, or is this a bug?

Asked by el_gallo_azul

I want to mount my internal HDD at at startup (I boot from an SSD). I attempt to set this, following this procedure:

1. Open Disks utility
2. Select the disk
3. Below the disk's Volumes, click on the More actions button
4. Select Edit Mount Options...
5. Select Automatic Mount Options "Off"
6. Under Mount Options, ensure that Mount at startup is selected
7. Click OK
8. Enter password into Authenticate dialog box
9. Restart

but this procedure doesn't work. Upon rebooting, and after Grub attempts to start Ubuntu, I receive the error message "An error occurred while mounting /mnt/4f721fc0-8072-453f-b48f-ca686bd89549. Press S to skip mounting or M for manual recovery".

I press S and the boot process continues OK. If I try to mount the disk immediately after booting, I receive the error message "Unable to access "Storage"".

So then I start the Disks utility and set it to Automatic Mount Options "On" and reboot.

To me, it seems like this should work, but it doesn't.

A number of photos of the process are at

https://imgur.com/a/yZHD8

(Alt+PrtScn doesn't work after selecting More actions).

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
el_gallo_azul
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of :

cat /etc/fstab

Also what file system is in use on the USB storage?

Thanks

Revision history for this message
el_gallo_azul (el-gallo-azul) said :
#2

1. cat /etc/fstab

el_gallo_azul@W2600CR:~$ 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/sda1 during installation
# swap was on /dev/sda5 during installation
UUID=265ae6bf-eb9e-4100-98d4-b1fbec0b658d none swap sw 0 0
el_gallo_azul@W2600CR:~$

2. Some of my USB storage devices use FAT32, and others are Ext3 and Ext4. The HDD that is the subject of this question is an internal HDD, which I suppose would be SATA and not USB. Also, it is sdb, and I mention this because I see that it does not appear in item 1.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I suggest you use fsck on the partition (unmounted) it will make sure the file system is consistent.

Revision history for this message
el_gallo_azul (el-gallo-azul) said :
#4

el_gallo_azul@W2600CR:~$ sudo fsck /dev/sdb1
fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
Storage: clean, 1960/61054976 files, 123287713/244190208 blocks
el_gallo_azul@W2600CR:~$

I will try the steps 1 - 9 from my original post later today.

Revision history for this message
el_gallo_azul (el-gallo-azul) said :
#5

I just finished repeating steps 1 - 9, from my original post (above) on 2014-07-17, after having run fsck (I ran it again immediately before trying to "mount at startup").

Exactly the same thing occurred as previously.

That is:

Upon rebooting, and after Grub attempts to start Ubuntu, I receive the error message "An error occurred while mounting /mnt/sdb1. Press S to skip mounting or M for manual recovery".

I press S and the boot process continues OK. If I try to mount the disk immediately after booting, I receive the error message "Unable to access "Storage"".

So then I start the Disks utility and set it to Automatic Mount Options "On" and reboot.

Note that I changed "/mnt/4f721fc0-8072-453f-b48f-ca686bd89549" to "/mnt/sdb1".

Revision history for this message
el_gallo_azul (el-gallo-azul) said :
#6

I ended up addressing this by editing fstab directly (since trying to use gnome-disk-utility to configure the disk intuitively didn't work).

- Google search "ubuntu 14.04 mount internal hdd at startup"
- Open and read:
"http://ubuntuforums.org/showthread.php?t=1571781&page=2" and
"http://ubuntuforums.org/showthread.php?t=1571781&page=3" and
"http://ubuntuforums.org/showthread.php?t=1571781&page=4" and
"http://askubuntu.com/questions/456054/unable-to-mount-hard-disk-at-startup" and
"http://askubuntu.com/questions/463994/problem-mounting-second-harddrive-with-ubuntu-14-04?rq=1" and
"http://askubuntu.com/questions/512321/how-do-i-get-my-internal-hdd-to-mount-at-startup" and
"https://help.ubuntu.com/community/Fstab" and
"http://ubuntuforums.org/showthread.php?t=283131" and
"https://help.ubuntu.com/community/AutomaticallyMountPartitions#Per-User_Mounts"
- Go to /etc/fstab file
- Right-click on file and run Script 'open-as-administrator'
- Add "
# mount 4f721fc0-8072-453f-b48f-ca686bd89549/sdb1/Storage at boot
UUID=4f721fc0-8072-453f-b48f-ca686bd89549 /media/el_gallo_azul/Storage ext4 defaults 0 2"
- Test by rebooting
- Determined to be successful by Dropbox not generating 'Dropbox folder not found' error message

Revision history for this message
el_gallo_azul (el-gallo-azul) said :
#7

But then I had to change the mount point:

"# mount 4f721fc0-8072-453f-b48f-ca686bd89549/sdb1/Storage at boot
UUID=4f721fc0-8072-453f-b48f-ca686bd89549 /media/el_gallo_azul/Storage ext4 defaults 0 2"

to

"# mount 4f721fc0-8072-453f-b48f-ca686bd89549=sdb1=InternalHDD at boot
UUID=4f721fc0-8072-453f-b48f-ca686bd89549 /mnt/InternalHDD ext4 defaults 0 2"

in order to reliably keep the correct permissions for one of my applications (BOINC) to use that location.