But this thread's gotten way OT: *does* anyone have any idea what the .img file is that the running o/s from install.img is looking for, after the partitioning, when it's ready to install?
Possibly, but without the info I previously requested, I won't be trying to reproduce the problem.
e.g. the source file[s] and command[s] used to make your bootable USB stick.
Darr247 wrote:
But this thread's gotten way OT: *does* anyone have any idea what the .img file is that the running o/s from install.img is looking for, after the partitioning, when it's ready to install?
Possibly, but without the info I previously requested, I won't be trying to reproduce the problem.
e.g. the source file[s] and command[s] used to make your bootable USB stick.
I started by listing that: 1. I have a partitioned USB stick, 8G, with a 10M FAT32 partition, and the rest as ext3. 2. Rsync'd isolinux to the FAT partition, renamed isolinux.cfg to syslinux.cfg 3. syslinux to the USB 4. mounted DVD.iso, and rsync'd all of that to the ext3 partition. 5. mounted the second DVD, and rsync'd Packages/* to the Packages directory already there, and so have a 1 DVD, effectively, on the USB.
But the question is what image# 1 that it's looking for? It's not trying to look on the USB for an .iso, is it?
mark
But the question is what image# 1 that it's looking for? It's not trying to look on the USB for an .iso, is it?
That sounds like the bug mentioned at the bottom of the CentOS How-to: http://wiki.centos.org/HowTos/InstallFromUSBkey https://bugzilla.redhat.com/show_bug.cgi?id=568343 (around comment 5)
I recently did a network install initiated from a USB stick, but not an install from the stick (I didn't have a Linux machine handy and the 64-bit CentOS 6.2 ISO won't fit on a FAT file system). It is worth noting that the upstream vendor suggests using dd to create the USB media: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installati...
One would assume that might work if you just needed DVD 1 of CentOS.
m.roth spake thusly:
I started by listing that:
- I have a partitioned USB stick, 8G, with a 10M FAT32 partition, and the
rest as ext3. 2. Rsync'd isolinux to the FAT partition, renamed isolinux.cfg to syslinux.cfg 3. syslinux to the USB 4. mounted DVD.iso, and rsync'd all of that to the ext3 partition. 5. mounted the second DVD, and rsync'd Packages/* to the Packages directory already there, and so have a 1 DVD, effectively, on the USB.
But the question is what image# 1 that it's looking for? It's not trying to look on the USB for an .iso, is it?
mark
I did not see that synopsis in your original post (and I'm not sure I could figure out what commands you used by that). The only 2 replies to this thread I saw in digest 84 issue 9 were to John Doe.
Anyway, this is what I have in my notes, though I see you've marked this as solved...
mostly assuming sdb as the USB device.
From blank USB stick to bootable install:
yum install livecd-tools syslinux dd if=/dev/zero of=/dev/sdb bs=512 count=1000 parted /dev/sdb mklabel msdos parted /dev/sdb mkpartfs p ext2 0% 100% tune2fs -m0 /dev/sdb1
parted /dev/sdb toggle 1 boot umount /dev/sdb1 livecd-iso-to-disk <path to>/DVD.iso /dev/sdb1
mkdir /mnt/iso mount -o loop <path to>/DVD.iso /mnt/iso mkdir /media/<usb stick>/images cp /mnt/iso/images/install.img /media/<usb stick>/images/ cp <path to>/DVD.iso /media/<usb stick>/
TEST: qemu -m 512 /dev/sdb
I guess I should add yum install qemu to my notes, as I don't think that's installed by default.
But using livecd-iso-to-disk makes it NOT ask for the image file location during the install. Try it. :-)
Personally, I think they should've named it bootable-iso-tools, but everyone's probably used to the livecd-tools name by now.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of m.roth@5-cent.us Sent: Tuesday, 10 January, 2012 11:44 To: CentOS mailing list Subject: Re: [CentOS] USB install annoyances
Darr247 wrote:
But this thread's gotten way OT: *does* anyone have any idea what the .img file is that the running o/s from install.img is looking for, after the partitioning, when it's ready to install?
Possibly, but without the info I previously requested, I won't be trying to reproduce the problem.
e.g. the source file[s] and command[s] used to make your bootable USB stick.
I started by listing that:
- I have a partitioned USB stick, 8G, with a 10M FAT32 partition, and the rest as ext3.
- Rsync'd isolinux to the FAT partition, renamed isolinux.cfg to syslinux.cfg
- syslinux to the USB
- mounted DVD.iso, and rsync'd all of that to the ext3 partition.
- mounted the second DVD, and rsync'd Packages/* to the Packages directory already there, and so have a 1 DVD, effectively, on the USB.
But the question is what image# 1 that it's looking for? It's not trying to look on the USB for an .iso, is it?
mark
Ah!
Take a look at the README in the /images/ directory on the DVD media.
"The diskboot.img file is a VFAT filesystem image that can be written to a USB pendrive or other bootable media larger than a floppy. Note that booting via USB is dependent on your BIOS supporting this. It should be written to the device using dd."
diskboot.img will be the bootable filesystem (for your 10M FAT32 partition). Even tho you rsync'ed (copied) files over, there may be additional pieces missing (for example, the boot block) that are not contained as files per se. Checking the 'diskimage.img' with the file utility identifies the file type as:
x86 boot sector, code offset 0x58, OEM-ID " mkdosfs", sectors/cluster 4, root entries 512, sectors 24576 (volum es <=32 MB) , Media descriptor 0xf8, sectors/FAT 24, heads 64, serial number 0x4d9277bd, label: " ", FAT (16 bit)
It may contain another filesystem after that, but the very first part is a bootblock.
Think of 'diskboot.img' as the /boot partition and 'stage2.img' as the / (root) partition, for the Linux operating system environment in which the installer runs. The installer runs in a text-mode for a little bit, but switches over to a graphical (or near-graphical) version on the second stage (where you will see all the packages being installed). The graphical version of the installer relies on this second stage heavily, as the filesystem contains most of the libraries (and all of the fonts) required to run X/Windows environment.
Poking around the DVD media, shows a kernel (vmlinuz) and an initrd.img in the /isolinux directory, but very little else to actually run a Linux operating system (X/Windows, and the command line shell interpreters). The second stage contains a pre-built root filesystems that contains the bare minimum to get a system up and running so that RPM can operate, as well as a minimal X/Windows environment for the graphical version of the installer, LVM and other partitioning tools. It may even contain files that are not copied over to the hard drive but are required by the installer itself to run.
Hope this helps explain it :-)
Cheers!
Simba Engineering