Mailinglist Archive: opensuse (1239 mails)

< Previous Next >
Re: [opensuse] How should one make /media a tmpfs under 12.3?
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Thu, 27 Jun 2013 21:14:15 +0200 (CEST)
  • Message-id: <alpine.LNX.2.00.1306272049390.24850@Telcontar.valinor>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Thursday, 2013-06-27 at 21:32 +0400, Andrey Borzenkov wrote:

linux-o0ic:~ # df -h /media
Filesystem Size Used Avail Use% Mounted on
tmpfs 343M 0 343M 0% /media
linux-o0ic:~ # grep /media /etc/fstab
/media tmpfs defaults 0 0

eleanor3:~ # cat /etc/tmpfiles.d/media.conf
#CER, 2013-5-5
#Create /media directory.
#

d /media 0755 root root 10d
# d /media 0755 root root ~10d

eleanor3:~ #
eleanor3:~ # mount | grep media
eleanor3:~ # grep /media /etc/fstab
eleanor3:~ #


And

eleanor3:~ # rmdir /media
eleanor3:~ # l /media
ls: cannot access /media: No such file or directory
eleanor3:~ # reboot
Connection to 192.168.74.127 closed by remote host.
Connection to 192.168.74.127 closed.
cer@Telcontar:~>
cer@Telcontar:~> ssh root@192.168.74.127
Password:
Last login: Thu Jun 27 20:57:26 2013 from 192.168.74.1
Have a lot of fun...
eleanor3:~ # l /media
total 8
drwxr-xr-x 2 root root 4096 Jun 27 21:00 ./
drwxr-xr-x 25 root root 4096 Jun 27 21:00 ../
eleanor3:~ # df -h /media
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7,9G 1004M 6,5G 14% /
eleanor3:~ #



See? Something creates /media as a real directory. What?



- -- Cheers,
Carlos E. R.
(from 12.3 x86_64 "Dartmouth" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEARECAAYFAlHMjwcACgkQtTMYHG2NR9Uc+gCgmVjmHBCsXbHIxN0Am2WZbbb6
kRcAn1ZqqJ7Eht703ozZqA037PfboBNP
=rxS2
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >