Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] making bootable USB
Date: Mon, 01 Sep 2014 16:00:33
Message-Id: 20140901160043.GE15640@syscon7
In Reply to: Re: [gentoo-user] making bootable USB by "J. Roeleveld"
1 On 09/01/14 11:32, J. Roeleveld wrote:
2 >On Sunday, August 31, 2014 08:06:46 PM Joseph wrote:
3 >> On 08/31/14 20:55, Will Tomlinson wrote:
4 >> >On Sun, 31 Aug 2014 12:06:49 -0600
5 >> >
6 >> >Joseph <syscon780@×××××.com> wrote:
7 >> >> I've re-run the setup but it still doesn't work.
8 >> >>
9 >> >> df -h
10 >> >> /dev/sda1 3.8G 190M 3.6G 5% /run/media/joseph/4GB_ysa
11 >> >>
12 >> >> /dev/sda1 * 2048 7864319 3931136 b W95 FAT32
13 >
14 >Which command did you use to create the filesystem?
15
16 I used to format usb stick flash drive - bootable
17 create partition if it doesn't exist
18 # fdisk /dev/sda
19 n
20 p
21 1 enter, enter
22
23 t
24 b
25 w
26 q
27
28 format it for 1GB
29 # mkfs -t vfat /dev/sda1
30
31 format it for 4GB
32 # mkfs -t vfat -F 32 /dev/sda1
33
34 >> >> while usb not mounted:
35 >> >>
36 >> >> dd if=/usr/share/syslinux/mbr.bin of=/dev/sda
37 >> >> 0+1 records in
38 >> >> 0+1 records out
39 >> >> 440 bytes (440 B) copied, 0.00121707 s, 362 kB/s
40 >> >>
41 >> >> While usb mounted:
42 >
43 >Which command do you use to mount?
44
45 To mount USB I use from my desktop XFCE icon drop down menu after icon showed up "Mount Volume"
46
47
48 ><SNIP>
49 >
50 >> >
51 >> >Joseph, I am assuming you are trying to create an install disk? If so,
52 >> >you shouldn't have to do all these steps. I normally just download the
53 >> >minimal install ISO and write it to a USB drive with the following
54 >> >commands:
55 >> >
56 >> ># dd if=/path/to/minimal-install.iso of=/path/to/usb-drive bs=4096
57 >> ># sync
58 >> >
59 >> >You don't have to mount the USB drive. Use sync to ensure that all the
60 >> >data has actually been written to the device before you remove it.
61 >> >
62 >> >I have run across problems with some ISO files that don't play nice
63 >> >with this method, but this one seems to work well with the Gentoo
64 >> >minimal CD. Also, keep in mind that you don't really need to have the
65 >> >Gentoo install disc to install Gentoo. It's certainly EASIER to follow
66 >> >the handbook when you have the minimal install disc, but just about any
67 >> >Linux live CD will work as long as the architecture matches (chroot
68 >> >from x86 to amd64, for example, will not work). Anyway, if this is not
69 >> >what you are trying to do, maybe you can give us more details.
70 >>
71 >> I run it on 1MB USB stick, it did not work:
72 >> dd if=/path/to/minimal-install.iso of=/path/to/usb-drive bs=4096
73 >> sync
74 >>
75 >> I think the "dd" will work with LiveDVD but not liveCD.
76 >
77 >Why not use unetbootin?
78 >
79 >--
80 >Joost
81
82 I used LiveCD (SystemRescueCD)
83 http://blog.kasunbg.org/2012/02/installing-gentoo-from-livecd.html
84
85 mounted with "loop"
86 mount -o loop,ro -t iso9660 /home/joseph/Downloads/systemrescuecd-x86-4.3.0.iso /mnt/cdrom/
87
88 cd /tmp/cdrom
89 bash ./usb_inst.sh
90
91 and their scrip made the bootable USB just fine, it works.
92 But it bugs me that Gentoo instruction didn't work.
93
94 --
95 Joseph

Replies

Subject Author
Re: [gentoo-user] making bootable USB "J. Roeleveld" <joost@××××××××.org>