LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-08-2008, 09:56 AM   #1
psyghost
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Rep: Reputation: 0
Partition mess


I have a dual-boot system which had a windows XP (amd64) NTFS partition as the first partition, and several regular (not lvm) ext3 partitions containing Fedora 9 (amd64).
GRUB was installed in the mbr and was the main boot loader.
I used fuse-ntfs driver on the linux side and ext2-IFS on the windows side. Both partitions were mounted with write access and everything seems to work well until now.

I just rebooted my system only to find out a black screen, containing only the string "GRUB" and the computer beeps unstoppably.
I tried to boot the fedora rescue mode and reinstall grub, no luck.
I booted the computer from windows xp installation disk and went to the recovery console only to find out that it cannot read my NTFS partition at all. Running chkdsk said that the partition contains some unrecoverable errors.

I ran fixmbr as my last hope, rebooted, and surprisingly GRUB showed up. The fedora installation booted fine, and all ext3 partition seems to be intact.
The NTFS partition, although, seems to be dead. ntfsfix cannot correct it and I cannot read it from linux.
Luckily, there was nothing critically important to my on that partition, but I would really like to know how to fix the partition without reinstalling windows XP.

Now, there are several things which I could not understand:
1. How did the NTFS partition got corrupted in the first place.
2. How does that corruption affected GRUB (It sits on the MBR)
3. Why did grub-install command didn't fix grub
4. How come that window fixmbr command, which is supposed to restore NTLDR, fixed grub.
5. How can I restore the NTFS partition?
 
Old 06-08-2008, 11:32 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Sometimes the answer is simply: "Gremlins"

Since you have Fedora working, open a terminal, "su" to root, and run "fdisk -l". (Actually, on Fedora, you may need "su -" or "/sbin/fdisk -l")
Post the results here.

Also, assuming that fdisk tell us the NTFS partition is there, you can mount it and look for the standard Windows files.
 
Old 06-08-2008, 12:23 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by pixellany View Post
Sometimes the answer is simply: "Gremlins"

Too right....

I find it interesting that your NTFS partition and your MBR appeared to both get hosed, at least somewhat, during this process. Is your NTFS partition by any chance the first one on the disk?
 
Old 06-08-2008, 02:33 PM   #4
psyghost
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jtshaw View Post
Too right....

I find it interesting that your NTFS partition and your MBR appeared to both get hosed, at least somewhat, during this process. Is your NTFS partition by any chance the first one on the disk?
Yes, it is.
The partition itself seems to be alright, and also recognized as an NTFS filesystem on GParted. The problem is the filesystem corruption. I tried chkdsk, ntfsfix, testdisk and a regular mount. None of them seems to extract any file data.
Is the ntfs-3g driver really stable as documented?
 
Old 06-08-2008, 06:45 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If an NTFS partition needs fixing, it *has* to be fixed from Windoze. That's the situation you put yourself in when you choose to use a proprietary format. No open source tool I know of will do the job, although the ntfsprogs project has future plans.
I only ever share (as rw) data partitions that I can afford to lose - certainly not the 'doze system/boot partitions. There are also those mundane concepts such as backups - 3g is good, but all code fails sometime. Can be as simple as a power glitch for a journalled filesystem like NTFS.

How many hard disks are on the system ???. You were asked to provide an "fdisk -l" output; while you're at it, post the output from this for each disk - it merely dumps out the first sector (MBR plus partition table) in ASCII
Code:
sudo dd if=/dev/sda count=1 | hexdump -C | less
 
Old 06-08-2008, 10:05 PM   #6
psyghost
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Original Poster
Rep: Reputation: 0
So that means that if windows itself fails to fix the filesystem, it's lost?

Code:
Disk /dev/sda: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0f800000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        6374    51199123+   7  HPFS/NTFS
/dev/sda2            6375        6408      273105   83  Linux
/dev/sda3            6409       20023   109362487+   5  Extended
/dev/sda5            8178       20023    95152963+  83  Linux
/dev/sda6            6409        6790     3068352   82  Linux swap / Solaris
/dev/sda7            6791        7109     2562336   83  Linux
/dev/sda8            7110        7198      714861   83  Linux
/dev/sda9            7199        7287      714861   83  Linux
/dev/sda10           7288        8177     7148893+  83  Linux

Partition table entries are not in disk order
This is the only disk in the system.
 
  


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
Got a little mess here.... Mathius Linux - Newbie 6 11-02-2006 11:14 PM
Partition Mess up Stephanie Linux - General 1 02-18-2004 10:43 AM
Partition Permissions, Sound mess-ups, Mouse Config, Screen Resolution thebeast Slackware 1 11-03-2003 03:19 PM
Linux & Windows 98SE dual boot... will defrag mess up linux partition? herrtool Linux - General 5 10-31-2003 02:43 PM
Partition mess Tristan Sharp Linux - Software 3 02-10-2003 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 AM.

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