LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-26-2008, 10:39 PM   #1
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15
Recovery disk partitions after setting disklabel


I got a new computer which is running an XP. I want to repartition the disk so that I can have enough space for Slackware installation. I booted my machine with ZenLive CD and run 'gparted'. During the operation, I had wrongly clicked 'set disklabel' menu and answered 'yes'. After that I suddenly realized I would be doing something stupid and exit. I reboot the computer and the XP won't be able to start up, it seemed all partitions to have gone.

My questions are:
1. I have never had an idea about disklabel in Windows XP world. What is the disklable and what is it used for?
2. How to recover partitions after setting 'disklabel'?

Any suggestions are welcome.

Chunhua
 
Old 04-26-2008, 10:49 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
This is half-related: http://ubuntuforums.org/showthread.php?t=240730 (it mentions RAID, but it's not the focus of the post). It recommends running Chkdsk in DOS (although I don't know how you'd get to DOS...). Changing the disklabel I think alters the partition table (maybe) and probably formats the drive. Did you have any valuable data on it? (If so, you may wish to try data recovery tools...) If not, it would probably be best to reinstall (if you can). Are you able to reinstall XP (ie do you have a recovery CD/DVD or do you have an actual XP CD)?

Good luck...

[edit] TestDisk (http://www.cgsecurity.org/wiki/TestDisk) supposedly can fix partition tables, but I don't know if it would work in this case.[/edit]

Last edited by T3slider; 04-26-2008 at 10:50 PM.
 
Old 04-26-2008, 11:06 PM   #3
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks for replying.

It is a new computer, there is no valuable data so I can reinstall XP without problems. The only thing is that the disk was originally in two partitions, with one partition for factory recovery (I can press one button to recovery the machine into factory settings and all device drivers are ok) and the other one with XP. I won't be able to get factory recovery with one press.

I doubt that DOS Chkdsk can do the job because the Win98 Chkdsk cannot recognise the NTFS partitions. At any way I will try chkdsk first to see what happens.

Chunhua
 
Old 04-26-2008, 11:59 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,475

Rep: Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453
From the liveCD, run this from a terminal (may need sudo/root)
Code:
fdisk -l
 
Old 04-27-2008, 06:24 AM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,634

Rep: Reputation: 144Reputation: 144
I looked into that kind of problem some days before. You can do a search for "55aa" pattern which indicates the end of a partition and then manually try to repair the disc. If that works if you have deleted both partitions (the example I had dealt with one working and one deleted partitions, I don't know). Unluckily I used to German articles on this topic, I guess you cannot read them?

The two sites I used:
http://linuxwiki.de/VerlorenePartitionFinden
http://ivs.cs.uni-magdeburg.de/bs/le...01/bs2/partfs/

From what I understood you use "dd if=/dev/sdb bs=512 count=1 | xxd | tail -n5 " (of course sdb as an example only) to watch the partition table. In link 2 there is a table that shows what info you got, there's for sure an English version somewhere in the net.
In link 1 there is a small script that searches for the 55aa-pattern. Maybe google language tools are your friend to translate it Good luck!
 
Old 04-27-2008, 07:13 AM   #6
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
boot windows xp disc - select recovery mode, then you can run chkdsk and fixboot
 
Old 04-29-2008, 12:36 AM   #7
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 820

Rep: Reputation: 109Reputation: 109
I had a similar problem in that I formatted a over a partition containing data by mistake and got some help on this list.

There is a linux ap named testdisk that will repair damaged partitions that you may be able to use. You will need to have it on a live cd though to run it in your situation

That post was here: http://www.linuxquestions.org/questi...light=testdisk

HTH
 
Old 04-29-2008, 09:49 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,644
Blog Entries: 36

Rep: Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823Reputation: 2823
Hi,
Quote:
Originally Posted by justwantin View Post
<snip>
There is a linux ap named testdisk that will repair damaged partitions that you may be able to use. You will need to have it on a live cd though to run it in your situation

That post was here: http://www.linuxquestions.org/questi...light=testdisk

HTH
You could download 'SystemRescueCd' or 'UBCD Ultimate Boot CD' which have 'test-disk'.

These links and others are available from 'Slackware-Links' .
 
  


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
Partitions + recovery + FAT + ReiserFS + a complete idiot wini_g Linux - General 2 10-12-2007 07:02 PM
Vaio recovery tool and linux partitions colucix Linux - Laptop and Netbook 3 01-13-2007 05:19 PM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 01:21 PM
Suse linux killed my partitions!? Data recovery possible? joblo33 Linux - Software 3 10-13-2006 07:48 AM
Disk recovery? Hikaru79 Linux - General 10 03-07-2006 11:13 AM

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

All times are GMT -5. The time now is 07:51 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