Re: How do I mount under /run from /etc/fstab in 7.0/wheezy?

2014-05-05 Thread filip
On Mon, 5 May 2014 12:58:34 -0600
Jacob Anawalt  wrote:

>> Is it a bug that fstab mounts under /run fail? Is there a hook in some
> other config to make them work? Is it always a bad idea to mount under
> /run?
> 
> I would like to understand that. Then I will have more options when I
> pop the stack and return to Y and my learning won't be sidetracked
> with a case based only on Y.
> 
> Thank you,

/run is a ram based filesystem, so there is no persistence of data
after a reboot.

When you mount something from fstab, the mount point directory must
already exist.

Unless something earlier in the bootprocess executed an mkdir to create
the mountpoint, it will not exist and your mount will fail.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140505221227.1d7e9...@orac.fil



Re: How do I mount under /run from /etc/fstab in 7.0/wheezy?

2014-05-05 Thread Andrei POPESCU
On Lu, 05 mai 14, 12:58:34, Jacob Anawalt wrote:
> On Sat, May 3, 2014 at 3:53 AM, Andrei POPESCU  
> wrote:
> >
> > What are you actually trying to achieve? This feels a lot like the XY
> > problem.
> 
> At the moment I am trying to understand how mounts under /run are
> suppose to work on a Debian 7.0 system using tempfs for /run.
 
What kind of mounts, for what purpose?

> Is it a bug that fstab mounts under /run fail? Is there a hook in some
> other config to make them work? Is it always a bad idea to mount under
> /run?

It probably depends for what you use them. I notice that on my sid 
machine I have /run/lock and /run/user as separate tmpfs mounts under 
/run (also a tmpfs), so it's definitely possible/allowed.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: How do I mount under /run from /etc/fstab in 7.0/wheezy?

2014-05-05 Thread Jacob Anawalt
On Sat, May 3, 2014 at 3:53 AM, Andrei POPESCU  wrote:
> On Vi, 02 mai 14, 12:33:12, Jacob Anawalt wrote:
>> What is the best way to get my fstab mounts under /run to
>> automatically mount on boot again?
>
> What are you actually trying to achieve? This feels a lot like the XY
> problem.

At the moment I am trying to understand how mounts under /run are
suppose to work on a Debian 7.0 system using tempfs for /run.

Is it a bug that fstab mounts under /run fail? Is there a hook in some
other config to make them work? Is it always a bad idea to mount under
/run?

I would like to understand that. Then I will have more options when I
pop the stack and return to Y and my learning won't be sidetracked
with a case based only on Y.

Thank you,
-- 
Jacob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/cae4rx+ovjaitdyvfikzecshhbpzmq17t1rpxnjox5hydkbb...@mail.gmail.com



Re: How do I mount under /run from /etc/fstab in 7.0/wheezy?

2014-05-03 Thread Andrei POPESCU
[forgot to CC Jacob]

On Vi, 02 mai 14, 12:33:12, Jacob Anawalt wrote:
> Hi,
> 
> For some time now and at least through all of Debian 6.0/squeeze I
> have had some mount points under what use to be /var/run.
> 
> After upgrading to Debian 7.0/wheezy these mounts broke. I have come
> to conclude that this is due to a combination of the run directory
> release goal for 7.0 [0] and my use of boot-time mounting under the
> /run directory via /etc/fstab entries.
> 
> I believe the failure is due to mountall.sh mounting fstab entries
> before creating the /run tempfs but it has been a little tricky to
> track down because mounts like /run are handled in code and not
> specified in fstab [1].
> 
> What is the best way to get my fstab mounts under /run to
> automatically mount on boot again?

What are you actually trying to achieve? This feels a lot like the XY 
problem.
http://www.perlmonks.org/?node_id=542341

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature


Re: How do I mount under /run from /etc/fstab in 7.0/wheezy?

2014-05-03 Thread Andrei POPESCU
On Vi, 02 mai 14, 12:33:12, Jacob Anawalt wrote:
> Hi,
> 
> For some time now and at least through all of Debian 6.0/squeeze I
> have had some mount points under what use to be /var/run.
> 
> After upgrading to Debian 7.0/wheezy these mounts broke. I have come
> to conclude that this is due to a combination of the run directory
> release goal for 7.0 [0] and my use of boot-time mounting under the
> /run directory via /etc/fstab entries.
> 
> I believe the failure is due to mountall.sh mounting fstab entries
> before creating the /run tempfs but it has been a little tricky to
> track down because mounts like /run are handled in code and not
> specified in fstab [1].
> 
> What is the best way to get my fstab mounts under /run to
> automatically mount on boot again?

What are you actually trying to achieve? This feels a lot like the XY 
problem.
http://www.perlmonks.org/?node_id=542341

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt


signature.asc
Description: Digital signature