Re: [gentoo-user] making bootable USB
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
Re: [gentoo-user] making bootable USB
On Sun, 31 Aug 2014 12:06:49 -0600 Joseph syscon...@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
Re: [gentoo-user] making bootable USB
On Sun, 31 Aug 2014 20:55:27 Will Tomlinson wrote: ... 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. There's actually instructions for non-Gentoo installation media: https://wiki.gentoo.org/wiki/Installation_alternatives Specifically, there can be some issues with setting up the shell environment from some environments. -- wraeth signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] making bootable USB
On 08/31/14 20:55, Will Tomlinson wrote: On Sun, 31 Aug 2014 12:06:49 -0600 Joseph syscon...@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 I run it on 1MB USB stick, it did not work: dd if=/path/to/minimal-install.iso of=/path/to/usb-drive bs=4096 sync I think the dd will work with LiveDVD but not liveCD. -- Joseph
Re: [gentoo-user] making bootable USB
On Sun, 31 Aug 2014 20:06:46 Joseph wrote: I run it on 1MB USB stick, it did not work: Just to clarify: a 1MB USB stick? Surely you don't mean an actual USB stick with 1MB capacity...? dd if=/path/to/minimal-install.iso of=/path/to/usb-drive bs=4096 sync I think the dd will work with LiveDVD but not liveCD. What path are you using for the USB drive? Are you specifying a partition (which you shouldn't)? As a working example: dd if=/home/wraeth/iso/install-amd64-minimal-20140529.iso of=/dev/sdc bs=4M sync -- wraeth signature.asc Description: This is a digitally signed message part.