# Partition unmounting automatically after reboot.

**URL:** <https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636>\
**Category:** SLES Configure-Administer\
**Created:** [February 2, 2015, 9:09pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636 "2015-02-02T21:09:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![agarud](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@agarud](https://forums.suse.com/u/agarud)\
**Post date:** [February 2, 2015, 9:09pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/1 "2015-02-02T21:09:11Z")

</div>

Hello All,

Our issue is when we reboot our server one the partition get umounted automatically. Every time we have to mount our partition manually. We have entry of that partition in fstab.

We have :  
SUSE Linux Enterprise Server 11 (x86\_64)  
VERSION = 11  
PATCHLEVEL = 1

Could anyone please tell what is causing this issue.?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 2, 2015, 9:22pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/2 "2015-02-02T21:22:18Z")

</div>

> [@](#):
>
> On Mon 02 Feb 2015 07:14:02 PM CST, agarud wrote:
> 
> Hello All,
> 
> Our issue is when we reboot our server one the partition get umounted  
> automatically. Every time we have to mount our partition manually. We  
> have entry of that partition in fstab.
> 
> We have :  
> SUSE Linux Enterprise Server 11 (x86\_64)  
> VERSION = 11  
> PATCHLEVEL = 1
> 
> Could anyone please tell what is causing this issue.?

Hi  
Can you show the fstab entry and also the full command you use to  
manually mount.

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.2 (Harlequin) (x86\_64) GNOME 3.14.0 Kernel 3.16.7-7-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![agarud](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@agarud](https://forums.suse.com/u/agarud)\
**Post date:** [February 2, 2015, 9:37pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/3 "2015-02-02T21:37:31Z")

</div>

Hi,

Our partition is  
/dev/mapper/Volumegroup-logicalvolume  
GB MB GB 1% /xxx/xxx/xxx  
fstab entry is  
/dev/Volumegroup/logicalvolume /xxx/xxx/xxx ext3 acl,user\_xattr 1 2

Command used is :

mount /xxx/xxx/xxx

Thanks  
agarud

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [February 2, 2015, 10:27pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/4 "2015-02-02T22:27:13Z")

</div>

> [@](#):
>
> On Mon 02 Feb 2015 07:44:01 PM CST, agarud wrote:
> 
> Hi,
> 
> Our partition is  
> /dev/mapper/Volumegroup-logicalvolume  
> GB MB GB 1% /xxx/xxx/xxx  
> fstab entry is  
> /dev/Volumegroup/logicalvolume /xxx/xxx/xxx ext3  
> acl,user\_xattr 1 2
> 
> Command used is :
> 
> mount /xxx/xxx/xxx
> 
> Thanks  
> agarud

Hi  
You need a udev rule, have a read here;  
[https://www.suse.com/support/kb/doc.php?id=7004427](https://www.suse.com/support/kb/doc.php?id=7004427)

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.2 (Harlequin) (x86\_64) GNOME 3.14.0 Kernel 3.16.7-7-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![agarud](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@agarud](https://forums.suse.com/u/agarud)\
**Post date:** [February 2, 2015, 11:51pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/5 "2015-02-02T23:51:01Z")

</div>

Hi, thanks for the link. Let me explain my scenario

We have two Volumegroups  
say Volumegroup1 and Volumegroup  
first partition:  
/dev/mapper/Volumegroup1-logicalvolume1  
GB GB GB 86% /opt/abc  
fstab entry for this partition is  
/dev/ Volumegroup1/logicalvolume1/opt/abc ext3 acl,user\_xattr 1 2

the multipathed fstab entry for iscsi device is,  
/dev/disk/by-id/scsi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-p /opt/abc ext3 nofail 1 2  
/dev/disk/by-id/scsi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-p /opt/abc ext3 nofail 1 2

the second partition is:  
/dev/mapper/Volumegroup-logicalvolume  
GB MB GB 1% /opt/abc/pqr  
fstab entry for this is:  
/dev/ Volumegroup/logicalvolume /opt/abc/pqr ext3 acl,user\_xattr 1 2  
We are facing the problem for the second partition. It is the one which is getting unmounted automatically. And just for clarification we had rebooted the server at earlier time and did not get the problem.  
And also the open-iscsi is on in chkconfig and multipathd service is off on in chkconfig , the open-iscsi service is running but the multipathd service is unused.

Thanks  
agarud

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [February 3, 2015, 3:47pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/6 "2015-02-03T15:47:20Z")

</div>

Hi agarud,

is the fstab entry for /opt/abc/pqr _after_ the one for /opt/abc?

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![agarud](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@agarud](https://forums.suse.com/u/agarud)\
**Post date:** [February 3, 2015, 7:48pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/7 "2015-02-03T19:48:55Z")

</div>

[QUOTE=jmozdzen;26135]Hi agarud,

is the fstab entry for /opt/abc/pqr _after_ the one for /opt/abc?

Regards,  
Jens[/QUOTE]

Hi Jens,

no /opt/abc/pqr is first followed by the iscsci devices and after that /opt/abc.

Thanks  
agarud

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [February 3, 2015, 8:16pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/8 "2015-02-03T20:16:00Z")

</div>

Hi agarud,

[QUOTE=agarud;26147]Hi Jens,

no /opt/abc/pqr is first followed by the iscsci devices and after that /opt/abc.

Thanks  
agarud[/QUOTE]

then there’s your problem. You need to first mount /opt/abc, so that then you can mount /opt/abc/pqr.

Manual mount succeeds as you have /opt/abc mounted per fstab before running the manual mount.

Best regards,  
Jens

---

<div class="post-metadata">

**Author:** ![agarud](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@agarud](https://forums.suse.com/u/agarud)\
**Post date:** [February 3, 2015, 8:37pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/9 "2015-02-03T20:37:23Z")

</div>

Hi Jens,

Thanks, Willl try it. so there is no prob with the fstab entry for scsi devices. And also multipathd service is off in chkconfig.

Thanks  
agarud

---

<div class="post-metadata">

**Author:** ![agarud](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@agarud](https://forums.suse.com/u/agarud)\
**Post date:** [February 4, 2015, 1:12am UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/10 "2015-02-04T01:12:54Z")

</div>

Hi Jens ,

Just for confirmation,  
first the /opt/abc then scsi devices and /opt/abc/pqr in that order…

Thanks  
agarud

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [February 4, 2015, 5:34pm UTC](https://forums.suse.com/t/partition-unmounting-automatically-after-reboot/26636/11 "2015-02-04T17:34:03Z")

</div>

Hi agarud,

[QUOTE=agarud;26166]Hi Jens ,

Just for confirmation,  
first the /opt/abc then scsi devices and /opt/abc/pqr in that order…[/QUOTE]

sorry to be inprecise: In such an order that the top-level directories get mounted first, and further down those mounts that are beneath prior mounts.

In other words: You need to mount “/” (root) first. From there, you need to keep fstab in such an order that the mount point (the directory where you mount the individual device to) is already present. If you mount devices to /var and /var/tmp, you need to have the entry for /var first, and then the entry for /var/tmp. No matter what the device is (iSCSI, FC, disk, RAM, virtual,…).

Regards,  
Jens
