LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-13-2009, 07:47 AM   #1
iorulezz
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Ext3 partition error after trouble with fedora installation


Hello,

I installed Fedora 11 over my old openSUSE distro. I had the suse in two partition /dev/sda6 for / and /dev/sda7 for /home .

Fedora said I had to delete the /dev/sda6 partition so i could make two partitions of it, one ext3 for /boot and one ext4 for / (i wanted the ext4).

As a result I deleted the /dev/sda6 and then I got my /dev/sda7 renamed to /dev/sda6 and I proceeded before noticing. Now I have the two new partitions as /dev/sda7 , /dev/sda8 and the old sda7 as sda6.

Now if I mount it, it appears to be empty. I tried TestDisk but it gives me "The Following Partition can't be recovered". I tried photorec and it starts fetching files but it's very difficult to find the files I want in this way. Is it possible to resurrect the dead ?

cheers,

iorulezz
 
Old 06-13-2009, 10:33 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Boot on a cdrom or something, get a console (Ctrl_Alt_F2) and type

fdisk -l > some/path/file.txt

post that here.
 
Old 06-14-2009, 01:16 PM   #3
iorulezz
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Here is fdisk output:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x38000000

Device Boot Start End Blocks Id System
/dev/sda1 1 15 120456 de Dell Utility
/dev/sda2 16 1321 10485760 7 HPFS/NTFS
/dev/sda3 1322 9050 62083192+ 7 HPFS/NTFS
/dev/sda4 9051 19457 83594227+ f W95 Ext'd (LBA)
/dev/sda5 9051 9312 2104483+ 82 Linux swap / Solaris
/dev/sda6 11924 19457 60516823+ 83 Linux
/dev/sda7 * 9313 9338 204799+ 83 Linux
/dev/sda8 9338 11923 20767743+ 83 Linux

Partition table entries are not in disk order
______________________

/dev/sda6 is the lost partition. It should be last on the list. How do I fix that ?
 
Old 06-15-2009, 04:43 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I would start by deleting /dev/sda7 - it's only 205k

Then use some partition manager to make a partition setup you can use. If you go for fdisk, sinply type 'n' and follow the prompts. Then you have lost data, so make sure the partitions are correct in /etc/fstab. Never mind if a partition can't be recovered.
 
Old 06-15-2009, 04:56 AM   #5
iorulezz
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
/dev/sda7 is 200M and contains Fedora's /boot as I told before.

If I delete /dev/sda7 && /dev/sda8 then /dev/sda6 will still be with a wrong name, won't it? So is this actually gonna fix anything ?

Last edited by iorulezz; 06-15-2009 at 04:58 AM.
 
Old 06-15-2009, 07:52 AM   #6
iorulezz
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I deleted /dev/sda7 , /dev/sda8 but nothing better happened. Lost partition is still /dev/sda6.

I just put photorec running and it is currently recovering all my lost *.java files which are actually what I needed most.

But is there anyway to make /dev/sda6 -> /dev/sda7 again so it maybe works again ?

PS I tried making a new partition before /dev/sda6 but that doesn't rename it at all, the new partition would be /dev/sda7.
 
Old 06-16-2009, 03:53 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
if you simply want to change the numbers, change them in /etc/fstab. Then you can mount the thing. Without doing that, you can mount it manually

mount -t type /dev/sdan /mount-point e.g.
mount -t ext3 /dev/sda6 /mnt/hd

You have your java files. Good. fdisk will not shift numbers up, but will shift them down. If you delete, e.g. sda5, all above will drop by one. sda6 becomes sda5, etc. If you now remake sda5, it gets a number one higher than the highest existing partition.

You can usually remake the partitions exactly as they were and recover the filesystem on it.No guarantees. Also if you have a wiorking system, there is testdisk
http://www.icewalkers.com/Linux/Soft.../TestDisk.html

It is good. Take it from someone who has needed it.
 
Old 06-16-2009, 07:44 AM   #8
iorulezz
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
As I said before:
Quote:
Originally Posted by iorulezz View Post
I tried TestDisk but it gives me "The Following Partition can't be recovered".
I cannot clone the whole partition because I have not enough space left on any disk. Maybe I will just delete them all. But I bet there's some way to recover the files. If not, no real prob, but that's a pity!
 
Old 06-17-2009, 03:21 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
you have plenty of space on NTFS, by the looks of it. All you need is a scratchpad - a small amount of space somewhareon your box. Then you can recover them to there, and send them on.

Gmail takes 25 meg attachments. www.freedrive.com gives 100gig. If you have another drive, or another box, you can network them.
ifconfig eth0 -pointopoint <some_ip> up <your_ip>

Use sshd on one, and sftp on the other.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ext3 partition disappeared after PCLinuxOS 2007 installation failed Setlew Linux - General 6 07-03-2007 04:37 PM
Ext3 partition disappeared after PCLinuxOS 2007 installation failed Setlew Linux - General 1 06-30-2007 12:30 PM
Trouble writing to a second ext3 partition Tomermory Linux - Hardware 6 05-12-2007 04:22 AM
Partition Table Error in Fedora 3 Installation arjundg Fedora - Installation 3 03-29-2005 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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