Re: My freebsd partition changed by Windows chkdsk
On Mon, 5 Nov 2012 19:25:25 + (UTC), jb wrote: > Manish Jain hotmail.com> writes: > > > > > > > Hello Leslie, > > > > The short answer is No. And it would need more than a miracle to salvage > > the situation if the partition information is lost. > > ... > > I am wondering if this could help: > http://www.cgsecurity.org/wiki/TestDisk It's also in ports: sysutils/testdisk. >From my "famous list of data recovery programs", something else comes to mind which probably won't restore the previous state, but could be used to obtain the data: fetch -rR Also recoverdisk could be useful. The ports collection contains further programs that might be worth investigating; just in case they haven't been mentioned yet: ddrescue dd_rescue magicrescue testdisk recoverjpeg foremost photorec fatback Note that those also emphasize data recovery in the first place, and some of them even work "without file system". Then also ffs2recov scan_ffs should be mentioned. And finally, the "cure to everything" is found in The Sleuth Kit: fls dls ils autopsy In worst case. Just in worst case. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
Manish Jain hotmail.com> writes: > > > Hello Leslie, > > The short answer is No. And it would need more than a miracle to salvage > the situation if the partition information is lost. > ... I am wondering if this could help: http://www.cgsecurity.org/wiki/TestDisk jb ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
Hello Leslie, The short answer is No. And it would need more than a miracle to salvage the situation if the partition information is lost. Sorry if I broke your hopes. But to look at the brighter side of things : 1) You would never have learnt so quickly so much about Windows/FreeBSD/things to do/things not to do had you not run chkdsk 2) Niue is a beautiful country with a great landscape to cheer up even the most regrettable scenario Regards Manish Jain +91-99620-10329 On 05-Nov-12 14:27, Leslie Jensen wrote: Manish Jain skrev 2012-11-04 12:37: Date: Sun, 4 Nov 2012 16:41:45 +0530 From: bourne.ident...@hotmail.com To: les...@eskk.nu CC: freebsd-questions@freebsd.org Subject: Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen) On 04-Nov-12 13:17, Leslie Jensen wrote: Manish Jain 2012-11-02 19:18: 1) Boot from your FreeBSD CD/DVD, enter the slice editor and change the type of your FreeBSD slice back to 165. Do not press Q. Press W instead. Conform with Yes to the warning, and then press Ctrl+Alt+Del to abort the installation. 2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an emergency shell. I hope my message sounds less cryptic now. I personally don't have anything against running chkdsk or fixmbr, AS LONG AS I have backed up the important sectors. Regards Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Just in case you are not aware how to change the filesystem type in the slice editor, highlight your FreeBSD slice and press T. Make sure you enter 165 as the filesystem type, and then press W and confirm the change. Then press Ctrl+Alt+Del and reboot. Regards Manish Jain bourne.iden...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Thank you for the advise you have provided. I did as suggested and it was no problem at all. Unfortunately it seems as if the partitions was destroyed as well. When I look at the slice with the label editor it's empty. So chkdsk did a thorough change unfortunately. Can you think of anything that would bring back the partitions? /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
Manish Jain skrev 2012-11-04 12:37: Date: Sun, 4 Nov 2012 16:41:45 +0530 From: bourne.ident...@hotmail.com To: les...@eskk.nu CC: freebsd-questions@freebsd.org Subject: Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen) On 04-Nov-12 13:17, Leslie Jensen wrote: Manish Jain 2012-11-02 19:18: 1) Boot from your FreeBSD CD/DVD, enter the slice editor and change the type of your FreeBSD slice back to 165. Do not press Q. Press W instead. Conform with Yes to the warning, and then press Ctrl+Alt+Del to abort the installation. 2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an emergency shell. I hope my message sounds less cryptic now. I personally don't have anything against running chkdsk or fixmbr, AS LONG AS I have backed up the important sectors. Regards Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Just in case you are not aware how to change the filesystem type in the slice editor, highlight your FreeBSD slice and press T. Make sure you enter 165 as the filesystem type, and then press W and confirm the change. Then press Ctrl+Alt+Del and reboot. Regards Manish Jain bourne.iden...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Thank you for the advise you have provided. I did as suggested and it was no problem at all. Unfortunately it seems as if the partitions was destroyed as well. When I look at the slice with the label editor it's empty. So chkdsk did a thorough change unfortunately. Can you think of anything that would bring back the partitions? /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
> Date: Sun, 4 Nov 2012 16:41:45 +0530 > From: bourne.ident...@hotmail.com > To: les...@eskk.nu > CC: freebsd-questions@freebsd.org > Subject: Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen) > > > On 04-Nov-12 13:17, Leslie Jensen wrote: > > > > > > Manish Jain 2012-11-02 19:18: > > > >> 1) Boot from your FreeBSD CD/DVD, enter the slice editor and > >> change the type of your FreeBSD slice back to 165. Do not press Q. > >> Press W instead. Conform with Yes to the warning, and then press > >> Ctrl+Alt+Del to abort the installation. > >> > >> 2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an > >> emergency shell. > >> > >> > >> > >> I hope my message sounds less cryptic now. I personally don't have > >> anything against running chkdsk or fixmbr, AS LONG AS I have backed > >> up the important sectors. > >> > >> Regards > >> > >> Manish Jain > >> bourne.ident...@hotmail.com > >> > >> ___ > >> freebsd-questions@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >> To unsubscribe, send any mail to > >> "freebsd-questions-unsubscr...@freebsd.org" > > > > > > I've attached the disk to a running Freebsd system 8.3. > > > > Which program do you reefer to when you write slice editor? > > > > I do not need to be able to boot from the disk. I just need to be able > > to read it and copy my /home to another disk. > > > > Thanks > > > > /Leslie > > > > > Hello Leslie, > > I think you are unclear with FreeBSD terminology. What Windows calls > primary partitions are called slices in FreeBSD. You can have a maximum > of 4 slices per disk, as I had mentioned earlier. One of the slices may > optionally be marked as what Windows calls an extended partition. The > extended partition can be broken up into many partitions ("logical > drives" in Windows terminology). Your C: drive is a slice in FreeBSD > terms. If you have a D: drive too, that - in all likelihood - is a > partition in FreeBSD terminology. > > FreeBSD's terminology is in general much clearer and a lot more mature > than you would find on any other OS, particularly Windows. > > The first step that you have to perform when installing FreeBSD is to > enter the slice editor and create a slice for FreeBSD. When you press on > "Begin a standard installation", the slice editor is the first > application that is automatically presented to you. > > FreeBSD uses the term partition to refer to the divisions it creates > inside its slice for the /, /usr, /var, /tmp filesystems. > > Now I fail to understand what you mean by a "running FreeBSD system". I > thought your FreeBSD installation had been rendered unbootable by > chkdsk. If you can indeed boot into FreeBSD successfully, then you > shouldn't be having any problem copying out whatever data you want. > > The steps I had suggested were meant to make your FreeBSD installation > bootable. As long as your FreeBSD slice is marked as NTFS (filesystem ID > 7) instead of FFS (filesystem ID 165) in the MBR, no application or OS > can read any data from that slice, at least AFAIK. > > > Regards > > Manish Jain > +91-99620-10329 Just in case you are not aware how to change the filesystem type in the slice editor, highlight your FreeBSD slice and press T. Make sure you enter 165 as the filesystem type, and then press W and confirm the change. Then press Ctrl+Alt+Del and reboot. Regards Manish Jain bourne.iden...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
On 04-Nov-12 13:17, Leslie Jensen wrote: Manish Jain 2012-11-02 19:18: 1) Boot from your FreeBSD CD/DVD, enter the slice editor and change the type of your FreeBSD slice back to 165. Do not press Q. Press W instead. Conform with Yes to the warning, and then press Ctrl+Alt+Del to abort the installation. 2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an emergency shell. I hope my message sounds less cryptic now. I personally don't have anything against running chkdsk or fixmbr, AS LONG AS I have backed up the important sectors. Regards Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" I've attached the disk to a running Freebsd system 8.3. Which program do you reefer to when you write slice editor? I do not need to be able to boot from the disk. I just need to be able to read it and copy my /home to another disk. Thanks /Leslie Hello Leslie, I think you are unclear with FreeBSD terminology. What Windows calls primary partitions are called slices in FreeBSD. You can have a maximum of 4 slices per disk, as I had mentioned earlier. One of the slices may optionally be marked as what Windows calls an extended partition. The extended partition can be broken up into many partitions ("logical drives" in Windows terminology). Your C: drive is a slice in FreeBSD terms. If you have a D: drive too, that - in all likelihood - is a partition in FreeBSD terminology. FreeBSD's terminology is in general much clearer and a lot more mature than you would find on any other OS, particularly Windows. The first step that you have to perform when installing FreeBSD is to enter the slice editor and create a slice for FreeBSD. When you press on "Begin a standard installation", the slice editor is the first application that is automatically presented to you. FreeBSD uses the term partition to refer to the divisions it creates inside its slice for the /, /usr, /var, /tmp filesystems. Now I fail to understand what you mean by a "running FreeBSD system". I thought your FreeBSD installation had been rendered unbootable by chkdsk. If you can indeed boot into FreeBSD successfully, then you shouldn't be having any problem copying out whatever data you want. The steps I had suggested were meant to make your FreeBSD installation bootable. As long as your FreeBSD slice is marked as NTFS (filesystem ID 7) instead of FFS (filesystem ID 165) in the MBR, no application or OS can read any data from that slice, at least AFAIK. Regards Manish Jain +91-99620-10329 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
Manish Jain skrev 2012-11-02 19:18: 1) Boot from your FreeBSD CD/DVD, enter the slice editor and change the type of your FreeBSD slice back to 165. Do not press Q. Press W instead. Conform with Yes to the warning, and then press Ctrl+Alt+Del to abort the installation. 2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an emergency shell. I hope my message sounds less cryptic now. I personally don't have anything against running chkdsk or fixmbr, AS LONG AS I have backed up the important sectors. Regards Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" I've attached the disk to a running Freebsd system 8.3. Which program do you reefer to when you write slice editor? I do not need to be able to boot from the disk. I just need to be able to read it and copy my /home to another disk. Thanks /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
On Nov 2, 2012, at 2:33 PM, Warren Block wrote: > On Fri, 2 Nov 2012, Leslie Jensen wrote: > >> >> >> 2012-11-02 16:12, Warren Block skrev: >>> On Fri, 2 Nov 2012, Leslie Jensen wrote: I use sysinstall and fdisk to find the disk, and I get >>> Please don't use sysinstall for this or any disk formatting. >>> Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62- 12 unused0 63 256977 257039 ad12s1 4unknown 22 257040 163702350 163959389 ad12s2 4 NTFS/HPFS/QNX7 163959390 812813778 976773167 ad12s3 4 NTFS/HPFS/QNX7 It's ad12s3 that's my freebsd slice gpart show ad12s3 returns gpart: No such geom: ad12s3 How do I proceed? >>> I don't see why gpart doesn't see that. Please show the output of >>> 'gpart show ad12'. >>> ___ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> "freebsd-questions-unsubscr...@freebsd.org" >> >> >> => 63 976773105 ad12 MBR (465G) >>63 256977 1 !22 (125M) >>257040 163702350 2 ntfs [active] (78G) >> 163959390 812813778 3 ntfs (387G) > > Well, that's a start. The MBR is fine. The bad news is that the bsdlabel > information in slice 3 may be missing. gpart should see that if it exists. > > If you have a printed or saved version of the bsdlabel (disklabel) > information, that could be recreated. Without it, I don't know. sysutils/scan_ffs scans a raw device for UFS partitions and prints probable disklabel info. sysutils/testdisk might help also. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
On Fri, 2 Nov 2012, Leslie Jensen wrote: 2012-11-02 16:12, Warren Block skrev: On Fri, 2 Nov 2012, Leslie Jensen wrote: I use sysinstall and fdisk to find the disk, and I get Please don't use sysinstall for this or any disk formatting. Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62- 12 unused0 63 256977 257039 ad12s1 4unknown 22 257040 163702350 163959389 ad12s2 4 NTFS/HPFS/QNX7 163959390 812813778 976773167 ad12s3 4 NTFS/HPFS/QNX7 It's ad12s3 that's my freebsd slice gpart show ad12s3 returns gpart: No such geom: ad12s3 How do I proceed? I don't see why gpart doesn't see that. Please show the output of 'gpart show ad12'. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" => 63 976773105 ad12 MBR (465G) 63 256977 1 !22 (125M) 257040 163702350 2 ntfs [active] (78G) 163959390 812813778 3 ntfs (387G) Well, that's a start. The MBR is fine. The bad news is that the bsdlabel information in slice 3 may be missing. gpart should see that if it exists. If you have a printed or saved version of the bsdlabel (disklabel) information, that could be recreated. Without it, I don't know. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
Hello. 2012/11/02 14:49:57 +0100 Leslie Jensen => To Manish Jain : LJ> > Right after installation of FreeBSD, I ran : LJ> > dd if=/dev/ad4 of=ad4.512 bs=512 count=1 LJ> > dd if=/dev/ad4s2 of=ad4s2.512 bs=512 count=1 LJ> > dd if=/dev/ad4s2a of=ad4s2a.512 bs=512 count=1 LJ> Will you explain the details, Please? Copy first 512 bytes from every block device to different files. -- Peter Vereshagin (http://vereshagin.org) pgp: A0E26627 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
On 02-Nov-12 19:19, Leslie Jensen wrote: Manish Jain skrev 2012-11-02 14:39: That I trusted the chkdsk program to do what I told it to do was in retrospect a bit naive ;-) I do have a backup although it's not as recent as I would have liked. Can you think of any way to perhaps recover the data from the freebsd partition? I trust that you by now have discovered that your trust was never breached by Microsoft (for once). Microsoft firmly believes that Windows is the only OS that should reside on a PC's disk. Therefore running chkdsk with force was only an invitation to Microsoft to run amok. BTW, the reason I replied to this message was not to provide you with a solution but with a trivial yet good bit of precaution I use on my own dual-boot PC, wherein ad4s1 is NTFS/Windows and ad4s2 is my FreeBSD slice. Right after installation of FreeBSD, I ran : dd if=/dev/ad4 of=ad4.512 bs=512 count=1 dd if=/dev/ad4s2 of=ad4s2.512 bs=512 count=1 dd if=/dev/ad4s2a of=ad4s2a.512 bs=512 count=1 No matter how Windows screws up the MBR or FreeBSD's slice, recovering from the situation is simple enough. Regards Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Thank you for your comment. I must admit that I do not fully understand what it is you do. Will you explain the details, Please? Thanks /Leslie Hello Leslie, Sorry if my comment sounded a bit cryptic. The first 512 bytes of any hard-disk reside outside of any slice and contain the master boot record. If you installed Windows first and FreeBSD second and opted for the FreeBSD (a.k.a. Easy) Boot Manager, the disk's first 512 bytes will contain 446 bytes of Boot Manager code (which the BIOS executes to give you the F1/F2/F3/F4 choices), 64 bytes containing the disk's slice layout (maximum 4 slices) and 2 bytes for a BIOS checksum. It is very easy to lose the MBR. If, instead of chkdsk, you were to run the fixmbr command, Windows will put its own code into the 446 bytes. That code is capable of only one thing - booting drive C: When you ran chkdsk /f, Windows changed the slice-type of your FreeBSD slice from FFS (ID=165) to NTFS (ID=7) in the MBR. Only Microsoft knows why chkdsk is permitted to do that. Once that happens, you would REALLY like to fix the MBR. One way to do it is to to run the reverse of the first command : dd if=ad4.512 of=/dev/ad4 bs=512 count=1 This assumes 1) you can boot into FreeBSD or Linux or have a GParted bootable CD, and 2) you saved your original MBR as ad4.512 and have access to it, possibly on a USB pendrive that you can mount. Just as the disk's first 512 bytes reside outside of any slice, every slice's first 512 bytes reside outside any partition in that slice and consequently outside the filesystems in that slice. This sector contains the boot code (a.k.a. boot record) needed to boot the OS on that slice. Windows will generally be nice enough to first read the boot.ini file, which gives us the option of booting FreeBSD from Windows' boot.ini : dd if=/dev/ad4s2 of=ad4s2.512 bs=512 count=1 Copy out ad4s2.512 to drive C:, and put this in your boot.ini : c:\ad4s2.412="Boot FreeBSD instead" Of course, you have to substitute your correct numbers in the ads{N} notation. For me, is 4 and {N} is 2. The ad4s2a.512 file contains the first sector in your FreeBSD / partition and is meaningful to the loader more than to us mortals. If everything else fails, you might like to give the following a try : 1) Boot from your FreeBSD CD/DVD, enter the slice editor and change the type of your FreeBSD slice back to 165. Do not press Q. Press W instead. Conform with Yes to the warning, and then press Ctrl+Alt+Del to abort the installation. 2) Boot from your FreeBSD CD/DVD again, and run boot0cfg -B in an emergency shell. I hope my message sounds less cryptic now. I personally don't have anything against running chkdsk or fixmbr, AS LONG AS I have backed up the important sectors. Regards Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
2012-11-02 16:12, Warren Block skrev: On Fri, 2 Nov 2012, Leslie Jensen wrote: I use sysinstall and fdisk to find the disk, and I get Please don't use sysinstall for this or any disk formatting. Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62- 12 unused0 63 256977 257039 ad12s1 4unknown 22 257040 163702350 163959389 ad12s2 4 NTFS/HPFS/QNX7 163959390 812813778 976773167 ad12s3 4 NTFS/HPFS/QNX7 It's ad12s3 that's my freebsd slice gpart show ad12s3 returns gpart: No such geom: ad12s3 How do I proceed? I don't see why gpart doesn't see that. Please show the output of 'gpart show ad12'. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" => 63 976773105 ad12 MBR (465G) 63 256977 1 !22 (125M) 257040 163702350 2 ntfs [active] (78G) 163959390 812813778 3 ntfs (387G) /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
On Fri, 2 Nov 2012, Leslie Jensen wrote: I use sysinstall and fdisk to find the disk, and I get Please don't use sysinstall for this or any disk formatting. Offset Size(ST) End Name PType Desc SubtypeFlags 0 63 62- 12 unused0 63 256977 257039 ad12s1 4unknown 22 257040 163702350 163959389 ad12s2 4 NTFS/HPFS/QNX7 163959390 812813778 976773167 ad12s3 4 NTFS/HPFS/QNX7 It's ad12s3 that's my freebsd slice gpart show ad12s3 returns gpart: No such geom: ad12s3 How do I proceed? I don't see why gpart doesn't see that. Please show the output of 'gpart show ad12'. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
On Fri, 2 Nov 2012, Leslie Jensen wrote: Yes I ran chkdsk c: /R It was not my intention to be bitching about it. I just realized that the outcome or the result of the command was not what I had expected. I thought that c: would make chkdsk work only with c:! I've now learned the hard way that that is not the case. Windows lives in an insular universe, where everything else is Windows. Or should be, as far as it is concerned. Same as always: make a backup before doing something serious to the disk. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
Manish Jain skrev 2012-11-02 14:39: That I trusted the chkdsk program to do what I told it to do was in retrospect a bit naive ;-) I do have a backup although it's not as recent as I would have liked. Can you think of any way to perhaps recover the data from the freebsd partition? I trust that you by now have discovered that your trust was never breached by Microsoft (for once). Microsoft firmly believes that Windows is the only OS that should reside on a PC's disk. Therefore running chkdsk with force was only an invitation to Microsoft to run amok. BTW, the reason I replied to this message was not to provide you with a solution but with a trivial yet good bit of precaution I use on my own dual-boot PC, wherein ad4s1 is NTFS/Windows and ad4s2 is my FreeBSD slice. Right after installation of FreeBSD, I ran : dd if=/dev/ad4 of=ad4.512 bs=512 count=1 dd if=/dev/ad4s2 of=ad4s2.512 bs=512 count=1 dd if=/dev/ad4s2a of=ad4s2a.512 bs=512 count=1 No matter how Windows screws up the MBR or FreeBSD's slice, recovering from the situation is simple enough. Regards Manish Jain bourne.ident...@hotmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Thank you for your comment. I must admit that I do not fully understand what it is you do. Will you explain the details, Please? Thanks /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
Jerry skrev 2012-11-02 12:22: On Thu, 01 Nov 2012 10:26:33 +0100 Leslie Jensen articulated: I've replaced my dual boot hard drive with an SSD. My hard drive had one 100 GB windows partition and one 300 Gb Freebsd slice with five partitions (/, /usr, /var, /tmp and /home). In order to move my Win7 partition a Norton Ghost program was supplied with the new disk. When trying to clone that partition the process couldn't finish because it needed a chkdsk command to be executed before cloning. I ran a chkdsk c: with the choice of correcting errors. Somewhere in that process the chkdsk program touched my freebsd partition in a way so that it now is recognized as NTFS. That I trusted the chkdsk program to do what I told it to do was in retrospect a bit naive ;-) I do have a backup although it's not as recent as I would have liked. Can you think of any way to perhaps recover the data from the freebsd partition? Let me get this straight. You ran the program with the "/F" flag, or perhaps the "/R" flag which implies "/F", the program then did exactly what it was designed to do and now you are bitching about it. Like an attorney who never asks a question of a witness without knowing what the answer is going to be, never run a program and then hope it somehow magically knows exactly what you want it to do. Actually, in this case it did exactly what you wanted it to do. Next time run "chkdsk" sans flags and it will only report what it would have done. Yes I ran chkdsk c: /R It was not my intention to be bitching about it. I just realized that the outcome or the result of the command was not what I had expected. I thought that c: would make chkdsk work only with c:! I've now learned the hard way that that is not the case. Usually the nice people here on the list can and will help even when someone makes a mistake. I hope that there will not be a next time ;-) /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)
That I trusted the chkdsk program to do what I told it to do was in retrospect a bit naive ;-) I do have a backup although it's not as recent as I would have liked. Can you think of any way to perhaps recover the data from the freebsd partition? I trust that you by now have discovered that your trust was never breached by Microsoft (for once). Microsoft firmly believes that Windows is the only OS that should reside on a PC's disk. Therefore running chkdsk with force was only an invitation to Microsoft to run amok. BTW, the reason I replied to this message was not to provide you with a solution but with a trivial yet good bit of precaution I use on my own dual-boot PC, wherein ad4s1 is NTFS/Windows and ad4s2 is my FreeBSD slice. Right after installation of FreeBSD, I ran : dd if=/dev/ad4 of=ad4.512 bs=512 count=1 dd if=/dev/ad4s2 of=ad4s2.512 bs=512 count=1 dd if=/dev/ad4s2a of=ad4s2a.512 bs=512 count=1 No matter how Windows screws up the MBR or FreeBSD's slice, recovering from the situation is simple enough. Regards Manish Jain bourne.ident...@hotmail.com On 02-Nov-12 17:30, freebsd-questions-requ...@freebsd.org wrote: Send freebsd-questions mailing list submissions to freebsd-questions@freebsd.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.freebsd.org/mailman/listinfo/freebsd-questions or, via email, send a message with subject or body 'help' to freebsd-questions-requ...@freebsd.org You can reach the person managing the list at freebsd-questions-ow...@freebsd.org When replying, please edit your Subject line so it is more specific than "Re: Contents of freebsd-questions digest..." Today's Topics: 1. My freebsd partition changed by Windows chkdsk (Leslie Jensen) 2. Re: laptop with no BIOS? or BIOS reflash pain (Anton Shterenlikht) 3. Dell H710 and H310 Raid Controller (Omer Faruk SEN) 4. Re: My freebsd partition changed by Windows chkdsk (Warren Block) 5. Autotools, libraries and man pages: oh my! (James Colannino) 6. Re: Autotools, libraries and man pages: oh my! (James Colannino) 7. Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen) 8. Re: Autotools, libraries and man pages: oh my! (Polytropon) 9. lagg interface not created at reboot ( 9.0 ) (Frank Bonnet) 10. Re: lagg interface not created at reboot ( 9.0 ) (Damien Fleuriot) 11. Re: My freebsd partition changed by Windows chkdsk (Jerry) 12. Re: Autotools, libraries and man pages: oh my! (Robert Bonomi) -- Message: 1 Date: Thu, 01 Nov 2012 10:26:33 +0100 From: Leslie Jensen To: freebsd-questions@freebsd.org Subject: My freebsd partition changed by Windows chkdsk Message-ID: <50924049.1020...@eskk.nu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I've replaced my dual boot hard drive with an SSD. My hard drive had one 100 GB windows partition and one 300 Gb Freebsd slice with five partitions (/, /usr, /var, /tmp and /home). In order to move my Win7 partition a Norton Ghost program was supplied with the new disk. When trying to clone that partition the process couldn't finish because it needed a chkdsk command to be executed before cloning. I ran a chkdsk c: with the choice of correcting errors. Somewhere in that process the chkdsk program touched my freebsd partition in a way so that it now is recognized as NTFS. That I trusted the chkdsk program to do what I told it to do was in retrospect a bit naive ;-) I do have a backup although it's not as recent as I would have liked. Can you think of any way to perhaps recover the data from the freebsd partition? Thanks /Leslie -- Message: 2 Date: Thu, 1 Nov 2012 11:27:21 GMT From: Anton Shterenlikht To: flash...@flashrom.org, freebsd-questions@freebsd.org, vid...@gmail.com Subject: Re: laptop with no BIOS? or BIOS reflash pain Message-ID: <201211011127.qa1brlfz010...@mech-cluster241.men.bris.ac.uk> Date: Tue, 30 Oct 2012 21:28:22 +0100 Subject: Re: laptop with no BIOS? or BIOS reflash pain From: Idwer Vollering To: freebsd-questions@freebsd.org, flash...@flashrom.org Another approach is to use an external SPI programmer: http://flashrom.org/Supported_programmers The 'downside' of this is that you need to take your laptop apart. ODM schematics of your laptop are found here: http://notebookschematic.com/wp-content/uploads/2010/06/6515b_6715s.png Downloads for BIOS updates: http://h2.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3356623&prodTypeId=321957&prodSeriesId=3368539&swLang=13&taskId=135&swEnvOID=1093#120 and ftp://ftp.hp.com/pub/softpaq/sp55501-56000/sp6.exe My guess (I am not
Re: My freebsd partition changed by Windows chkdsk
On Thu, 01 Nov 2012 10:26:33 +0100 Leslie Jensen articulated: > I've replaced my dual boot hard drive with an SSD. > > My hard drive had one 100 GB windows partition and one 300 Gb Freebsd > slice with five partitions (/, /usr, /var, /tmp and /home). > > In order to move my Win7 partition a Norton Ghost program was > supplied with the new disk. > > When trying to clone that partition the process couldn't finish > because it needed a chkdsk command to be executed before cloning. > > I ran a chkdsk c: with the choice of correcting errors. > > Somewhere in that process the chkdsk program touched my freebsd > partition in a way so that it now is recognized as NTFS. > > That I trusted the chkdsk program to do what I told it to do was in > retrospect a bit naive ;-) I do have a backup although it's not as > recent as I would have liked. > > Can you think of any way to perhaps recover the data from the freebsd > partition? Let me get this straight. You ran the program with the "/F" flag, or perhaps the "/R" flag which implies "/F", the program then did exactly what it was designed to do and now you are bitching about it. Like an attorney who never asks a question of a witness without knowing what the answer is going to be, never run a program and then hope it somehow magically knows exactly what you want it to do. Actually, in this case it did exactly what you wanted it to do. Next time run "chkdsk" sans flags and it will only report what it would have done. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
2012-11-02 04:39, Warren Block skrev: On Thu, 1 Nov 2012, Leslie Jensen wrote: I've replaced my dual boot hard drive with an SSD. My hard drive had one 100 GB windows partition and one 300 Gb Freebsd slice with five partitions (/, /usr, /var, /tmp and /home). In order to move my Win7 partition a Norton Ghost program was supplied with the new disk. When trying to clone that partition the process couldn't finish because it needed a chkdsk command to be executed before cloning. I ran a chkdsk c: with the choice of correcting errors. Somewhere in that process the chkdsk program touched my freebsd partition in a way so that it now is recognized as NTFS. That I trusted the chkdsk program to do what I told it to do was in retrospect a bit naive ;-) I do have a backup although it's not as recent as I would have liked. Can you think of any way to perhaps recover the data from the freebsd partition? If all it did was change the partition type, that should be easy to change back with gpart modify. Untested example below, make a backup of the disk as it is right now first. Clonezilla will make a (large) binary backup. # gpart modify -i2 -t !165 ada0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" I use sysinstall and fdisk to find the disk, and I get Offset Size(ST) End Name PType Desc SubtypeFlags 0 63 62- 12 unused0 63 256977 257039 ad12s1 4unknown 22 257040 163702350 163959389 ad12s2 4 NTFS/HPFS/QNX7 163959390 812813778 976773167 ad12s3 4 NTFS/HPFS/QNX7 It's ad12s3 that's my freebsd slice gpart show ad12s3 returns gpart: No such geom: ad12s3 How do I proceed? Thanks /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: My freebsd partition changed by Windows chkdsk
On Thu, 1 Nov 2012, Leslie Jensen wrote: I've replaced my dual boot hard drive with an SSD. My hard drive had one 100 GB windows partition and one 300 Gb Freebsd slice with five partitions (/, /usr, /var, /tmp and /home). In order to move my Win7 partition a Norton Ghost program was supplied with the new disk. When trying to clone that partition the process couldn't finish because it needed a chkdsk command to be executed before cloning. I ran a chkdsk c: with the choice of correcting errors. Somewhere in that process the chkdsk program touched my freebsd partition in a way so that it now is recognized as NTFS. That I trusted the chkdsk program to do what I told it to do was in retrospect a bit naive ;-) I do have a backup although it's not as recent as I would have liked. Can you think of any way to perhaps recover the data from the freebsd partition? If all it did was change the partition type, that should be easy to change back with gpart modify. Untested example below, make a backup of the disk as it is right now first. Clonezilla will make a (large) binary backup. # gpart modify -i2 -t !165 ada0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
My freebsd partition changed by Windows chkdsk
I've replaced my dual boot hard drive with an SSD. My hard drive had one 100 GB windows partition and one 300 Gb Freebsd slice with five partitions (/, /usr, /var, /tmp and /home). In order to move my Win7 partition a Norton Ghost program was supplied with the new disk. When trying to clone that partition the process couldn't finish because it needed a chkdsk command to be executed before cloning. I ran a chkdsk c: with the choice of correcting errors. Somewhere in that process the chkdsk program touched my freebsd partition in a way so that it now is recognized as NTFS. That I trusted the chkdsk program to do what I told it to do was in retrospect a bit naive ;-) I do have a backup although it's not as recent as I would have liked. Can you think of any way to perhaps recover the data from the freebsd partition? Thanks /Leslie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"