Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8972925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:20:05+00:00 2026-06-15T18:20:05+00:00

I am installing postgres 8.4 on an ubuntu lucid server (no, at the moment

  • 0

I am installing postgres 8.4 on an ubuntu lucid server (no, at the moment we are using the “lucid” LTS version on that server so an upgrade is not possible yet (although we are going to start testing the system on precise quite soon now))

I have set up an own partition for the /var/lib/postgresql/8.4/main directory with a ext4 file system. (Those of you who are really into postgres installs knows what is happening now…) Since ext4 puts a lost+found directory in the root of all file system, postgres will not use that directory as its data-directory since it is initially not empty…

initdb: directory “/var/lib/postgresql/8.4/main” exists but is not empty
If you want to create a new database system, either remove or empty
the directory “/var/lib/postgresql/8.4/main” or run initdb
with an argument other than “/var/lib/postgresql/8.4/main”.

The easiest way to proceed would be to remove the lost+found and recreate it after initdb has done its job. – could that cause any problems? Does the lost+found have any special attributes or anything that makes it impossible to recreate, and also, it is needed at any other time than if checkdisk finds something it needs to put there?

Another way would be to unmount the …/main/ file system, init the database, temporary mount the …/main/ filesystem somewhere else, move things over there and mount it in place. Seems to be a bit more work than the “easiest way”.

Or is it some way to make initdb ignore that the directory is not empty? (couldn’t see any command line switches for that)

May a lost+found directory within postgres main directory cause any problems?

At the moment I am running the system on a virtual machine for testing, so it really doesn’t matter if I mess up things, but before making this an official way of installing a mission-critical system, it would be nice to have some thoughts on this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:20:06+00:00Added an answer on June 15, 2026 at 6:20 pm

    lost+found has preallocated blocks that make it easier for fsck to move data into it when the partition is short of free blocks. To create it, better use the mklost+found command rather than mkdir.

    If you don’t recreate it, fsck will do it anyway when it’s needed.

    But if it comes to the point where fsck finds corruption within PGDATA, I’d think about going for a backup rather than counting on lost+found to retrieve anything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the short version of postgres' installing it tell me to do the following
I installed the latest version of postgres on OS X Lion using homebrew. The
After installing and configuring cluetip, i realized that the urls you hover over to
Installing cvblobslib gives an error cxtypes.h not found. Is there a workaround for this?
Installing Sparks assumes that you are abiding by the default CodeIgniter installation pattern; extracting
Installing a rails plugin using the git:// protocol is easy, you just type script/plugin
Is it possible (and/or would it be effective) to use Postgres' hstore as a
While installing SQL Server 2005, I unknowingly uninstalled the existing SQL Express(I dont know
After installing the new server, I am facing an issue. I have lot of
I did the following after installing Postgres locally: gem install postgres-pr I changed the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.