CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - General Support
  [SOLVED] Creating a CentOS startup USB

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  suaswe
      suaswe
[SOLVED] Creating a CentOS startup USB
#1
Newbie
Joined: 2012/2/21
From
Posts: 6
Greetings, CenOS forum peeps!

I've spent two days running attempting to create a startup USB that will work on my new shiny Aspire Revo 3700, unfortunately with not a lot of luck. Basically, I started by following the guide under http://wiki.centos.org/HowTos/InstallFromUSBkey, however encountered various problems including that 10meg isn't large enough to fit the isolinux directory, that the system (which comes installed with Linpus Linux) isn't able to run 'syslinux -i', and that I'm not clear on what to put in the grub.conf file the author advises me to create.

In any case, I have now made a small amount of progress by following the guide available at http://blog.chenhow.net/2010/07/23/linux/create-bootable-usb-drive-for-centos-installation-2/. The guide follows roughly the CentOS Wiki's suggestions on partitioning, below is the gist:

-create a fat32 partition (~200meg, /dev/sdb1 in my case) and an ext3 partition (the remainder, /dev/sdb2)
-add boot flag to fat32 partition
-create filesystems using mkdosfs and mkfs
-cp -R everything from the ISO image's 'isolinux' directory (which I had mounted to /media/DVD) onto the fat32 partition and rename the isolinux.cfg file within to syslinux.cfg
-run 'syslinux /dev/sdb1'
-mount /dev/sdb1 to /media/USB and run 'grub-install --root-directory=/media/USB /dev/sdb, end result of which was:
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
-amend grub.conf file as per instructions

I am now able to boot from the USB drive, which is great - however, the guide does not cover what to do with the ISO image. When attempting to install using the USB drive without doing anything else (e.g. with no .iso or content thereof present) the installer gets past the selection of language and keyboard layout, arriving at the request for the "installation image", which on the next page is revealed as 'install.img'. I have noticed this file in the 'images' directory of the ISO, so mounted the ISO and copied the contents to the ext3 partition on the USB drive, booted from it, got to that stage and when it asks for the directory where the file is present, I opted for F2 to select the location manually. However, when I select the location containing the images file, the installation fails with "Install exited abnormally 1 1".

Has anyone experienced this problem, and if so, how was it eventually resolved? Thanks all!

Please note: I have attempted to attach the getinfo.sh script data, however I am getting the following error: "Failed opening directory with write permission: /var/www/html/oldwebcopy.centos.org/uploads/newbb"

Therefore, please find pasted below some possibly relevant info:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         261     2096451   83  Linux
/dev/sda2             262        3525    26218080   83  Linux

Disk /dev/sdb: 8004 MB, 8004304896 bytes
247 heads, 62 sectors/track, 1020 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          14      107167    1  FAT12
/dev/sdb2              15         908     6845358   83  Linux
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              25G   11G   13G  46% /
none                  1.5G   12K  1.5G   1% /dev/shm
/root/Downloads/CentOS-6.2-i386-bin-DVD1.iso
                      3.6G  3.6G     0 100% /media/DVD
/dev/sdb2             6.5G  2.1G  4.1G  35% /media/USB
Posted on: 2012/2/25 6:19
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Creating a CentOS startup USB
#2
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Please review Readme First to see why your upload failed and what to do about it.


Not sure exactly where you are going wrong, but you essentially want to do a Hard Drive Installation with the ISO image on /dev/sdb2.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/2/25 15:05
Create PDF from Post Print
Top
  •  suaswe
      suaswe
[SOLVED] Creating a CentOS startup USB
#3
Newbie
Joined: 2012/2/21
From
Posts: 6
Hi there,

Thanks for that - sorry, hadn't seen the bit about attachments! For future ref, the output from './getinfo.sh disk' can now be found under http://pastebin.centos.org/38428.

In any case, good news: the bootable USB drive is finally working! Used a slightly larger USB drive this time but otherwise set it up in the same way:

- downloaded CentOS-6.2-i386-bin-DVD1.iso and CentOS-6.2-i386-bin-DVD2.iso from MirrorService.org
- made USB bootable and installed Linux on the FAT32 partition following Chenhow.net's guide - initially I forgot to run 'syslinux /dev/sdb1', which resulted in error 'kernel /vmlinuz - 15: file not found'
- set up the ext3 partition for a hard drive installation (thanks pschaff!), where as per instructions there I found that I had to remove all files aside from install.img to allow it to work; I also moved both DVD1 and DVD2 to the ext3 partition - not sure however if this was necessary or if only DVD1 is needed
- during install, when installer was looking for install.img, I first of all kept in mind that sda and sdb were swapped round (because of boot order maybe?) and simply selected sda - this time it was found without pointing to the directory, and I did not get an 'installer exited abnormally 1.1" this time; GUI started and I was a very happy suaswe indeed!

Cheers all.

PS. I can only see an option to type "Solved" in this reply - is that how a thread is marked solved?
Posted on: 2012/2/26 21:05
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: [SOLVED] Creating a CentOS startup USB
#4
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Yes - per Readme First Section 13. Marking the topic appropriately.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/2/27 3:37
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com