Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
partition table (and/or filesystem) issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
smithj
Retired Dev
Retired Dev


Joined: 24 Sep 2004
Posts: 111

PostPosted: Fri Jan 21, 2005 6:43 am    Post subject: partition table (and/or filesystem) issue Reply with quote

first, let me say that this issue is entirely self-created, and is a product of only my carelessness

now, the issue:

i was installing gentoo on a laptop of a friend of mine's, and had transfered all his doze files onto another computer using rsync. i use knoppix for my gentoo installs. i had ssh'd into computer B (the comp with his files) from A (his laptop), and then had to go to class. in class, i realized that i should have given him a differing partition scheme, so i come back, do fdisk, then reboot. however, i did fdisk over ssh onto my server without realizing it! now, i have everything of MINE backed up, but his data is lost. i asked someone in my school what to do, and he told me to redo the partition table as it origionally was (i did not reformat, just fdisk). so i did that. but now when i try to mount or fsck, i get "bad superblock". the drive is/was ext3

any suggestions?


Last edited by smithj on Fri Jan 21, 2005 6:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
joeswift
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2005
Posts: 94
Location: South Africa

PostPosted: Fri Jan 21, 2005 8:17 am    Post subject: Reply with quote

are you sure it's still an ext3 filesystem? maybe try mounting with ext2 flag like:
Code:

mount -t ext2 [i]filesystem[/i]


or maybe you don't have ext3 support built into the kernel. you might have it only as a module which wont work. If the filesystem is ext2 you can change it to ext3 by running tune2fs:

Code:

tune2fs -j [i]filesystem[/i]


Other than that, check your partitiona table again. You may have to repair it with e2fsck but check that out first before you do, otherwise it looks like you may have to format and lose your data...
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Jan 21, 2005 8:18 am    Post subject: Reply with quote

ext3 should by default store backup superblock copies. Try running something like
Code:
# e2fsck -b 8193 /dev/<partition>

_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
smithj
Retired Dev
Retired Dev


Joined: 24 Sep 2004
Posts: 111

PostPosted: Fri Jan 21, 2005 3:44 pm    Post subject: Reply with quote

codergeek42 wrote:
ext3 should by default store backup superblock copies. Try running something like
Code:
# e2fsck -b 8193 /dev/<partition>


i tried that. it tells me that that superblock is borked as well

joeswift: i am running knoppix, which has support for all common file systems by default (DEFFY ext*). when i try "-t ext2" it tells me that there is not an ext2 filesystem.

edit: are there any programs designed for this type of thing? i know that some people (read US govt) can get data after it has even been formatted, so this shouldn't be SUCH a problem
Back to top
View user's profile Send private message
Lion
Apprentice
Apprentice


Joined: 23 Jun 2002
Posts: 207

PostPosted: Fri Jan 21, 2005 3:56 pm    Post subject: Try gpart Reply with quote

You could also try gpart (Guess Partition Table).
It does a nice job of recovering after an unforeseen fdisk.
Back to top
View user's profile Send private message
smithj
Retired Dev
Retired Dev


Joined: 24 Sep 2004
Posts: 111

PostPosted: Fri Jan 21, 2005 6:33 pm    Post subject: Reply with quote

tried it. it gave me the correct partition table, but when i try to mount, it still tells me that there is a bad superblock or it is the wrong file system type

are there any utilities to recover slightly borked filesystems? (fsck doens't work)
Back to top
View user's profile Send private message
Lion
Apprentice
Apprentice


Joined: 23 Jun 2002
Posts: 207

PostPosted: Sat Jan 22, 2005 11:42 am    Post subject: Reply with quote

I don't know of any better utilities, but I have one more question.
Did you reboot after changing the partition table with fdisk?
If not, the the kernel may still use the previous (incorrect) partition table.
Back to top
View user's profile Send private message
smithj
Retired Dev
Retired Dev


Joined: 24 Sep 2004
Posts: 111

PostPosted: Sat Jan 22, 2005 8:53 pm    Post subject: Reply with quote

yes, i did reboot, because i didn't think about it
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum