Colocar Resposta 
 
Avaliação do Tópico:
  • 0 votos - 0 Média
  • 1
  • 2
  • 3
  • 4
  • 5
Criar uma pen boot através do Ubuntu
26-05-2011, 12:50
Mensagem: #3
RE: Criar uma pen boot através do Ubuntu
Viva,

Depois de uma pequena pesquisa encontrei isto:
http://serverfault.com/questions/6714/ho...from-linux

Passo a transcrever algo que funcionou:
Citar:OK, after unsuccessfully trying all methods mentioned here, I finally got it working. Basically, the missing step was to write a proper boot sector to the usb stick, which can be done from linux with ms-sys. This works with the Win7 retail version.

Here is the complete rundown again:

Install ms-sys, if it is not in your repos get it here.

Check what device your usb media is asigned - here we will assume it is /dev/sdb. Delete all partitions, create a new one taking up all the space, set type to NTFS, and set it bootable:

# cfdisk /dev/sdb

Create NTFS filesystem:

# mkfs.ntfs -f /dev/sdb1

Mount iso and usb media:

# mount -o loop win7.iso /mnt/iso

# mount /dev/sdb1 /mnt/usb

Copy over all files:

# cp -r /mnt/iso/* /mnt/usb/

Write Windows 7 MBR on usb stick:

# ms-sys -7 /dev/sdb

...and you're done.

After all that, you probably want to back up your usb media for further installations and get rid of the iso... Just use dd: # dd if=/dev/sdb of=/win7.img and reverse if/of next time you want to put the Win7 installer onto usb.

As always, double check the device names very carefully when working with dd.

Tem lá outras soluções.

Cumps,
Manuel Rocha

[Imagem: pplware_staff.png]
Licenciado em Informática para a Saúde pela ESTG Leiria
Mestrado em Informática - Especialização em Sistemas de Informação na Universidade Portucalense
Especialização em Design Gráfico
Visitar Website de este utilizador Procurar todas as mensagens deste utilizador
Citar esta mensagem numa resposta
Colocar Resposta 


Mensagem neste Tópico
RE: Criar uma pen boot através do Ubuntu - rei007 - 26-05-2011 12:50

Saltar Fórum:


Utilizadores a ver este tópico: 1 Visitante(s)