https://wiki.archlinux.org/api.php?action=feedcontributions&user=Svart&feedformat=atomArchWiki - User contributions [en]2024-03-28T22:30:43ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:USB_flash_installation_medium&diff=235133Talk:USB flash installation medium2012-11-12T22:04:50Z<p>Svart: </p>
<hr />
<div><br />
== Verifying the USB ==<br />
<br />
Before and after having performed the dd onto the USB disk, check that the md5sums are correct. For example:<br />
<br />
- $ md5sum archlinux-2008.06-core-x86_64.img && echo && cat md5sums.x86_64<br />
<br />
The next command will give similar results, but will also let you confirm that the data was written correctly and can be read correctly:<br />
- dd if=/dev/sdb count=661159 status=noxfer | md5sum && echo && cat md5sums.x86_64<br />
<br />
--[[User:Zatricky|Zatricky]] 06:45, 22 January 2009 (EST)<br />
<br />
== dd for Windows ==<br />
<br />
There is also '''dd''' for Windows. I tried it and it works perfectly: [http://www.chrysocome.net/dd]<br />
<br />
dd if=file.img of=\\.\e:<br />
<br />
where '''e:''' is your USB drive letter.<br />
<br />
--[[User:Liquen|Liquen]] 14:55, 4 April 2009 (EDT)<br />
<br />
== Universal USB Installer ==<br />
<br />
This method works fine for me though I got a little stuck when Arch tried to get at the boot device and couldn't find it. Turns out UUSBI's default trick is to label your device "PENDRIVE" if it formats it during the process (user-selectable). I'd like to add a note about this to the section on this page which covers the tool, but as it'd be my first change here I want to be sure I'm not going to be shouted at...<br />
<br />
[[User:Xyon|Xyon]] 09:57, 9 November 2011 (EST)<br />
:Hi and welcome! I've moved your discussion at the bottom of the page according to [[Help:Style#Discussion pages]].<br />
:Yes you can add such a note, just always remember to explain your edits in the Summary field. For more style guidelines see [[Help:Style]].<br />
:-- [[User:Kynikos|Kynikos]] 06:41, 10 November 2011 (EST)<br />
<br />
== About making the installation media without overwriting ==<br />
<br />
I'm not totally sure if I misunderstood something, but I had to change the path of the entries of the *.cfg files. For instance:<br />
<br />
INCLUDE boot/syslinux/archiso_sys.cfg<br />
<br />
became:<br />
<br />
INCLUDE syslinux/archiso_sys.cfg<br />
<br />
It was the only way it worked with the unofficial ISO x86_64 image of march 13th, 2012. Looks like the syslinux command described in the page doesn't get the path as it should. <br />
<br />
I edited all of the .cfg files, but probably only editing this ones should have been enough:<br />
<br />
archiso.cfg<br />
archiso_head.cfg<br />
archiso_sys_inc.cfg<br />
<br />
I hope it could be useful to somebody, because I spend some time with this (I even thought that was a problem with the hardware). I think it could be possible to make a simple script (or give some command lines) to patch the files once they are copied into the USB and run syslinux.<br />
<br />
Thanks !!<br />
<br />
== Recovering the USB drive afterwards ==<br />
<br />
This didn't work for me:<br />
<br />
# dd count=1 bs=512 if=/dev/zero of=/dev/sdx<br />
<br />
I tried this multiple times. No matter how I formatted the disk, 'devmon' always mounted '/dev/sdd' as /media/ARCH_whatever.<br />
<br />
I finally just zeroed as much of the disk as I thought the ISO might have been written to.<br />
<br />
# dd count=100 bs=4M if=/dev/zero of=/dev/sdx; sync<br />
<br />
That worked. I believe we need to zero MORE than just the initial 512 bytes, but I have no idea how much. Maybe 2048?<br />
<br />
At any rate, put '; sync' in there somewhere.<br />
<br />
This is what I did eventually, taking a tip from:<br />
[http://www.patriotmemory.com/forums/showthread.php?3696-HOWTO-Increase-write-speed-by-aligning-FAT32]<br />
<br />
# dd count=100 bs=4M if=/dev/zero of=/dev/sdx; sync<br />
# fdisk -H 224 -S 56 /dev/sdx<br />
<br />
(new partition, primary, 1, 2048, whatever, type of partition, c (fat32 LBA), x, beginning data sector, 256, write)<br />
<br />
# mkfs.vfat -F 32 -n volume_label -s 32 -v /dev/sdx1; sync<br />
<br />
See the link for more details on the beginning data sector.<br />
<br />
* Um, zeroing out the first 512 bytes is fine for MBR-formatted drives. Were you using GPT? Because then you would need to zero out the first 512+512+16k, and the last 16k+512. See [[GPT]]. But assuming you used {{ic|dd}}, we're talking about MBR-formatted because the ISO contains a MBR (hybrid) partition table.--[[User:DSpider|DSpider]] ([[User talk:DSpider|talk]]) 06:25, 8 September 2012 (UTC)<br />
<br />
== flush file system buffers after dd ==<br />
<br />
I found that after using dd to write the data to my USB I had to wait for the file system to actually write it to my drive. (as dd completed and returned its stats) <br />
This could cause confusion, should we add 'sync' after the dd command on the artical?<br />
<br />
== Universal USB Installer ==<br />
<br />
This method seems to not work for me, and from a little research that I did it has to do with SYSLINUX not accepting relative paths for FAT filesystems (see [https://bbs.archlinux.org/viewtopic.php?id=145749 here]). Since this would be my first edit, I thought I should run it by the discussion page before adding a note.<br />
<br />
[[User:Svart|Svart]] ([[User talk:Svart|talk]]) 22:04, 12 November 2012 (UTC)</div>Svart