DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th May 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Thanked 5 Times in 4 Posts
Unhappy [ Solved ] Problem after migrating the /var and its contents to another partition

Hi to all

I have migrated the /var directory and their contents to another partition using 'tar cfp' and 'tar xfp'

I have created a mount point on the fstab and I changed the rights to 755 as well:

Code:
109:root@titan:/# ls -lad /var
drwxr-xr-x  24 root  wheel  512 May  9 01:35 /var
110:root@titan:/# grep /var /etc/fstab 
/dev/ad0s1d     /var            ufs     rw,noexec,nosuid        2       2

115:root@titan:/var# ls -l
total 44
drwxrwxr-x   2 root    operator  512 May  8 23:58 .snap
drwxr-xr-x   2 root    wheel     512 May  9 00:34 account
drwxr-xr-x   4 root    wheel     512 May  9 00:34 at
drwxr-x---   2 root    audit     512 May  9 00:34 audit
drwxr-x---   2 root    wheel     512 May  9 00:34 backups
drwxr-x---   2 root    wheel     512 May  9 00:34 crash
drwxr-x---   3 root    wheel     512 May  9 00:34 cron
drwxr-xr-x   9 root    wheel     512 May  8 21:41 db
dr-xr-xr-x   2 root    wheel     512 May  9 00:34 empty
drwxrwxr-x   2 root    games     512 May  9 00:34 games
drwx------   2 root    wheel     512 May  9 00:34 heimdal
drwxr-xr-x   4 root    wheel     512 May  8 22:37 log
drwxrwxr-x   2 root    mail      512 May  9 00:34 mail
drwxr-xr-x   2 daemon  wheel     512 May  8 21:35 msgs
drwxr-xr-x   2 root    wheel     512 May  9 00:34 named
drwxr-xr-x   2 root    wheel     512 May  9 00:34 preserve
drwxr-xr-x   7 root    wheel     512 May  8 22:56 run
drwxrwxr-x   2 root    daemon    512 May  9 00:34 rwho
drwxr-xr-x   9 root    wheel     512 May  8 21:35 spool
drwxrwxrwt   9 root    wheel     512 May  8 22:37 tmp
drwxr-xr-x  25 root    wheel     512 May  8 20:30 var
drwxr-xr-x   2 root    wheel     512 May  9 00:34 yp
During the next reboot, the below errors produced during startup:

Code:
May  8 22:36:28 titan console-kit-daemon[1190]: CRITICAL: cannot initialize libpolkit
May  8 22:36:28 titan console-kit-daemon[1190]: GLib-CRITICAL: g_async_queue_unref: assertion `queue->waiting_threads == 0' failed
This caused problem switching from the ttyv8 of the wdm to the other consoles ttyv1-7 and the wdm itself...

Any ideas?

Thanks

Last edited by harisman; 9th May 2008 at 05:01 PM.
Reply With Quote
  #2   (View Single Post)  
Old 8th May 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,198
Thanked 182 Times in 149 Posts
Default

Quote:
Originally Posted by harisman View Post
Code:
109:root@titan:/# ls -lad /var
drwxr-xr-x  24 root  wheel  512 May  9 01:35 /var
110:root@titan:/# grep /var /etc/fstab 
/dev/ad0s1d     /var            ufs     rw,noexec,nosuid        2       2
Not sure if this is the cause but you have execute permission on "/var", while the partition is mounted noexec
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 9th May 2008
harisman's Avatar
harisman harisman is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Hellas (Greece)
Posts: 66
Thanked 5 Times in 4 Posts
Default [ Solved ]

Finally I solved this . It had set some strict chflags on it...
Thank you
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP read file contents - Maximum file size cksraj Programming 1 21st September 2009 11:38 AM
Cannot activate partition in XP. bsdnewbie999 OpenBSD Installation and Upgrading 6 4th May 2009 05:21 PM
swap partition lumiwa FreeBSD General 6 11th September 2008 03:57 PM
Mounting a FreeBSD UFS partition roddierod Solaris 1 7th August 2008 02:02 PM
/etc on a separate partition DarkEnergy FreeBSD Installation and Upgrading 13 20th May 2008 04:24 AM


All times are GMT. The time now is 05:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick