View previous topic :: View next topic |
Author |
Message |
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Sun Aug 31, 2014 7:13 pm Post subject: making bootable USB |
|
|
I've 4GB USB and trying to make bootable to instal Gentoo, but for some reason or another it doesn't work.
My setup:
Code: | df -h
/dev/sda1 3.8G 190M 3.6G 5% /run/media/joseph/4GB_ysa
/dev/sda1 * 2048 7864319 3931136 b W95 FAT32 |
I downloaded the latest minimal bootable ISO and mounted: Code: | mount -o loop,ro -t iso9660 /home/joseph/download/install-amd64-minimal-20140828.iso /mnt/cdrom |
while usb not mounted:
Code: | 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:
Code: | 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? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun Aug 31, 2014 7:25 pm Post subject: |
|
|
Joseph_sys,
The dd must be done with the USB not mounted.
As you have plenty of space, like the thing your mother gave you but you don't know what its for[1], make a bootable USB of SystemRescueCD.
SystemRescueCD provides a script for this.
Unlike a USB bootable Gentoo minimal, you can continue to use the free space on a bootable USB of SystemRescueCD in the normal way. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Sun Aug 31, 2014 7:50 pm Post subject: |
|
|
The SystemRescueCD is for x86 only. They don't have amd64 architecture
http://www.sysresccd.org/Download
My small ATOM-330 box doesn't have a CD so I have to install from USB. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun Aug 31, 2014 8:08 pm Post subject: |
|
|
Joseph_sys,
They provide both 64 bit and 32 bit kernels. Provided you boot one of the 64 bit kernel, it works for 64 bit installs.
The default if you just let it boot, is 32 bit.
x86 means Intel/AMD i686 and newer. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Sun Aug 31, 2014 8:27 pm Post subject: |
|
|
Yes, running their bash script: Code: | cd /tmp/cdrom
bash ./usb_inst.sh |
I was able to install it on a USB why couldn't I do it using Gentoo guide from:
https://wiki.gentoo.org/wiki/LiveUSB/HOWTO |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sun Aug 31, 2014 8:32 pm Post subject: |
|
|
Joseph_sys,
Its been a long time since I used the Gentoo *.ISO for installing. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
puchu n00b
Joined: 15 Feb 2005 Posts: 15
|
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Sun Aug 31, 2014 9:07 pm Post subject: |
|
|
This would be practical when you have a bootable disk. My HD failed and I'm getting a new SSD 480GB: Intel Pro 2500 SSDSC2BF480H501 to replace it. I think I'll be looking for information how to partition it and align sectors on my SSD |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Sun Aug 31, 2014 9:08 pm Post subject: |
|
|
NeddySeagoon wrote: | Joseph_sys,
Its been a long time since I used the Gentoo *.ISO for installing. |
If you don't use ISO what do you use, if I may ask. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
fernan82 n00b
Joined: 24 Jul 2014 Posts: 70
|
Posted: Sun Aug 31, 2014 9:37 pm Post subject: |
|
|
Joseph_sys wrote: |
If you don't use ISO what do you use, if I may ask. |
I use an Arch USB drive to install Gentoo. The 1st time I installed Gentoo I had a hard time getting it to boot from USB so I used Arch with a Gentoo tarball and I've been doing it ever since. The only time I've used the gentoo ISO is to install is on a 486 where Arch won't boot.
Now I use Unetbootin to create multi-boot USB sticks and it works with every distro I've tried, it's not a multiboot tool but if you backup the syslinux config files and install another distro in the strick you can merge the syslinux files manually and get a multiboot stick. |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Sun Aug 31, 2014 9:57 pm Post subject: |
|
|
fernan82 wrote: | Joseph_sys wrote: |
If you don't use ISO what do you use, if I may ask. |
I use an Arch USB drive to install Gentoo. The 1st time I installed Gentoo I had a hard time getting it to boot from USB so I used Arch with a Gentoo tarball and I've been doing it ever since. The only time I've used the gentoo ISO is to install is on a 486 where Arch won't boot.
Now I use Unetbootin to create multi-boot USB sticks and it works with every distro I've tried, it's not a multiboot tool but if you backup the syslinux config files and install another distro in the strick you can merge the syslinux files manually and get a multiboot stick. |
Interesting.
I just have a HD failure (first one) and I've noticed that I forgot to backup kernel ".config" file form the failed machine. So I'll be going through kernel configuration file again during installation instead of making simple 'make oldconfig'
Just a reminder to those who didn't do it, like me.
I usually keep backup of all "/etc" directory tree form each machine and keep the copy distributed (backuped) to other machine but I forgot about kernel ".config"
What other files are important, besides /home directory ? |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Tue Sep 02, 2014 12:03 am Post subject: |
|
|
fernan82 wrote: | Joseph_sys wrote: |
If you don't use ISO what do you use, if I may ask. |
I use an Arch USB drive to install Gentoo. The 1st time I installed Gentoo I had a hard time getting it to boot from USB so I used Arch with a Gentoo tarball and I've been doing it ever since. The only time I've used the gentoo ISO is to install is on a 486 where Arch won't boot.
Now I use Unetbootin to create multi-boot USB sticks and it works with every distro I've tried, it's not a multiboot tool but if you backup the syslinux config files and install another distro in the strick you can merge the syslinux files manually and get a multiboot stick. |
I've tried to use "unetbootin" for the current image I downloaded:
install-amd64-minimal-20140828.iso
the process completes OK on 1GB USB but the USB sticks fails to boot. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Tue Sep 02, 2014 12:21 am Post subject: |
|
|
Joseph_sys wrote: | I usually keep backup of all "/etc" directory tree form each machine and keep the copy distributed (backuped) to other machine but I forgot about kernel ".config"
What other files are important, besides /home directory ? | I'd say 'everything' to some degree. /var/lib/portage/world is another file you will probably miss. You probably would also want /boot to keep your working kernels around. They are not too big.
You might this interesting. It describes how to do an incremental backup so that in the case of an HD failure restoring is as simple as resyncing. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Tue Sep 02, 2014 12:33 am Post subject: |
|
|
Jaglover wrote: | What is your goal.
To install Gentoo or get the Gentoo ISO to boot from USB? |
Yes, I'm trying to install current Gentoo minimal ISO to USB stick (as my box doesn't have CD)
install-amd64-minimal-20140828.iso
I've tried Code: | isohybrid install-amd64-minimal-20140828.iso
dd if=/home/joseph/Downloads/install-amd64-minimal-20140828.iso of=/dev/sda bs=4096
sync |
but it still doesn't work.
SystemresueCD can generate bootable USB stick nothing else can; so I'm puzzled. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Tue Sep 02, 2014 12:52 am Post subject: |
|
|
The box I have is an ATOM-330 (small box), the only way I can boot is from USB stick. So I'm trying to convert Gentoo minimal ISO image and make a bootable USB stick so I can install Gentoo on a new HD. |
|
Back to top |
|
|
fernan82 n00b
Joined: 24 Jul 2014 Posts: 70
|
Posted: Tue Sep 02, 2014 1:06 am Post subject: |
|
|
Joseph_sys wrote: | I've tried to use "unetbootin" for the current image I downloaded:
install-amd64-minimal-20140828.iso
the process completes OK on 1GB USB but the USB sticks fails to boot. |
Does it gets to the boot menu? If so you may have to fix the syslinux.cfg file for some distros. Admittedly I haven't tried it with Gentoo. Knoppix will work without modification.
If you have any linux bootable stick you can use it to install Gentoo or if you're trying to install to a new HD and you already have Linux on your current drive you can do the installation from it. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Tue Sep 02, 2014 1:18 am Post subject: |
|
|
Jaglover wrote: | So what's the problem? You said you can put SytemRescueCd to this USB stick. What denies you to install Gentoo? |
I was trying to put gentoo minimal ISO on this USB and I'm not able to do so I'm puzzled by it. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Tue Sep 02, 2014 1:41 am Post subject: |
|
|
Jaglover wrote: | Hmmm ... you have been here for ten years.
You want to install Gentoo from USB.
You said you can put SysRescueCd on USB stick.
I'm puzzled now. Why don't you boot from SysRescueCd USB and install Gentoo? |
I think this will be the case. However, my new SSD drive hasn't arrive yet, so I have time to play around. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3136
|
Posted: Tue Sep 02, 2014 6:45 am Post subject: |
|
|
easy mode: download Slax as a zip archive
extrct to usb drive
run install script |
|
Back to top |
|
|
|