Mount tmpfs [solved]
added in /etc/fstab:
none /tmp tmpfs nodev,nosuid,noexec,nodiratime,size=128M 0 0
then
# mount -a
and
$ mount | grep /tmp
none on /tmp type tmpfs (rw,noexec,nosuid,nodev,nodiratime,size=128M)
but i'm not sure, how i can test it? if think it doesn't work.
i just open mp3 file in firefox to download, - it saved in /tmp, but no see changes in memory ($ htop, $ free)
edit:
oh, sorry. i just downloaded file bigger than 128mb, and firefox give error.
it works.
Last edited by Pooh-Bah (2011-07-29 12:14:32)
Have you tried mount -o remount /tmp ?
Similar Messages
-
USB Auto-mounting Woes [SOLVED]
Hi,
I've been trying to get my USB sticks to auto-mount and grant all users permission to mount/unmount them.
To achieve that I initially added the following to my sudoers using visudo:
%wheel ALL=NOPASSWD: /bin/mount
%wheel ALL=NOPASSWD: /bin/umount
That however didn't solve my inability to (un)mount drives in PCMan FM.. so I headed towards the wiki. The wiki stated the following:
You can easily automount and eject removable devices with the combination of pmount, udisks2 and spacefm. Note you have to run spacefm in daemon mode with spacefm -d & in your startup scripts, ~/.xinitrc or ~/.xsession, to get automounting.
I wasn't too fussed about having to use spacefm and everything seemed to work just fine.. until I tried format a USB stick using gparted. Gparted fails because because seemingly half way through the formatting procedure the drive is mounted (my suspicion is that it's spacefm).
mkdosfs: /dev/sdb1 contains a mounted file system.
If i unmount and format manually using the CLI it works just fine.. but I quite like gparted
I tried removing
spacefm -d
from my .xinitrc and that actually stops openbox from starting up. Uninstalling (and later re-installing when it didn't help) pmount didn't help either, spacefm just auto-mounts in a strange 'run' way..
So now I'm stuck, anyone experienced similar issues with gparted and spacefm?
Last edited by omgitsaheadcrab (2012-06-22 13:27:07)ck-list-sessions shows an active consokekit session, so that should be fine?
Session1:
unix-user = '1000'
seat = 'Seat1'
session-type = 'x11'
active = TRUE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-06-22T12:24:47.734505Z'
login-session-id = '3'
The gparted error log is as follows:
GParted 0.12.1
Libparted 3.1
Delete /dev/sdb1 (fat32, 7.37 GiB) from /dev/sdb 00:00:01 ( SUCCESS )
calibrate /dev/sdb1 00:00:00 ( SUCCESS )
path: /dev/sdb1
start: 2048
end: 15466495
size: 15464448 (7.37 GiB)
delete partition 00:00:01 ( SUCCESS )
========================================
Create Primary Partition #1 (fat32, 7.37 GiB) on /dev/sdb 00:00:01 ( ERROR )
create empty partition 00:00:00 ( SUCCESS )
path: /dev/sdb1
start: 2048
end: 15466495
size: 15464448 (7.37 GiB)
set partition type on /dev/sdb1 00:00:01 ( SUCCESS )
new partition type: fat32
create new fat32 file system 00:00:00 ( ERROR )
mkdosfs -F32 -v -n "PATRIOT" /dev/sdb1
mkdosfs 3.0.12 (29 Oct 2011)
mkdosfs: /dev/sdb1 contains a mounted file system.
========================================
I still can't help but feel it's spacefm doing something funny (automounting when it shouldn't)
Last edited by omgitsaheadcrab (2012-06-22 12:31:36) -
Vfat partition mount issue [Solved]
I have two fat32 partitions (/dev/sda5 and /dev/sda6) that I cannot seem to mount automatically on bootup
The error given is "mount point does not exist"
However the directories that they mount into do exist - running "mount /dev/sda5" works fine once I am logged in
This mounts them into the correct folders
my fstab is:
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
#UUID=4708-CDB1 /mnt/documents vfat defaults 0 0
#UUID=486B-CDCA /mnt/media vfat defaults 0 0
/dev/sda5 /home/media vfat user,rw,umask=000 0 0
/dev/sda6 /home/documents vfat user,rw,umask=000 0 0
/dev/sda11 /usr ext4 defaults 0 1
UUID=6adfcc0e-6b08-49aa-9e75-234f45695ca3 /home ext4 defaults 0 1
UUID=6e604f97-451c-45ed-b761-75242e4df880 swap swap defaults 0 0
UUID=b76b2dfe-a561-4e15-8209-cc3e56b2087e / ext4 defaults 0 1
The three file system checks happen ok, but then the errors appear about the non-existant mount points
As you can see from my fstab I have tried mounting them into /mnt/documents etc as well, which also returns the errors
I would be prefer a nice clean fix but would be happy with a script that ran on login etc to run "mount /dev/sda5" but dont know how to do that or where to put it
Thanks
Richard
Last edited by rgeo (2009-03-23 15:51:17)rgeo,
probably /home is not yet mounted when the system trys to mount /dev/sda5.
I suppose that mounting order in /etc/fstab matters, even though I am not sure.
That would not explain why mounting in /mnt failed, if the directory documents existed.
You can always put the line 'mount /dev/sda5' on /etc/rc.local that gets executed before login.
Mektub -
Strange USB mount error: Solved
when I plug in my SD card reader I get the following message.
It works as root and the last time I tried it worked as user.
Using KDE and testing.
solved by adding my user to the storage group
A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
I did a more careful forum search.
:oops:ataraxia wrote:
You have no swap configured? Konqueror and Firefox are both huge memory hogs. You could easily use all your memory doing ordinary things (especially if you use KDE or other large things).
Configure some swap. If you have no free partitions, but a little free space, you can swap to a file: http://www.netadmintools.com/art1.html I suggest at least 1 GB of swap.
a was forgoten activate the swap .
1 0x00 1 1 0 0x83 254 63 1023 63 20000862
2 0x00 254 63 1023 0x83 254 63 1023 20000925 80003700
3 0x00 254 63 1023 0x82 254 63 1023 100004625 996030 << that is the swap
4 0x00 254 63 1023 0x83 254 63 1023 101000655 524136690
thankz
PD: sorry for my english -
Confusion over removable drive mounts? [Solved]
I've installed Arch with the XFCE DE and i'm more then pleased with it! :-D
However, i'm baffled by where my mounts are located? I have nothing in /mnt/ or /media/, which is where i would usually start looking for my removable drives.
I followed the 'beginners guide' to the letter, i'm assuming things have changed somewhat.
#!/bin/bash
# /etc/rc.local: Local multi-user startup script.
# create optical drive symlinks
ln -s /dev/sr0 /dev/cdrom
ln -s /dev/sr0 /dev/cdrw
ln -s /dev/sr0 /dev/dvd
ln -s /dev/sr0 /dev/dvdrw
This is the section that is new to me, i'm just trying to find out where i can navigate to in the CLI to my removable media?
I have managed to get XFCE to mount everything after following the XFCE wiki.
Last edited by ashlee84 (2011-09-19 17:15:39)Arch specific cd symlinks are now no longer created.
On 2011-05-19 udev 169-1 removed cdsymlinks.sh (among other things)
http://projects.archlinux.org/svntogit/ … 60ccd3d56e
You need to mount your optical discs somewhere (unless they're AudioCds or blank discs) so you go to the mounpoint of your choice. The symlinks allow you to use other device names, not just /dev/sr0, e.g. both
mount -o ro /dev/sr0 /media/cd
mount -o ro /dev/cdrom /media/cd
should work. Now just
cd /media/cd/
Last edited by karol (2011-09-19 16:57:48) -
Mount Fat16 [solved]
What is the command for mounting Fat16 system???
Caurse I have to specify the fs, but nothing seems to accept it?
Mount -t msdos /dev/??????dosfstools is the name of the package, so just install it. Then just retry mounting the disk/partition.
-
Quick mounting issue {solved}
I'm trying to repair my system (pacman updated libreadline without bash and I didn't think to stop it) all the forum posts say to mount to /mnt and then use the live CD to get your network and mirror list up, but I can't mount my /var partition and pacman keep breaking and claiming that it can't fint mnt/var when I try to update. I formatted according to the beginners guide so my /var is ReiserFS format and the /home and /root are both ext3. /home and / both mount happily on /mnt but /var refuses to mount and the command mount gives me "unknown filesystem type "ReiserFS"". I've tried various abbreviations but I couldn't get it to mount and my quick search didn't turn up a post about how to mount ReiserFS format, mostly threads about which filesystem to choose. I assume I just need to use the right parameters to get mount to recognize the partition.
so... anyone know the parameter for ReiserFS?
Last edited by blackfedora (2009-08-14 19:00:08)Thanks for replying, next time i break the system I'll give that a try. I decided to just to a fresh install preserving /home. About half way through installation I realized the problem was probably that i had been capitalizing ReiserFS. Sure enough, when I finished getting everything set up I checked and mounting worked when I used reiserfs as the filesystem type parameter.
-
Bootchart2-git: bootchart-renderer fails to mount /lib/bootchart/tmpfs
I recently bought a new laptop and made a fresh Arch installation. After a few initial annoyances I got everything working more or less as intended, except bootchart. Since the wiki said "Note: An alternative to Bootchart is bootchart2, which at least has more recent activity than 2005. It can be found on the AUR as bootchart2-git. It uses python for generating the final chart instead of a JVM. ", I used the git version from AUR, if that matters.
[r-a@vinter ~]$ /sbin/bootchartd start; sleep 1; /sbin/bootchartd stop
10834 109
bootchart-collector tmpfs mount to /lib/bootchart/tmpfs failed
Can't extract boot chart from collector
[r-a@vinter ~]$
A peek at the source code(collector/collector.c:625-630):
if (mount ("none", TMPFS_PATH, "tmpfs", MS_NOEXEC|MS_NOSUID, NULL) < 0) {
if (errno != EBUSY) {
fprintf (stderr, "bootchart-collector tmpfs mount to " TMPFS_PATH " failed\n");
return 1;
strace output:
15146 mount("none", "/lib/bootchart/tmpfs", "tmpfs", MS_NOSUID|MS_NOEXEC, NULL) = -1 EPERM (Operation not permitted)
man 2 mount says this:
EPERM The caller does not have the required privileges.
I haven't tried changing the default path to mount to for example something like /tmp/, perhaps it'd solve the privilege issue... What bugs me is that the default config indeed uses /lib/bootchart/ as it's base path... So I can only assume that it somehow should have permission to mount tmpfs to that directory? Whatever, I am a bit clueless here. What next?Setting the SUID bit of bootchart-collector with chmod +s didn't do the trick; though I am not entirely sure if it was because of failed mount - I can't check it right now.
...anyone...? -
[SOLVED] HOWTO disable tmpfs on /tmp?
I want to disable tmpfs on /tmp, so I commented-out the relevant line in fstab. Nevertheless something mounted tmpfs on /tmp (systemd?). How to find that something?
Last edited by BenoitSvB (2012-09-06 10:06:15)qbittorrent is actually really good except for this one bug. The alternatives (deluge, rtorrent) suck more.
BTW: Solved the problem like this:
$ cat /etc/tmpfiles.d/tmp.conf
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# See tmpfiles.d(5) for details
# Clear tmp directories separately, to make them easier to override
D /tmp 1777 root root 0
D /var/tmp 1777 root root 10d
# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-*
x /var/tmp/systemd-private-*
X /tmp/systemd-private-*/tmp
X /var/tmp/systemd-private-*/tmp
Thanks, WonderWoofy
Last edited by akurei (2013-12-02 14:43:26) -
Hello all, glad to be back with archlinux again :)
A few errors I encountered though that I would like some help with:
I have this script here:
$ ls /etc/cron.hourly/
totalt 4,0K
-rw-r--r-- 1 root root 34 2 dec 03.44 pacman.hourly.sh
$ cat /etc/cron.hourly/pacman.hourly.sh
#!/bin/bash
pacman -Sy
return 0;
Cron can't run it, errors from the log:
30-Dec-2007 00:02 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.daily
30-Dec-2007 00:02 FILE /var/spool/cron/root USER root pid 23281 cmd /usr/sbin/run-cron /etc/cron.daily
30-Dec-2007 00:22 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.weekly
30-Dec-2007 00:22 FILE /var/spool/cron/root USER root pid 10195 cmd /usr/sbin/run-cron /etc/cron.weekly
30-Dec-2007 01:01 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 01:01 FILE /var/spool/cron/root USER root pid 15952 cmd /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 02:01 initgroups failed: root Operation not permittedChangeUser failed (root): /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 02:01 FILE /var/spool/cron/root USER root pid 9428 cmd /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 02:54 /usr/sbin/crond V3.2 dillon, started
30-Dec-2007 03:01 FILE /var/spool/cron/root USER root pid 11302 cmd /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 04:01 FILE /var/spool/cron/root USER root pid 7751 cmd /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 05:01 FILE /var/spool/cron/root USER root pid 16539 cmd /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 06:01 FILE /var/spool/cron/root USER root pid 7280 cmd /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 07:01 FILE /var/spool/cron/root USER root pid 26785 cmd /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 08:01 FILE /var/spool/cron/root USER root pid 18862 cmd /usr/sbin/run-cron /etc/cron.hourly
30-Dec-2007 09:01 FILE /var/spool/cron/root USER root pid 6531 cmd /usr/sbin/run-cron /etc/cron.hourly
hm, apparently it's working now? Strange.
ok, problem number 2.
I like to mount my smb shares from fstab.
//Goamania.se/Muzax /mnt/Muzax smbfs credentials=/home/willie/.smbpassword,uid=1000,gid=1000,noauto 0 0
/home/willie/.smbpassword
$ ls /home/willie/.smbpassword
-rw------- 1 root root 30 26 dec 04.06 /home/willie/.smbpassword
$ sudo cat /home/willie/.smbpassword
user=someuser
password=somepass
If I sudo mount as a user I get the following error:
$ sudo mount /mnt/Muzax
1601: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
But no problem mounting as root, or unmounting as user with sudo.
/etc/sudoers:
$ sudo cat /etc/sudoers
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) SETENV: ALL
willie ALL=(ALL) SETENV: ALL
# Uncomment to allow people in group wheel to run all commands
# and set environment variables.
# %wheel ALL=(ALL) SETENV: ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Oh, and a last question:
Is there someone who knows if there is a way to get mpd to play alac (apple lossless) files? Faad2 doesn't seem to support alac. :/
Last edited by WiLLiE (2008-01-03 23:21:04)byte wrote:/usr/sbin/run-cron expects executable (+x) files in /etc/cron.*
Yeah, I missed that when posting the question. Seems to work now.
Still have the sudo + mounting problem though. (I'm forced to su to root to mount)
Edit:
Solved. Me being stupid, had user= in my credentials file (but it is the same credentials file i've used like a year on other dists)
Last edited by WiLLiE (2008-01-03 23:19:51) -
[SOLVED]systemd-tmpfiles-setup.service failure
Hi guys,
I just reinstalled arch with the following partitions:
[root@arch_vinnom vinnom]# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.0
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 625142448 sectors, 298.1 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): BD3CA679-FA08-4F60-9BAD-B845DE9FF7EB
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 625142414
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 BIOS
2 4096 52432895 25.0 GiB 8300 ROOT
3 52432896 53481471 512.0 MiB 8300 BOOT
4 53481472 74452991 10.0 GiB 8300 TMP
5 74452992 95424511 10.0 GiB 8300 VAR
6 95424512 602935295 242.0 GiB 8300 HOME
7 602935296 625142414 10.6 GiB 8200 SWAP
The problem is that tmpfs is mounted at '/tmp' through '/usr/lib/systemd/system/tmp.mount'
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Temporary Directory
Documentation=man:hier(7)
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
ConditionPathIsSymbolicLink=!/tmp
DefaultDependencies=no
Conflicts=umount.target
Before=local-fs.target umount.target
[Mount]
What=tmpfs
Where=/tmp
Type=tmpfs
Options=mode=1777,strictatime
Because of this, I'm always getting:
● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Dom 2015-05-03 03:29:58 BRT; 27min ago
Docs: man:tmpfiles.d(5)
man:systemd-tmpfiles(8)
Process: 278 ExecStart=/usr/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE)
Main PID: 278 (code=exited, status=1/FAILURE)
Then I tried to change '/tmp' to '/run/tmpfs', folder that I created for this, using tmpfs wiki as reference.
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Temporary Directory
Documentation=man:hier(7)
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
ConditionPathIsSymbolicLink=!/run/tmpfs
DefaultDependencies=no
Conflicts=umount.target
Before=local-fs.target umount.target
[Mount]
What=tmpfs
Where=/run/tmpfs
Type=tmpfs
Options=mode=1777,strictatime,nodev,nosuid,size=1536M
But the error persists. What I'm missing?
Last edited by vinnom (2015-05-03 16:51:38)ooo wrote:Couldn't you just mask the tmp.mount service? (as mentioned in the wiki page you linked)
Then your /tmp partition would be mounted according to your fstab
Raynman wrote:
The tmp.mount generated from your fstab should override the tmp.mount in /usr/lib/systemd/system. You say
The problem is that tmpfs is mounted at '/tmp' through '/usr/lib/systemd/system/tmp.mount'
If that is true (could you show output of mount and your fstab?) that is worth investigating.
However, your original problem seems to be that systemd-tmpfiles-setup.service fails. If something is wrong with your mounts, that could be related, but it might very well be something else. Is there any more information in the journal to indicate why the service fails (maybe even mentioning a tmpfiles.d config file that is responsible)? Did you create any config files for tmpfiles.d yourself?
Sorry guys, I tried to be concise, but ended up that I didn't make myself clear.
My '/tmp' is mounting fine as it takes priority over systemd. In fact, what I wanted to say is that '/tmp' mounts fine, systemd tried to mount tmpfs at '/tmp' and fails and I want to point tmpfs to mount at '/run/tmpfs' which I created for this, but just editing '/usr/lib/systemd/system/tmp.mount' didn't solve.
As for journalctl, it repeats several times this message:
Mai 02 22:43:32 arch_vinnom systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
Mai 02 22:43:32 arch_vinnom systemd[1]: Failed to start Create Volatile Files and Directories.
Mai 02 22:43:32 arch_vinnom systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.
Mai 02 22:43:32 arch_vinnom systemd[1]: systemd-tmpfiles-setup.service failed.
foutrelis wrote:
Depending on how your '/var' file system is created/mounted, you might need to enable ACL on it:
https://wiki.archlinux.org/index.php/Sy … rt_at_boot
hmm
I created my /var during arch installation, with mkfs.reiserfs.
Using
tune2fs -l /dev/sdXY | grep "Default mount options:"
To check if acl was already enabled, I got:
[root@arch_vinnom vinnom]# tune2fs -l /dev/sda5 | grep "Default mount options:"
tune2fs: Bad magic number in super-block while trying to open /dev/sda5
Couldn't find valid filesystem superblock.
Then I searched a bit and noted that reiserfs isn't compatible with acl =/
Last edited by vinnom (2015-05-03 15:12:18) -
Mount.cifs(8) on Solaris 10 8/07?
I have Solaris 10 8/07 installed on my workstation, and would like to mount a directory shared from my Windows machine. "apropos cifs" shows mount.cifs(8), and there is a man page, but the binary is no-where to be found. "find / -name \*cifs\*" did not return anything useful, and mount(1M) does not seem to accept "-F cifs". A quick search on Sunsolve does not turn up much.
Any ideas?
Thanks,
-AndrewYea, the one over on Opensolaris probably isn't a suitable replacement.
http://docs.sun.com/app/docs/doc/816-5166/6mbb1kps6?a=expand
only lists the following:
# mount_hsfs(1M) � mount hsfs file systems
# mount_nfs(1M) � mount remote NFS resources
# mount_pcfs(1M) � mount pcfs file systems
# mount_tmpfs(1M) � mount tmpfs file systems
# mount_udfs(1M) � mount a udfs file system
# mount_ufs(1M) � mount ufs file systems
You might try recompiling Samba yourself from source and see it that fixes the issue.
alan -
Libvirt cgroup issues [SOLVED]
I installed a fresh Arch a few days ago and I'm getting strange errors when trying to start some VMs. Here's the error for one of the VMs:
Error starting domain: Unable to create cgroup for debian6-test: No such file or directory
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 117, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1090, in startup
self._backend.create()
File "/usr/lib/python2.7/site-packages/libvirt.py", line 678, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: Unable to create cgroup for debian6-test: No such file or directory
cgroups are working:
# fgrep cgroup /proc/mounts
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua 0 0
And the libvirt node exists:
# ls -l /sys/fs/cgroup/libvirt/
total 0
drwxr-xr-x 2 root root 40 Oct 3 12:14 qemu
These VMs were previously defined and working on another Arch install on another hard drive, as recently as 2 weeks ago. Maybe libvirt is broken...?
Edit: I fixed this by reinstalling libvirt. I'm not sure what was wrong with my libvirt before, because it was persisting across reboots. Anyways, it's fixed now.
Edit 2: Actually, it seems that this still comes back from time to time, even when one VM is already running. To fix it I have to restart libvirtd (ie, systemctl restart libvirtd).
Last edited by stickyboy (2012-10-16 06:51:40)I installed a fresh Arch a few days ago and I'm getting strange errors when trying to start some VMs. Here's the error for one of the VMs:
Error starting domain: Unable to create cgroup for debian6-test: No such file or directory
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 117, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1090, in startup
self._backend.create()
File "/usr/lib/python2.7/site-packages/libvirt.py", line 678, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: Unable to create cgroup for debian6-test: No such file or directory
cgroups are working:
# fgrep cgroup /proc/mounts
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio,release_agent=/usr/lib/ulatencyd/ulatencyd_cleanup.lua 0 0
And the libvirt node exists:
# ls -l /sys/fs/cgroup/libvirt/
total 0
drwxr-xr-x 2 root root 40 Oct 3 12:14 qemu
These VMs were previously defined and working on another Arch install on another hard drive, as recently as 2 weeks ago. Maybe libvirt is broken...?
Edit: I fixed this by reinstalling libvirt. I'm not sure what was wrong with my libvirt before, because it was persisting across reboots. Anyways, it's fixed now.
Edit 2: Actually, it seems that this still comes back from time to time, even when one VM is already running. To fix it I have to restart libvirtd (ie, systemctl restart libvirtd).
Last edited by stickyboy (2012-10-16 06:51:40) -
[SOLVED, kinda] Extremely weird ntfs issue
Here's the problem: I have an NTFS partition where I keep some video files. Browsing that partition in Windows, I can see and access all the files. When I mount it in Linux, however, most files are missing.
Any ideas?
Last edited by dcc24 (2010-07-25 18:40:54)Umm... I think I solved this, kinda.
First I tried to unmount the disk, but it failed with:
~ sudo umount /dev/sda1
umount: /dev/sda1: device is busy
So, I tried to find what is keeping it busy:
fuser -m /dev/sda1
And it said "/bin/bash" was responsible! Weird, but I closed all my terminals, started urxvt and now I could umount!
At this point mounting manually solved all my problems. I can access the disk with its full content. -
Hey,
I'm running arch on a tiny homeserver with an USB pen drive as root.
Since the write cycles are limited I would like to reduce the load on the pen drive as much as possible.
Since /var is a commonly used part of the filesystem I would like to put it in to ram.
My thougts are, that I could add another init script which handles this:
On boot it creates a tmpfs e.g. to /var_tmp, copies all stuff from /var to /var_tmp, and moves the tmpfs mount point from /var_tmp to /var.
On shutdown it should do this steps in reverse order, so that no stuff gets lost.
What do you think? How could I realise that?
Thanks,
Oligenisis300 wrote:
do it the other way round.
copy the contents of /var to /var_tmp
mount tmpfs to /var
copy back the contents.
Or see the link above.
what is the benefit?
i actually do it this way:
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Creating /var tmpfs"
rm -rf /tmp/var
mkdir /tmp/var
mount -t tmpfs tmpfs /tmp/var -o size=500M,noatime
cp -rp /var/* /tmp/var
mount --move /tmp/var /var
rm -rf /tmp/var
add_daemon vartmpfs
stat_done
stop)
stat_busy "Syncing /var back"
rm -rf /tmp/var
mkdir /tmp/var
mount --move /var /tmp/var
rsync -a /tmp/var/* /var/
umount /tmp/var
rm -rf /tmp/var
rm_daemon vartmpfs
stat_done
restart)
$0 stop
$0 start
echo "usage: $0 {start|stop|restart}"
esac
exit 0
what do you think?
Maybe you are looking for
-
Hello, My requirement is that when I run the Report through button or menu it will be email to the user with PDF format. But problem is that when I run a file for mail, eps extention file is mailed to the user.I want the PDF file extention is mailed.
-
Running Win 7; FF DL process stops at DL of "stub". Help.
When I try to download and install FF on my Windows 7 machine, the process stops after [apparently] successful download of Setup Stub 29.0.1. I have tried repeatedly to do this, always with the same results. To proceed would be, by definition, insani
-
Chinese font issue with Oracle 6i
Hello all, I am working on a Chinese report. when i open an existing RDF in Report Builder 6.0.8.24.0 and save it with out modification the lables in chinese (labels) characters are corrupted i.e I only see inverted question marks for the labels whe
-
FAQ: What cameras are supported in ACR 7.0 with Photoshop CS6?
See this link for full details on camera support in Camera Raw versions: http://blogs.adobe.com/lightroomjournal/2012/03/raw-support-in-lightroom-and-camera-raw.ht ml Snip taken from link above: You'll also note that ACR7, available with Photoshop CS
-
Hide classes while using jar tool.
I have a set of API classes which I need to ship using jar. But even if I use jar utility to archive the classes, one can easily extract and decompile the classes. Is there any way this can be avoided? Regards