Gentoo Archives: gentoo-user

From: Will Tomlinson <watomlinson@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] making bootable USB
Date: Mon, 01 Sep 2014 00:56:05
Message-Id: 20140831205527.4ea565c2@joel.rcfcuxp.local
In Reply to: Re: [gentoo-user] making bootable USB by Joseph
1 On Sun, 31 Aug 2014 12:06:49 -0600
2 Joseph <syscon780@×××××.com> wrote:
3
4 > I've re-run the setup but it still doesn't work.
5 >
6 > df -h
7 > /dev/sda1 3.8G 190M 3.6G 5% /run/media/joseph/4GB_ysa
8 >
9 > /dev/sda1 * 2048 7864319 3931136 b W95 FAT32
10 >
11 > while usb not mounted:
12 >
13 > dd if=/usr/share/syslinux/mbr.bin of=/dev/sda
14 > 0+1 records in
15 > 0+1 records out
16 > 440 bytes (440 B) copied, 0.00121707 s, 362 kB/s
17 >
18 > While usb mounted:
19 >
20 > cp -r /mnt/cdrom/* /run/media/joseph/4GB_ysa
21 > mv /run/media/joseph/4GB_ysa/isolinux/* /run/media/joseph/4GB_ysa
22 > mv /run/media/joseph/4GB_ysa/isolinux.cfg /run/media/joseph/4GB_ysa/syslinux.cfg
23 > rm -rf /run/media/joseph/4GB_ysa/isolinux*
24 > mv /run/media/joseph/4GB_ysa/memtest86 /run/media/joseph/4GB_ysa/memtest
25 > sed -i -e "s:cdroot:cdroot slowusb:" -e "s:kernel memtest86:kernel
26 > memtest:" /run/media/joseph/4GB_ysa/syslinux.cfg
27 > umount /run/media/joseph/4GB_ysa syslinux /dev/sda1
28 >
29 > Does the "dd if=/usr/share/syslinux/mbr.bin of=/dev/sda"
30 > has to be run when USB is mounted or unmounted?
31 >
32
33 Joseph, I am assuming you are trying to create an install disk? If so,
34 you shouldn't have to do all these steps. I normally just download the
35 minimal install ISO and write it to a USB drive with the following
36 commands:
37
38 # dd if=/path/to/minimal-install.iso of=/path/to/usb-drive bs=4096
39 # sync
40
41 You don't have to mount the USB drive. Use sync to ensure that all the
42 data has actually been written to the device before you remove it.
43
44 I have run across problems with some ISO files that don't play nice
45 with this method, but this one seems to work well with the Gentoo
46 minimal CD. Also, keep in mind that you don't really need to have the
47 Gentoo install disc to install Gentoo. It's certainly EASIER to follow
48 the handbook when you have the minimal install disc, but just about any
49 Linux live CD will work as long as the architecture matches (chroot
50 from x86 to amd64, for example, will not work). Anyway, if this is not
51 what you are trying to do, maybe you can give us more details.
52 --
53 Will Tomlinson

Replies

Subject Author
Re: [gentoo-user] making bootable USB wraeth <wraeth@×××××××××.au>
Re: [gentoo-user] making bootable USB Joseph <syscon780@×××××.com>
Re: [gentoo-user] making bootable USB Neil Bothwick <neil@××××××××××.uk>