Gentoo Archives: gentoo-user

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