Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Make a bootable Win 7iso under Gentoo for vbox use
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ValerieVonck
n00b
n00b


Joined: 17 Aug 2017
Posts: 47
Location: Erpe-Mere, Oostvlaanderen

PostPosted: Wed May 30, 2018 4:08 pm    Post subject: [TIP] Make a bootable Win 7iso under Gentoo for vbox use Reply with quote

Quote:

DISCLAIMER:
Only use media that you have bought
Do not use pirated media


- Find a pc with a DVD drive (Duh)
- Put the content on an USB (if you do not have DVD drive) on the other machine (double Duh)
- Mount the /dev/sdb1 partition (YMMV)
- copy everything to a folder named win7 (as shown in the code)

Execute following command (as root or sudo user)
Code:

mkisofs -udf -r -iso-level 4 -v -b BOOT/ETFSBOOT.COM -no-emul-boot -hide boot.bin -hide boot.catalog -o win7.iso ./win7/

rm -rf win7 #dir that contains the files you have copied over

Fire up VirtualBox and attach the newly created iso


Pieced together from various Google searches...

Previous failed because mkisofs shortened the long names :roll:
_________________
Inter antecessum est melius
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Wed May 30, 2018 5:17 pm    Post subject: Reply with quote

That sounds useful, Valerie; but the bits you skip over with "Duh" don't seem that clear to me. You mention copying files as shown in the code, but it's not there, so it's unclear what exactly is being copied, as it is why there's another machine involved.

Could you clarify, please?
Back to top
View user's profile Send private message
ValerieVonck
n00b
n00b


Joined: 17 Aug 2017
Posts: 47
Location: Erpe-Mere, Oostvlaanderen

PostPosted: Wed May 30, 2018 6:03 pm    Post subject: Reply with quote

steveL wrote:
That sounds useful, Valerie; but the bits you skip over with "Duh" don't seem that clear to me. You mention copying files as shown in the code, but it's not there, so it's unclear what exactly is being copied, as it is why there's another machine involved.

Could you clarify, please?


steveL,

The thing I wanted to express:

- I have an old desktop tower, with Win10 Enterprise on it, that was upgraded from Win7 DVD. (this machine contains a DVD player), but this on the verge of collapse (it dates from 2006)
- On my new Nuc, I wanted to install this version of Win 7 as a Virtual Box machine, but new pc's and portables (laptops) do not have DVD drives anymore. (Today, it is all wireless / streaming / cloud, pick your buzzword)

So I had to copy the install DVD first to an usb disk, (from the "old" pc)
On the NUC, I created a directory named win7, in which I copied the content of the usb
I could also do :

- mkdir ./win7
- mount /dev/sdb1 win7
- Execute mkisofs content

But for "performance" reasons, (again, this should be negligible, but the usb is still USB 1.0)
I copied the content of the stick with the Win7 installation files over to the directory.

Before using mkisofs, I tried the following, to try to create a bridge between the physical medium and the virtual VBox Machine, but this failed
So, this in fact a "work-around" / "short cut"
Code:

VBoxManage --createrawimage ... usb.vmdk


vmdk is a virtual HD (for Vbox, Vmware, HyperV) (I suppose)

With "Duh!" I meant : obvious :lol:
_________________
Inter antecessum est melius
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum