Partition not mounting on boot

12 posts / 0 new
Last post
#1 Fri, 04/10/2015 - 06:49
jonas-2

Partition not mounting on boot

Hi,

<< System description: >>

I have a server with 3 partitions (but it reports 4 with sda1 with 1mb in size).

sda2 is / <-- has OS files

sda3 is /home <-- has virtual servers, webhosts, files, etc

sda4 is swap

fdisk -l shows "Partition 1 does not start on physical sector boundary." along with this warning: "GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted."

parted -l shows: Number Start End Size File system Name Flags 1 20.5kB 1049kB 1029kB primary bios_grub 2 2097kB 26.2GB 26.2GB ext4 primary 3 26.2GB 1992GB 1966GB ext4 primary 4 1992GB 2000GB 8589MB linux-swap(v1) primary

<< The issue: >>

When I reboot the server, /home is not mounted and I have to manually do: mount -t ext4 /dev/sda3 /home

<< Question: >>

Is there a way to have /home mount on boot?

Your help is much appreciated.

Fri, 04/10/2015 - 09:37
andreychek

Howdy,

Can you post your /etc/fstab file? It's possible that may need tweaked in order to make /home mount automatically.

-Eric

Fri, 04/10/2015 - 15:29
jonas-2

Hi Eric, Thanks for the quick reply!

Here is the content of /etc/fstab:

'file system' 'mount point' 'type' 'options' 'dump' 'pass'
/dev/sda2 / ext4 errors=remount-ro 0 1
/dev/sda3 /home ext4 seclabel,grpquota,barrier=1,usrquota,data=ordered,relatime,rw 0 2
/dev/sda4 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
Mon, 04/13/2015 - 17:08
jonas-2

Bump : )

Tue, 04/14/2015 - 18:16
jonas-2

Any one cares to help?

Tue, 04/14/2015 - 18:22
andreychek

Your fstab file looks pretty normal.

Do you see any errors during bootup that might explain why it's having trouble mounting that automatically?

-Eric

Tue, 04/14/2015 - 18:48
jonas-2

Hi Eric,

I get this from Webmin Edit Mount page:

Failed to save mount : Mount failed :

mount: wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so

under the same page, in option "New Linux Native Filesystem" I tried both:

  • "Disk" while selecting partition 3
  • "Partition with ID" selecting partition 3
  • But again, if I manually do "mount -t ext4 /dev/sda3 /home" in ssh, then all is good.

    Tue, 04/14/2015 - 22:05
    andreychek

    Hmm, so after rebooting, what output do you receive if you just run this command:

    mount /home

    Tue, 04/14/2015 - 22:39
    jonas-2

    Same as above (sorry I thought I mentioned it)

    mount: wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so

    Wed, 04/15/2015 - 14:02
    andreychek

    I'm not quite sure what the issue you're seeing is, but you may want to try tinkering with the options being used in the /etc/fstab file for that mount point.

    A few of them aren't default options, and it's possible one of the ones being used is causing a problem.

    You could try removing "barrier=1" and "data=ordered", for example, and then try rebooting again.

    -Eric

    Thu, 04/23/2015 - 02:12
    jonas-2

    I resolved the issue by removing the option seclabel from /etc/fstab

    Thu, 04/23/2015 - 09:56
    andreychek

    Great, thanks for letting us know how you fixed it!

    Topic locked