openSUSE Forums > Hardware » Installation must've split my home partition

Go Back   openSUSE Forums > Hardware
Forums FAQ Members List Search Today's Posts Mark Forums Read


Hardware Questions about drivers, peripheral cabling, configuration

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-Jun-2009, 09:04
cxd cxd is offline
Puzzled Penguin
 
Join Date: Jun 2008
Location: Zurich, Switzerland
Posts: 14
cxd hasn't been rated much yet
Send a message via MSN to cxd Send a message via Skype™ to cxd
Question Installation must've split my home partition

Hi all, I'm having a rather peculiar problem. I had a reiserfs home partition and I wanted to install the 11.1 openSuse distro over. The partition is about 140 GB in size and all worked very well, until it came to assigning a mount point to the partitions when I noticed that for some strange reason instead of /dev/sda6 I had two partitions (/dev/sda6 and /dev/sda7) with 20 GB and 120 GB each. Running fsck I actually found out that /dev/sda7 wasn't a real partition, while /dev/sda6 had errors (block count was off). So I thought well, just rewrite the partition table as I remember it to be and all should be well. But that was apparently a wrong conclusion, as it still complained about the super block being erroneus. reiserfsck now aborts after some badblocks (which I never noticed before) and I still can't mount the partition. So what I'm doing right now is I've run
Code:
badblocks -n -b 4096 -o badblocksfile /dev/sda6
and then
Code:
reiserfsck --fix-fixable --badblocks badblocksfile /dev/sda6
But I've no good feeling at all about it.

Is there a way to temporarily mount the partition so I can get some data out of it?
__________________
http://blog.snyke.net
Reply With Quote
  #2 (permalink)  
Old 04-Jun-2009, 10:14
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,902
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: Installation must've split my home partition

A live cd should let you mount the partition. A suse one will do, mind you I always use knoppix or mepis.
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #3 (permalink)  
Old 04-Jun-2009, 10:30
FeatherMonkey's Avatar
Wise Penguin
 
Join Date: Mar 2008
Posts: 1,545
FeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura about
Default Re: Installation must've split my home partition

I wouldn't mount it until you're sure the disk isn't buggered. I would look at ddrescue create an image and try to mount that. Though perhaps some off the blind commands have made some of the data un-retrievable.

Though it is feasible to mount ro but many live distro's will mount or probe the disk or try to use swap etc..

What this means is anyone's guess "just rewrite the partition table as I remember it to be" in theory had you changed the structure of the table you can change it back and it will be OK.

But...
You had not made any changes you where still at the choosing stage, so either you're not telling us something or the disk is dying.

So if this was me(I would of one had a backup of data I cared for! Had I got to this stage you begin looking at data retrieval. So the first thing is to get a dump and try all fixes on that.)

Will you be able to reverse it who knows but I suspect you have a dying disc. Why, well I presume and don't really care enough to confirm. That the partition table is stored in the early bit of the disk(Maybe mbr(Note not sda6/7)), you seem to be playing with badblocks. And each time you mount it, probe it, try to write to it, and in certain cases even reading it, you give it the opportunity to lose more data.
__________________
Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
If I've helped click on the Rep button I don't know what it does but it sounds cool.
Reply With Quote
  #4 (permalink)  
Old 04-Jun-2009, 13:56
Knurpht's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: groningen, netherlands
Posts: 1,804
Knurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enough
Default Re: Installation must've split my home partition

I agree completely with Feathermonkey. Too much has already been done, to be able to say something decent about it. Either you already messed up, or the disk is at it's end.
Put the disk in another linux-box together with a backupdisk and use dd or ddrescue to retrieve (some of) your data, but from what I've read something like data-integrity will not apply.
__________________
- AMD Athlon X2 6.0 GHz, 8 GB DDR2-800, 30 GB SSD, 1.5 TB, EVGA 9800GT, openSUSE 11.2 KDE4 4.3.3
- ASUS K70IO laptop, GT120M-1GB, 4 GB, 64 GB SSD, opensuse Factory, KDE4 4.3.3

R.E.S.T.E.C.P.
Reply With Quote
  #5 (permalink)  
Old 04-Jun-2009, 15:56
cxd cxd is offline
Puzzled Penguin
 
Join Date: Jun 2008
Location: Zurich, Switzerland
Posts: 14
cxd hasn't been rated much yet
Send a message via MSN to cxd Send a message via Skype™ to cxd
Default Re: Installation must've split my home partition

I actually got it working again: Brian's Blog: Reiserfs - Dealing with Bad Blocks
I guess I was lucky ^^
__________________
http://blog.snyke.net
Reply With Quote
Reply

Bookmarks

Tags
installation, partition, reiserfs


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2