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