Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-09-2007, 12:26 AM   #1
Registered: May 2004
Distribution: Slackware Current
Posts: 161

Rep: Reputation: 30
Regenerate Slack12 var directory

During my Gparted fiasco (see separate thread), I hosed my /var. I've built it enough by hand to get by; however, I'd like to have Slack12 "regenerate" it. Is this possible? I've review the FHS and have manually created enough folders/etc to be running.

Old 07-09-2007, 03:22 AM   #2
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,312

Rep: Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829
You can recover most of it by reinstalling the entire package tree. That will restore your /var/log/packages directory correctly, which is required to do future package upgrades. Any custom packages you had installed will also need to be reinstalled.
Old 07-09-2007, 07:05 AM   #3
Registered: May 2004
Distribution: Slackware Current
Posts: 161

Original Poster
Rep: Reputation: 30
Thanks. That's what I ended up doing. I formatted the swap, /var, /usr and /tmp partitions during an "over-write" install. Did a "full" install and I always blow away 4 or 5 packages afterwards. This kept my /home, /data, /backup, /, /boot (didn't have to reconfigure the generic smp, recommended kernel) and /usr/local as they were. I then did an installpkg on ALL of my downloaded packages. The /usr/local partition was in tact . I think I'm good to go a /var came up with multiple items and I saw no errors on reboot.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
deleted my /var/log directory TuxLives Linux - Distributions 2 05-07-2007 10:02 PM
Files in /var/lib/dpkg directory kushalkoolwal Debian 3 05-04-2007 03:05 PM
Solaris 9 /var directory is at 100% rust8y Solaris / OpenSolaris 4 05-05-2006 06:54 PM
Umm... yeah, I deleted my /var directory. 8-bitDesigner Linux - Software 6 02-21-2006 09:36 PM
DVD - regenerate .ifo files from .vobs? Moebius Linux - Software 1 08-01-2004 06:48 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:21 PM.

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