LinuxQuestions.org
Review your favorite Linux distribution.
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 07-19-2005, 03:30 AM   #1
Vittel
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
Changing Partition type ....


I have 2 hard drives.
First hard drive is 40GB and contains both Mandrake 10.0 and Windows XP.
Second Hard drive (D:\) is ntfs formated, and acts as a slave for all my data.

I used to be able to access the d: under mandrake with no problems. However, after access a usb stick it seemed to disapper.

Anyway, I was having a tinker with the Partition manager under Computer configurations.
Linux was seeing the partition as NTFS, but it it couldnt see the files
I clicked "Change Partition Type" and acciedently clicked OK after the warning came up.
I did not change the partition type, but I did click OK. (SILLY ME!!)

Now when I log into my Windows it says that D:\ is not formated.
Ive tried everything I know possible to try and recover the files, but to no avail.

Is there anything at all I can do to recover my files?
I would be distraught if I lost them all.


Thanks in advance
 
Old 07-20-2005, 07:19 AM   #2
xukosky
Member
 
Registered: Apr 2005
Distribution: Becoming Sid
Posts: 142

Rep: Reputation: 16
Maybe gpart can do the job but use it as your B plan because it's a very powerful (and then dangerous tool) and there could be other easier ways for trying to recover your data.
 
Old 07-20-2005, 04:46 PM   #3
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
Backup youre stuff, format the drive with the type you want , copy the stuff back.
 
Old 07-23-2005, 04:02 AM   #4
Vittel
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Ive finally managed to save it!

It was the partition table that was screwed somehow and windows explorer was not recognising it. However, I tried a number of data recovery applications and they saw my files percectly.

Im now happy again!
 
Old 08-10-2005, 12:52 AM   #5
villusion
LQ Newbie
 
Registered: Aug 2005
Location: Green Bay, WI
Posts: 10

Rep: Reputation: 0
Ok, I kind of did the same thing, except I accidentally created a swap out of my my hda2 drive..

I tried using r-linux, but it created a bunch of $Inode files on my winodws system, how do I convert that back?

Sample Files


-David
villusion@new.rr.com

 
Old 08-22-2005, 02:55 PM   #6
badbit
LQ Newbie
 
Registered: Jul 2005
Location: Mexicali, B.C.
Distribution: Fedora, Ubuntu, Knoppix
Posts: 12

Rep: Reputation: 0
First of all, sorry about my english.

How did you recover you partition? I'm having a similar problem. I accidentally changed something in my Volume Group configuration, and now my Fedora Core can't boot, and I can't even access my files. I figured out that if I change my root partition type from 8E (which is the current type, a Linux Logical Volume Manager partition) to 83 (which is the Linux native type), but I don't know how to do that, or if it's even possible . Any suggestions?
 
Old 08-22-2005, 03:15 PM   #7
villusion
LQ Newbie
 
Registered: Aug 2005
Location: Green Bay, WI
Posts: 10

Rep: Reputation: 0
You can change the drive partition type by using the fdisk command. Type fdisk then the drive mount position ( e.g. fdisk /dev/hda ).
 
Old 08-22-2005, 03:23 PM   #8
badbit
LQ Newbie
 
Registered: Jul 2005
Location: Mexicali, B.C.
Distribution: Fedora, Ubuntu, Knoppix
Posts: 12

Rep: Reputation: 0
Thanks, I was searching for that info right now and i found it.

--------
You can change the partition type using the command “t”.

Command (m for help): t
Partition number (1-8): 8

You will be prompted for the partition number of the type you want to change and will be followed by:

Hex code (type L to list codes):

Each partition type has a number assigned to it. For the most part, the hex codes of the partition ID's are unique. In some cases, there are conflicts - Solaris partitions and Linux swap share the same ID. If unsure of the Partition ID, use “L” to check. As you can see, fdisk supports a wide variety of partitions from FAT to BSD to BEOS. We select 82 for Linux swap.

Hex code (type L to list codes): 82
Changed system type of partition 8 to 82 (Linux swap)
--------

I will try that... Thanks. I hope that it works, I've been strugging with this problem for months :S

BadBit
 
  


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
help on changing the font type used by a certain of applications parv Linux - General 0 07-29-2004 08:50 PM
root (hd 0,0)Filesystem type unknown, partition type 0x7chainloader +1 ece30675 Linux - Distributions 5 07-20-2004 09:04 AM
Changing Font type in Wine juzchillin Linux - Software 0 05-04-2004 09:00 PM
Changing picture type in Linux mfo6463 Linux - Newbie 9 04-01-2004 08:47 PM
changing login type? wparsons Linux - General 2 03-17-2004 09:44 AM

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

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