LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2013, 05:00 PM   #1
aphesia
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint 13
Posts: 6

Rep: Reputation: 0
Error mounting


So someone did a bad fsck and deleted the os (mint).

Using a live USB i'm trying to replace the os with mint 13 but first i need to recover their info from the mounted partition.

I'm getting:
Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail or so

DISCLAIMER: i havn't needed to do much with linux this last year or so, and i've forgotten alot. sheesh.

Anywho, with dmesg | tail i get

[ 118.046961] EXT4-fs (sda3): no journal found
[ 151.960336] mmc0: card e624 removed
[ 153.659935] mmc0: new hogh speed SDHC card at address e624
[ 153.660690] mmcblk0: mmc0:e624 SU32G 29.7 GiB
[ 153.660690] mmcblk0: p1
[ 171.414018] EXT4-fs (sda3): no journal found
[ 847.122585] EXT4-fs (sda3): no journal found
[ 847.278121] EXT4-fs (sda3): no journal found
[ 2824.912138] composite sync not supported
[ 3716.220138] composite sync not supported

suggestions? thx.
 
Old 02-24-2013, 08:03 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,342
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
If you need to recover data, photorec is an excellent choice.

http://www.cgsecurity.org/wiki/PhotoRec

I have been lucky enough never to need it, but I've heard good reports from those who have.
 
Old 02-24-2013, 08:05 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
how exactly are you trying to mount the HDDs?

i take it you are booting from a LiveCD/DVD/USB device of some sort and are trying to get data off of the HDDs that contain the OLD OS you are trying to replace with Mint 13. Is that correct?

unless the HDDs themselves are going bad, in that case you would not want to install a new OS, the LiveOS should be able to auto-detect and automagically mount the drives to at least give you read only permissions. both Gnome and KDE desktop should handle this without issue.

If you have to perform this manually you will first need to look at the mounted partitions created by the LiveOS... type: df -Th to get that info.

after you know that, you can create a mount point and manually mount the HDDs you require data from.

also is the current OS dead? if not, then you might consider backing the data up to an other computer, or some type of external storage.

if you used LVM or separate partitions for / and /home, or were ever you have your data stored, then you could just install the new OS over the old and not touch the partition/LVM with the data.
 
1 members found this post helpful.
Old 02-25-2013, 12:16 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
The journal file, as noted, has been deleted. So, you need to use tune2fs to revert the file system to the base ext2 format, and then try to mount it. If that works, all you've lost is any uncommitted stuff in the journal file, which, on a lightly loaded system, is usually nothing. (Well, almost always, but who really knows.)

If that works, you should be able to move forward.

If not, testdisk, etc. might help.
 
2 members found this post helpful.
Old 02-25-2013, 07:14 PM   #5
aphesia
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint 13
Posts: 6

Original Poster
Rep: Reputation: 0
frankbell: thanks for that link, i'm going to use it as my last resort and first try the other suggestions.

lleb: yes, i'm trying to install mint 13 on the hard drive. i've run tests and it looks like the drives are not going bad (surprising for how long i've kept this old laptop going). however i need to get some info off before reformatting and installing 13. this leads me to my stupid question:

(thanks PTrenholme for the suggestion of tune2fs)
if i'm mounted on a drive, how to i unmount it to change it to ext2 while i'm using it? yes, stupid question i know.

thanks.
 
Old 02-25-2013, 07:51 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
if you mounted it, you can unmount it basically the same way:

Code:
# mount -t ext3 /dev/sdX# /mount/point

# umount /mount/point
it should just be a standard umount as long as you are NOT running off of that partition. so from a liveOS again as mentioned use the df -Th command to locate the partition that is fubar and umount the mount point, then you can tune2fs the device (/dev/sda1 or something like that)
 
Old 02-25-2013, 07:55 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
The unnmount cmd is 'umount' NOTE SPELLING
http://linux.die.net/man/8/umount

The disk must NOT be being used when you umount, so ensure you're not using it as your current dir. If the umount complains, try lsof & fuser cmds to see what's using it.
http://linux.die.net/man/8/lsof
http://linux.die.net/man/1/fuser

PS usually you must be root to do this.
 
Old 03-14-2013, 05:12 PM   #8
aphesia
LQ Newbie
 
Registered: Jan 2011
Distribution: Mint 13
Posts: 6

Original Poster
Rep: Reputation: 0
So I've just now completed this entire ordeal.

What worked for me was using the terminal (using ctrl+alt+f1 on startup to access the terminal) and running fsck on the faulty volume. This recreated the missing journal and fixed some corrupted bits.

Then testdisk recovered the information. I reformatted everything and install mint 13 cinnamon and everything is great!

Thanks for all the help.
 
  


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
[SOLVED] Mounting Error dorlack Linux - Newbie 2 04-27-2012 09:44 AM
mounting error javier_ccs Linux - Newbie 1 06-17-2005 11:57 AM
mounting error Uldis Slackware - Installation 2 07-04-2004 02:58 PM
Error while Mounting Smooth Linux - Newbie 2 08-13-2003 12:01 AM
installation error: Error mounting sda1: Invalid Argument sadirmata Linux - Newbie 1 01-29-2002 03:28 AM


All times are GMT -5. The time now is 10:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration