Help!! NT + linux partition mkfs problem!!!

Help!! NT + linux partition mkfs problem!!!

Post by dejadj.. » Sun, 13 Jun 1999 04:00:00



I'm afraid I wrecked my linux + NT dual boot system!

Here is my setup:

/dev/sda1     2 gigs  NT 4.0 (FAT)
/dev/sda2     1 gig  NTFS
/dev/sda3     linux (ext2)

Here's what I did:
I tried out the program to read the NTFS from linux,
and I typed:
mkntfs /dev/sda1
(which at the very least should have been /dev/sda2, the NTFS part.
I wish to read), and now I can't boot.
Simply stated: is my NT FAT partition completely trashed now?
Any way to recover?
TIA
dejadjcyr

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

Help!! NT + linux partition mkfs problem!!!

Post by Justin Pelletie » Sun, 13 Jun 1999 04:00:00



> I'm afraid I wrecked my linux + NT dual boot system!

> Here is my setup:

> /dev/sda1     2 gigs  NT 4.0 (FAT)
> /dev/sda2     1 gig  NTFS
> /dev/sda3     linux (ext2)

> Here's what I did:
> I tried out the program to read the NTFS from linux,
> and I typed:
> mkntfs /dev/sda1
> (which at the very least should have been /dev/sda2, the NTFS part.
> I wish to read), and now I can't boot.
> Simply stated: is my NT FAT partition completely trashed now?

Unfortunately for you, you just formatted /dev/sda1 so everything on it
is lost.

Quote:> Any way to recover?

I don't think so...

Quote:> TIA
> dejadjcyr

> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

Justin Pelletier
JP Programmation
Montreal, Canada

 
 
 

Help!! NT + linux partition mkfs problem!!!

Post by Marc Mut » Sun, 13 Jun 1999 04:00:00



> > Here's what I did:
> > I tried out the program to read the NTFS from linux,
> > and I typed:
> > mkntfs /dev/sda1
> > (which at the very least should have been /dev/sda2, the NTFS part.
> > I wish to read), and now I can't boot.
> > Simply stated: is my NT FAT partition completely trashed now?

> Unfortunately for you, you just formatted /dev/sda1 so everything on it
> is lost.

> > Any way to recover?

> I don't think so...

I don't too, but if you have someone who is a wizard for NTFS, then
preserve the current state of your partition by issueing the following
in linux (as root):
dd if=/dev/sda1 of=<dest> bs=512
or
dd if=/dev/sda1 bs=512 | gzip | dd of=<dest> bs=512
for compressed image.
That will save an image of the corrupted partition to <dest>, which
should be a device or file with enough free space. The reason that I
think that not all is lost is, that it is most likely that mkntfs has
not written to every single sector. So, depending on the robustness of
NTFS, it may be possible to recover important data (e.g. with a
hex-editor).

Marc

 
 
 

1. NT NT NT NT NT NT NT MT

Why is everyone comparing whatever operating system with NT?

**************************************************************************
*     / - -                           /-----/ /                          *
*    /____  /   / /----/ /----/      /       /     /----/ /---/ /----/   *
*        / / / / /----/ /----/      /       /---/ /----/ /   / /----/    *
*   ___ / /_/_/ /____  /____       /_____/ /   / /____  /   /  ____/     *

**************************************************************************
---
 t MR/2 t

2. DHCPCD - invalid parameter parm_irq?

3. Cannot add Linux partition afert NT partitioning

4. Linux Frequently Asked Questions with Answers (Part 3 of 6)

5. Please help me set up my partitions properly for NT 4, 98, and LINUX.

6. 3004-034 TSM: All possible term settings tried unsuccessfully

7. NT and Linux same drive partition problem

8. inetd process randomly? forking Solaris 2.4

9. How to restore Windows partition after mkfs?

10. Locking up running mkfs.ext2 on SCSI partition

11. mkfs uses half of the partition on a old 486 with a 850MB big disk

12. mkfs and ext3 partition ?

13. New man in the Linux world has a partitioning problem: adding Linux as a fourth partition