While I was using CentOS 6, I map the whole flash drive as a disk in VMWare.
Then I install CentOS on it.
This flash drive can boot on any computer.
I did the same thing with CentOS 7.
It can only boot from VMWare.
While I put it into another computer, it can show the boot screen, but cannot boot into OS.
I use blkid to see the disk, I cannot find the flash drive.
It looks like USb storage driver is not loaded.
Any ideas what I should do?
Cannot boot CentOS on usb flash drive
Re: Cannot boot CentOS on usb flash drive
Try editing /etc/dracut.conf and changing it so that it says hostonly = no. You'll then need to rebuild the initramfs and make sure you have enough space in /boot to cater for multiple copies of a ~40-50MB file.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Cannot boot CentOS on usb flash drive
Thanks, it works!
But change hostonly in /etc/dracut.conf is useless because it will be overridden by /usr/lib/dracut/dracut.conf.d/01-dist.conf
So simply run dracut -N --force
But change hostonly in /etc/dracut.conf is useless because it will be overridden by /usr/lib/dracut/dracut.conf.d/01-dist.conf
So simply run dracut -N --force
Re: Cannot boot CentOS on usb flash drive
That sounds like a bug worthy of reporting on bugzilla.redhat.com - /etc/dracut.conf is meant for users to be able to override the other defaults, it shouldn't be ignored.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke