public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Will Tomlinson <watomlinson@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] making bootable USB
Date: Sun, 31 Aug 2014 20:55:27 -0400	[thread overview]
Message-ID: <20140831205527.4ea565c2@joel.rcfcuxp.local> (raw)
In-Reply-To: <20140831180648.GA4505@syscon2>

On Sun, 31 Aug 2014 12:06:49 -0600
Joseph <syscon780@gmail.com> wrote:

> I've re-run the setup but it still doesn't work.
> 
> df -h
> /dev/sda1       3.8G  190M  3.6G   5% /run/media/joseph/4GB_ysa
> 
> /dev/sda1 *     2048   7864319 3931136   b W95 FAT32
> 
> while usb not mounted:
> 
> dd if=/usr/share/syslinux/mbr.bin of=/dev/sda
> 0+1 records in
> 0+1 records out
> 440 bytes (440 B) copied, 0.00121707 s, 362 kB/s
> 
> While usb mounted:
> 
> cp -r /mnt/cdrom/* /run/media/joseph/4GB_ysa
> mv /run/media/joseph/4GB_ysa/isolinux/* /run/media/joseph/4GB_ysa
> mv /run/media/joseph/4GB_ysa/isolinux.cfg /run/media/joseph/4GB_ysa/syslinux.cfg
> rm -rf /run/media/joseph/4GB_ysa/isolinux*
> mv /run/media/joseph/4GB_ysa/memtest86 /run/media/joseph/4GB_ysa/memtest
> sed -i -e "s:cdroot:cdroot slowusb:" -e "s:kernel memtest86:kernel
> memtest:" /run/media/joseph/4GB_ysa/syslinux.cfg
> umount /run/media/joseph/4GB_ysa syslinux /dev/sda1
> 
> Does the "dd if=/usr/share/syslinux/mbr.bin of=/dev/sda"
> has to be run when USB is mounted or unmounted?
>
 
Joseph, I am assuming you are trying to create an install disk? If so,
you shouldn't have to do all these steps. I normally just download the
minimal install ISO and write it to a USB drive with the following
commands:

# dd if=/path/to/minimal-install.iso of=/path/to/usb-drive bs=4096
# sync

You don't have to mount the USB drive. Use sync to ensure that all the
data has actually been written to the device before you remove it.

I have run across problems with some ISO files that don't play nice
with this method, but this one seems to work well with the Gentoo
minimal CD. Also, keep in mind that you don't really need to have the
Gentoo install disc to install Gentoo. It's certainly EASIER to follow
the handbook when you have the minimal install disc, but just about any
Linux live CD will work as long as the architecture matches (chroot
from x86 to amd64, for example, will not work). Anyway, if this is not
what you are trying to do, maybe you can give us more details.
-- 
Will Tomlinson


  reply	other threads:[~2014-09-01  0:56 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-30  5:37 [gentoo-user] making bootable USB Joseph
2014-08-30  6:15 ` J. Roeleveld
2014-08-30  6:32   ` Joseph
2014-08-30  7:08     ` J. Roeleveld
2014-08-31 18:06 ` Joseph
2014-09-01  0:55   ` Will Tomlinson [this message]
2014-09-01  1:28     ` wraeth
2014-09-01  2:06     ` Joseph
2014-09-01  2:16       ` wraeth
2014-09-01  6:48         ` Joseph
2014-09-01  7:18           ` Alan McKinnon
2014-09-01 15:44             ` Joseph
2014-09-01  8:02           ` Peter Humphrey
2014-09-01 15:45             ` Joseph
2014-09-01  9:46           ` wraeth
2014-09-01  9:32       ` J. Roeleveld
2014-09-01 16:00         ` Joseph
2014-09-02 11:20           ` J. Roeleveld
2014-09-01  8:51     ` Neil Bothwick
2014-09-01  9:13       ` Mick
2014-09-01 10:12         ` Neil Bothwick
2014-09-01  9:42       ` wraeth
2014-09-01  9:58         ` Neil Bothwick
2014-09-01 16:29         ` Joseph
2014-09-01 16:38           ` Christopher Jones
2014-09-01 16:41             ` Christopher Jones
2014-09-01 19:12               ` Joseph
2014-09-01 20:05                 ` Neil Bothwick
2014-09-01 18:53             ` Christian Kruse
2014-09-01 19:50               ` Will Tomlinson
2014-09-01 23:42                 ` Joseph
2014-09-02  0:08                   ` Neil Bothwick
2014-09-02  0:26                     ` Joseph
2014-09-02  5:36                       ` Mick
2014-09-02  5:55                         ` Joseph
2014-09-02  6:23                           ` Dale
2014-09-02  7:21                             ` Christian Kruse
2014-09-02  7:35                             ` Neil Bothwick
2014-09-02  8:00                               ` Dale
2014-09-02  9:56                                 ` Mick
2014-09-02 10:16                                   ` Dale
2014-09-02 13:10                                   ` Joseph
2014-09-02 13:26                                     ` Neil Bothwick
2014-09-02  9:38                                       ` Alec Ten Harmsel
2014-09-02 13:38                                     ` thegeezer
2014-09-02 14:10                                       ` Joseph
2014-09-02 14:40                                         ` Peter Humphrey
2014-09-02 14:42                                         ` Neil Bothwick
2014-09-02 16:16                                         ` thegeezer
2014-09-02 22:32                                         ` Frank Steinmetzger
2014-09-02 14:46                                     ` Alan McKinnon
2014-09-02 16:50                                       ` Joseph
2014-09-02 17:21                                         ` Neil Bothwick
2014-09-02 18:12                                           ` Joseph
2014-09-02 21:09                                             ` Neil Bothwick
2014-09-02 18:17                                         ` J. Roeleveld
2014-09-02 21:55                                         ` Walter Dnes
2014-09-02 12:29                           ` Matti Nykyri
2014-09-01 20:13               ` Neil Bothwick
2014-09-01 21:58                 ` Alan McKinnon
2014-09-01 22:03                   ` Neil Bothwick
2014-09-01 22:14                     ` Mick
2014-09-02 22:27                       ` Frank Steinmetzger
2014-09-02 22:43                         ` Neil Bothwick
2014-09-02 22:49                         ` Dale
2014-09-01 23:51                     ` Joseph
2014-09-02  0:09                       ` Neil Bothwick
2014-09-02  0:29                         ` Joseph
2014-09-02  0:36                           ` wraeth
2014-09-02  9:48                 ` Christian Kruse
2014-09-01 20:05           ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140831205527.4ea565c2@joel.rcfcuxp.local \
    --to=watomlinson@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox