LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-18-2011, 11:53 AM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
newly formatted ext3 becomes unmountable after a day


Hi, recently I've done a lot of coding on the external drive 2gb, i saved and load the webserver cgi page quite a lot, and the old one becomes unmountable, so I got another one and I formatted it yesterday as ext3, I coded for a day, and it became unmountable this morning. I wonder why is it so unstable? will fat be more stable? this is quite upsetting. Cause the first time i didnt backup at all, I have backuped this time but I have to reconfigure everything. May I recover it somehow? Did anyone had the same experience? What do I need to do to check the partition?
Thanks,
Ted
 
Old 11-18-2011, 12:23 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
is this a flash drive? how did you mount it? did you automount in fstab? if so how did you mount it in fstab?
 
Old 11-18-2011, 03:12 PM   #3
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
Hi, this is a flash drive. this is some of the codes from the mount script:
Code:
    ACTION=$(echo ${FORM_mount} | cut -d ' ' -f 1)
    PART=$(echo ${FORM_mount} | cut -d ' ' -f 2)
    if [ "$ACTION" = "Mount" ] ; then
    	/usr/share/snake/automount $PART add
    fi
    if [ "$ACTION" = "Umount" ] ; then
     	/usr/share/snake/automount $PART remove
    fi
    if [ "$ACTION" = "Check" ] ; then
    	echo "<h2>Checking partition $PART integrity</h2>"
    	e2fsck -n /dev/$PART
		echo "<br><b>If an error was found above, Umount the partition to fix it</b><br><br>"
    fi
    if [ "$ACTION" = "Fix" ] ; then
    	echo "<h2>Fixing partition $PART integrity</h2>"
     	/usr/share/snake/automount $PART remove
    	e2fsck -y /dev/$PART
    	/usr/share/snake/automount $PART add
I think it is automount, i managed to capture a file from /dev/sda1 (around 1.85gb), how would I process it?
Thanks,
Ted
 
Old 11-18-2011, 09:36 PM   #4
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
Someone told me that
Quote:
Can you try to run e2fsck /dev/sda1 via ssh? Maybe that will fix
things up.
is useful, and indeed! it recover files under /sda1/lost+found. But the minor part (frequently saved files and dir) are not mapped correctly, they are given new dir names like #32425, I wonder if there is anything to fix the mappings? (sorry for asking so much).
Thanks,
Ted
 
  


Reply



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
Mounting ext3 formatted drive kjeldsen Linux - Newbie 10 02-18-2011 12:57 PM
newly created JFS filesystem, now unmountable zero-x Linux - General 4 04-15-2008 05:59 PM
Recover formatted EXT3 partition designator Linux - Software 10 03-29-2008 08:30 PM
newly formatted partition contains used space Kristian2 Linux - Newbie 4 10-28-2006 11:50 PM
cannot mount already formatted secondary hard drive on newly installed debian angmar Debian 8 08-05-2005 01:12 PM

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

All times are GMT -5. The time now is 03:45 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
Open Source Consulting | Domain Registration