LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-15-2002, 11:25 AM   #1
mpenny
LQ Newbie
 
Registered: Oct 2000
Distribution: Mandrake 8.1
Posts: 15

Rep: Reputation: 0
Question /var/log/snort


Hello,

This is probably a very simple question for someone to answer: (but I haven't got a clue, hence my posting here!)

Having partitioned my HD when installing Mandrake 8.1, I suddenly find that I've made some bad choices and there is very little space left in /var/log (450Mb to be precise.)

This box is to be used as an IDS and I would like if possible to grab some space from another partition (/home for example which is 2.5Gb) and use some of this as /var/log/snort. (Like a symlink to this space - is this correct?)

Sooo... can anyone tell me how to do this? I don't really want to repartition the HD unless absolutely necessary (too much work - it took me long enough to get Snort running properly!)

Thanks in advance for any responses!

Mark.
 
Old 01-15-2002, 02:56 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Yeah, I've done this with logs before... but not permanently. I guess it would work forever.

mv /var/log/snort /var/log/oldsnort (can't have two identically named things at once or snort may go kazoo)
ln -s /home/bob/snortlog /var/log/snort

That should work...

Cheers,

Finegan
 
Old 01-15-2002, 06:40 PM   #3
kervin
Member
 
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 31
If your data is backed up you can alternatively try ext2resize
http://ext2resize.sourceforge.net/
or gnu parted
http://www.gnu.org/software/parted/

There is also LVM at http://www.sistina.com/products_lvm.htm
 
Old 01-15-2002, 06:47 PM   #4
TacKat
Member
 
Registered: Jan 2002
Distribution: LFS
Posts: 90

Rep: Reputation: 15
Parted

I had to do something similar to this not too long ago (merging my LFS building partition with /usr). I'm fairly certain that it can relocate partitions without data loss but I don't know the exact procedure. Be sure to read all the docs and write down the partition info before doing anything.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
suspicious entry in /var/log/auth.log buehler Linux - Security 5 04-27-2005 05:11 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 01:21 PM
pppd logging to /var/log/ppp.log problem mrtwice Linux - Software 1 01-10-2004 05:38 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration