Discussion:
windows 7 sanboot
Mahboob AliKhan
2011-03-06 20:00:10 UTC
Permalink
I had a question about windows 7 sanboot and would appreciate some help.

So, when I try sanbooting windows 7, i noticed that it by default makes 2 partitions while installing. the first one is some 100 MB, that it uses for some configuration files and 12 Gb for other installation files. Now after I installed the windows 7 on to the local disk, i wanted to copy the image from local disk to my iscsi target. So, when i do fdisk -l on my local machine, it shows 2 partitions, so i did a dd command which starts from first cylinder and goes on till the last cylinder, in short, I am copying the whole thing ( 2 partitions) as one big Lun ( one partition). Now whats happening becuase of this is that, when I try to boot my laptop with this LUN, it starts fine, then it says bad hard disk and reboots again.

So, can some one please explain me, how i can copy the windows 7 image to a target with avoiding this issue.

btw, I have tried installing it directly to an iscsi target and it works fine, but my use case requires me to copy it to the local machine and then copying it over.

Thanks
Mahboob
Michael Hughes
2011-03-06 20:19:49 UTC
Permalink
Hi Mahboob,
Windows 7 has a hard time figuring out its disk architecture. There is a
registry key you can delete, or run Fogprep.exe from the Fog Project
installation package. A google search should point you in the right
direction.
Mike
Post by Mahboob AliKhan
I had a question about windows 7 sanboot and would appreciate some help.
So, when I try sanbooting windows 7, i noticed that it by default makes 2
partitions while installing. the first one is some 100 MB, that it uses for
some configuration files and 12 Gb for other installation files. Now after I
installed the windows 7 on to the local disk, i wanted to copy the image
from local disk to my iscsi target. So, when i do fdisk -l on my local
machine, it shows 2 partitions, so i did a dd command which starts from
first cylinder and goes on till the last cylinder, in short, I am copying
the whole thing ( 2 partitions) as one big Lun ( one partition). Now whats
happening becuase of this is that, when I try to boot my laptop with this
LUN, it starts fine, then it says bad hard disk and reboots again.
Post by Mahboob AliKhan
So, can some one please explain me, how i can copy the windows 7 image to
a target with avoiding this issue.
Post by Mahboob AliKhan
btw, I have tried installing it directly to an iscsi target and it works
fine, but my use case requires me to copy it to the local machine and then
copying it over.
Post by Mahboob AliKhan
Thanks
Mahboob
------------------------------------------------------------------------------
Post by Mahboob AliKhan
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Etherboot-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/etherboot-discuss
Joseph L. Casale
2011-03-07 02:59:50 UTC
Permalink
Post by Mahboob AliKhan
Now whats happening becuase of this is that, when I try to boot my laptop
with this LUN, it starts fine, then it says bad hard disk and reboots again.
That first 100 meg partition is created by windows for use by bitlocker as well
as holding the boot loader, when you change the geometry of the disc after
setting up windows, by no fault of windows, it obviously cannot start.

http://blogs.technet.com/b/uspartner_ts2team/archive/2010/03/12/what-is-the-windows-server-2008-r2-windows-7-system-reserved-partition.aspx
Mahboob AliKhan
2011-03-07 07:50:40 UTC
Permalink
Thanks for the reply. So in that case what would be the ideal way of copying over the lun, like should I have 2 separate luns, one for 100mb and one for rest?

Sent from my iPhone
Post by Joseph L. Casale
Post by Mahboob AliKhan
Now whats happening becuase of this is that, when I try to boot my laptop
with this LUN, it starts fine, then it says bad hard disk and reboots again.
That first 100 meg partition is created by windows for use by bitlocker as well
as holding the boot loader, when you change the geometry of the disc after
setting up windows, by no fault of windows, it obviously cannot start.
http://blogs.technet.com/b/uspartner_ts2team/archive/2010/03/12/what-is-the-windows-server-2008-r2-windows-7-system-reserved-partition.aspx
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Etherboot-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/etherboot-discuss
Michael Hughes
2011-03-07 14:08:23 UTC
Permalink
On Mon, Mar 7, 2011 at 1:50 AM, Mahboob AliKhan
Post by Mahboob AliKhan
Thanks for the reply. So in that case what would be the ideal way of copying over the lun, like should I have 2 separate luns, one for 100mb and one for rest?
One solution is to clear out this registry key (or run FOGprep.exe,
which will clear it out for you,) just prior to your last shutdown:
HKLM\SYSTEM\MountedDevices

Or run these commands from a rescue CD after your next boot:
bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {bootmgr} device partition=c:

or d: - what ever your main partition is known as. Read about
0xc000000e errors for more info:
http://social.technet.microsoft.com/Forums/en/itprovistadeployment/thread/b26a0560-b3a1-4236-b0de-35065ac38575
Loading...