LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-15-2005, 07:05 AM   #1
todd_seiler
LQ Newbie
 
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
directory disappeared randomly


I recently noticed a directory that I had, disappeared.. just out of the blue.. under my /home/userdirectory directory.
I read that you can use fsck to recover the stuff if it is not on the root partition....
it is on the root partition, so I decided to use fedora's recovery cd... but
when i run fsck it says that it needs /etc/fstab... I don't understand how i'm
supposed to recover something if it requires /etc/fstab... the only way
to let it have access to /etc/fstab is to mount the root partition.... right?

fsck also said that my drive wasn't a valid ext2 drive... which it isn't, it's ext3 /w journaling...

so....

1) What would make the directory just up and disappear? (i didn't have a power outage)
2) Is it possible to force linux (on restart) to run fsck (i know it does this when the power does go out... I have to press "y" within 5 seconds... )
3) How should I partition my hard drive better so that I can umount the "data" partitions to allow for better recovery....

Currently I have 2 partitions on one hard drive... my /boot partition and / partition i believe... I store all of my files under /home/userdirectory .. so should I put my /home on it's own seperate partition... is this a good idea?

This disappearing directory really worries me... I was seriously going to commit strictly to linux and get rid of windows, but I don't know after this little deal... I can't just be randomly losing data for no apparent reason... That's unacceptable... This is the first time that this has happened for me.... that i know of... It was a directory that I created and stored software in, but I didn't access it very often.. it was my "backup" directory...

thanks,
-Todd

p.s. i'm running fedora 3
 
Old 07-17-2005, 03:11 AM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
1) What would make the directory just up and disappear? (i didn't have a power outage)
Most likely, a program deleted it. (Also see ext3 note at the end)
Quote:
when i run fsck it says that it needs /etc/fstab
Only if you don't tell it what filesystem to check.
Quote:
2) Is it possible to force linux (on restart) to run fsck (i know it does this when the power does go out... I have to press "y" within 5 seconds... )
Use tune2fs to set the maximal mounts count to 1. (This will make for long boot times)
Quote:
3) How should I partition my hard drive better so that I can umount the "data" partitions to allow for better recovery....
Usually, these are the partitions on a Linux system: /boot, /, /tmp, /home, /var, and /usr (and sometimes /usr/local)
The only problem with this setup is the free space fragmentation on disks with little free space.

EXT3 notes:
A) Recovery of deleted files is impossible under EXT3.
B) You don't need fsck anymore, that's the whole point of the journal.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
9.1 randomly freezing up php Slackware 4 01-23-2009 07:32 AM
randomly bootloader problem lordofring Linux - Software 1 03-03-2005 06:30 PM
Pc turns off randomly?!?!!?! Nz_Boy_2004 Linux - General 14 01-15-2005 10:40 PM
Computer going out randomly. andrewlubinus89 Linux - Hardware 5 12-15-2003 10:08 AM
X locks up randomly !!! anybody ....please help thejedi1 Linux - General 7 04-10-2002 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration