Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)

2012-11-04 Thread 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.

My legal disclaimer comes here, but do let me know if you get lucky

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 (Leslie Jensen)

2012-11-04 Thread Manish Jain


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.

My legal disclaimer comes here, but do let me know if you get lucky

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)

2012-11-04 Thread Manish Jain





 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.
 
  My legal disclaimer comes here, but do let me know if you get lucky
 
  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)

2012-11-02 Thread Manish Jain

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 les...@eskk.nu
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 me...@bristol.ac.uk
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 vid...@gmail.com
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=encc=usprodNameId=3356623prodTypeId=321957prodSeriesId=3368539swLang=13taskId=135swEnvOID=1093#120
and ftp://ftp.hp.com/pub/softpaq/sp55501-56000/sp6.exe

My guess (I am not a HP service technician) is that you need
ROM.CAB/Rom.bin from

Re: My freebsd partition changed by Windows chkdsk (Leslie Jensen)

2012-11-02 Thread 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 (Leslie Jensen)

2012-11-02 Thread Manish Jain

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
adNs{N} notation. For me, N 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.

My legal disclaimer comes here, but do let me know if you get lucky

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 (Leslie Jensen)

2012-11-02 Thread Peter Vereshagin
Hello.

2012/11/02 14:49:57 +0100 Leslie Jensen les...@eskk.nu = 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 pe...@vereshagin.org (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