Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have triple boot on my desktop. Ubuntu 7.10 , Win XP and FC8. I have 2 80GB Hdds. Ubuntu and WinXP are on the first hdd(hda).
While editing some partitions on the WinXP , I accidently deleted a Ubuntu linux partition. Grub is still active and I can see all the OSs. But ubuntu is not booting. Then I tried to install ubuntu again
But I am not seeing any partitions on the hda. It should have shown NTFS and ext3 partitions on the hda. I saw this error
[root@localhost /]# fdisk -l
Unable to seek on /dev/sda
I can not parttion the hda either now as i have some important data on Win Partiton.
Can the partition table recovered on the hda ? If yes how? Kindly help me on this
I infer that you did fdisk while running on hdb with Fedora.
First, don't do anything that could cause a write to hda. Anything that is recoverable could be overwritten by writing new data. If the data is really valuable, you might want to first clone the drive and/or get it to a recovery service.
There might be some clues in looking at the raw data in the partition table....like so:
Quote:
dd if=/dev/sda bs=1 skip=446 count=64|hexdump -C
I used sda since that was what was in the output of fdisk. (I think the latest kernels think only in sdx.) If sda doesn't work, then try hda.
Post the results here.
I ran gpart on the System and surprisingly the Ubuntu is back. But WinXP is gone. I see a partition but I can not mount it it gives the error as "NTFS signature missing".
here is the fdisk output
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 73 586340 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 74 1410 10739388 83 Linux
/dev/sda3 * 1411 1568 1269100 82 Linux swap / Solaris
/dev/sda4 1569 2905 10739452+ f W95 Ext'd (LBA)
/dev/sda5 1569 2419 6835626 83 Linux
What is "gpart". Your post implied that it somehow fixed something so that you could see partitions on sda.
Can you confirm that the partitions you list are consistent with the Ubuntu installation? For example, it looks like you have a 500+ MB partition (used for /boot?) 10+ GB primary (maybe used for /), and a 10+ GB logical (maybe used for /home?)
What do think the partition setup should have been?---e.g. had you expected to see 1 or more primary partitions of type 7 (NTFS)?
One thing that is strange is that the swap partition is marked as active.
Can you boot into Ubuntu?
Quote:
I see a partition but I can not mount it it gives the error as "NTFS signature missing".
I see FOUR partitions (not counting the extended)--which one are you referring to?
gpart is a program is found on the net to rescan the partitions on the disk and create partition table.
Yes I can boot UBUNTU.
I have two NTFS partitions setup on the disk. I can not see them . As you identified , I am surprised to see the swap partition showing active.
I remember exactly that /dev/sda3 was NTFS partiton before. While using the "Disk Management" I accidently deleted a linux partition.
Anyways , I have backed up the data previously to trying anything. So,no issues in that end. But rather than installing everything again, I want to repair it, if possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.