df
[cctvadmin@dhcppc7 ~]$ df
Filesystem Size Used Avail Use% Mounted on
rootfs 12G 3.3G 8.1G 29% /
devtmpfs 981M 0 981M 0% /dev
tmpfs 987M 357M 631M 37% /dev/shm
tmpfs 987M 4.1M 983M 1% /run
/dev/sda1 12G 3.3G 8.1G 29% /
tmpfs 987M 0 987M 0% /sys/fs/cgroup
/dev/sda3 915G 14G 901G 2% /home
[cctvadmin@dhcppc7 ~]$
freetibet wrote:[cctvadmin@dhcppc7 ~]$ df
Filesystem Size Used Avail Use% Mounted on
rootfs 12G 3.3G 8.1G 29% /
[cctvadmin@dhcppc7 ~]$
doktor5000 wrote:freetibet wrote:[cctvadmin@dhcppc7 ~]$ df
Filesystem Size Used Avail Use% Mounted on
rootfs 12G 3.3G 8.1G 29% /
[cctvadmin@dhcppc7 ~]$
Well, AFAIK stuff will get saved below /var somwhere (i don't know zoneminder, but that should be the place according to FHS, or maybe /srv or so) which resides on the /-partition in your case. You only have ~900GB available in /home, but that's not where stuff is saved if you didn't adjust the configuration. So ZoneMinder is just telling you the truth ...
freetibet wrote:I don't understand,
Why did it set it's self up like that ?
How can I change it ?
is the OS sitting on the wrong partition as well ?
freetibet wrote:next time i install Mageia I would like just one partition for OS and all system / user files… can I do that ?
It's not that simple Barry.barjac wrote:The second solution involves shrinking your /home folder which is not without risk so a backup is in order.
This can also be done from mcc -> local disks ->manage disk partitions. After shrinking /home, create a new partition in the free space and set it's mount point to /var (as in 1.)
Ken-Bergen wrote:It's not that simple Barry.barjac wrote:The second solution involves shrinking your /home folder which is not without risk so a backup is in order.
This can also be done from mcc -> local disks ->manage disk partitions. After shrinking /home, create a new partition in the free space and set it's mount point to /var (as in 1.)
You can't shrink a partition while it's mounted and you can't unmount a partition that is in use as /home is with any user other than root logged in.
The shrinking of /home could be done with a Live CD but the creation of the new /var must be done in the running system for the automatic moving of data.
doktor5000 wrote:freetibet wrote:next time i install Mageia I would like just one partition for OS and all system / user files… can I do that ?
Yep, surely. But i'd only do that if you don't need much space for normal users (i.e. in /home).
Normally if you run a server you should give a thought or two about partitioning, as you should know what is
stored where and where you need how much space.
For a common desktop installation it's best to keep / and /home separated like with your current installation ...
barjac wrote:Ken-Bergen wrote:It's not that simple Barry.barjac wrote:The second solution involves shrinking your /home folder which is not without risk so a backup is in order.
This can also be done from mcc -> local disks ->manage disk partitions. After shrinking /home, create a new partition in the free space and set it's mount point to /var (as in 1.)
You can't shrink a partition while it's mounted and you can't unmount a partition that is in use as /home is with any user other than root logged in.
The shrinking of /home could be done with a Live CD but the creation of the new /var must be done in the running system for the automatic moving of data.
Yes sorry you are correct - getting late here
There is third option. He could move /var/www/html/zm to /home/$USER/zm and symlink it - I never tried it but I don't see a problem.
EDIT Just tested it quickly and this works fine here on my test set-up. You will also need to :-
cd
su
chown -R apache:apache zm
Here's what happens without a filter set BTW.
Every picture tells a story
however my issue arises because by default it seems Mageia has plonked zone minder on to a tiny disk
I don't know what to do now….
Probably have to go up again…with a new installation on a disk with just one partition ...
cd
su
systemctl stop zoneminder.service
mv -T /var/www/html/zm zm
ln -sf /home/$USER/zm /var/www/html/zm
systemctl start zoneminder.service
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.9G 2.6G 1.2G 71% /
/dev/sda6 179G 125G 45G 74% /var
freetibet wrote:doktor5000 wrote:freetibet wrote:next time i install Mageia I would like just one partition for OS and all system / user files… can I do that ?
Yep, surely. But i'd only do that if you don't need much space for normal users (i.e. in /home).
[...]
I don't understand.
Why can't /home be on the same partition it seems odd, I don't seem to have encountered this issue before…
barjac wrote:systemctl stop zoneminder.service
mv -T /var/www/html/zm zm
ln -sf /home/$USER/zm /var/www/html/zm
systemctl start zoneminder.service[/code]
The above comes with the usual disclaimers, however it works for me.
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
88.96.6.132
Apache/2.2.22 (Mageia/ITK-12.mga2)
cd
su
systemctl stop zoneminder.service
mv -T /var/www/html/zm zm
ln -sf /home/$USER/zm /var/www/html/zm
systemctl start zoneminder.service
root@localhost cctvadmin]# ls
Desktop/ Documents/ Downloads/ Music/ Pictures/ Templates/ tmp/ Videos/ zm@
[root@localhost cctvadmin]# ls
Desktop/ Documents/ Downloads/ Music/ Pictures/ Templates/ tmp/ Videos/ zm@
[root@localhost cctvadmin]# cd zm
bash: cd: zm: Too many levels of symbolic links
ls -l /home/$USER/
ls -l /var/www/html/
[root@localhost cctvadmin]# ls -l /home/$USER/
total 32
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Desktop/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Documents/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Downloads/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Music/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Pictures/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Templates/
drwx------ 2 cctvadmin cctvadmin 4096 Jan 11 2011 tmp/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Videos/
lrwxrwxrwx 1 root root 18 Jun 15 00:01 zm -> /home/cctvadmin/zm
[root@localhost cctvadmin]# ls -l /var/www/html/
total 4
-rw-r--r-- 1 root root 131 May 2 22:31 index.html
lrwxrwxrwx 1 root root 18 Jun 15 00:28 zm -> /home/cctvadmin/zm
[root@localhost cctvadmin]#
[cctvadmin@localhost ~]$ ls -l /home/$USER/
total 32
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Desktop/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Documents/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Downloads/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Music/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Pictures/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Templates/
drwx------ 2 cctvadmin cctvadmin 4096 Jan 11 2011 tmp/
drwxr-xr-x 2 cctvadmin cctvadmin 4096 Jun 10 13:55 Videos/
[cctvadmin@localhost ~]$ ls -l /var/www/html/
total 4
-rw-r--r-- 1 root root 131 May 2 22:31 index.html
lrwxrwxrwx 1 root root 18 Jun 15 11:14 zm -> /home/cctvadmin/zm
[cctvadmin@localhost ~]$
Users browsing this forum: No registered users and 1 guest