Mailinglist Archive: opensuse (1239 mails)

< Previous Next >
Re: [opensuse] How should one make /media a tmpfs under 12.3?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

В Thu, 27 Jun 2013 21:14:15 +0200 (CEST)
"Carlos E. R." <robin.listas@xxxxxxxxxxxxxx> пишет:

-----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

How is it related to mounting /media as tmpfs?

# d /media 0755 root root ~10d

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


And

eleanor3:~ # rmdir /media

Or this?

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.


Do you want to have it mounted as tmpfs or to remove it on every boot?

What?

I do not know. If you want to ask, how to get rid of /media completely,
please say so :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEARECAAYFAlHM9MoACgkQR6LMutpd94w0TwCeKyCdQEF6BPkTClsDz2aDYKHM
kZ8AoMy5w3gFO+idKYHaLZdn9Doxsvdf
=0V7i
-----END PGP SIGNATURE-----
N▀╖╡ФЛr╦⌡yИ ┼Z)z{.╠О╝·к⌡╠йБmЙ)z{.╠Й+│:╒{Zrшaz▄'z╥╕j)h╔ИЛ╨г╬ё ч╝┼^·к╛z┼Ю
< Previous Next >
Follow Ups