Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 05-20-2009, 11:03 AM   #1
LQ Newbie
Registered: May 2009
Posts: 3

Rep: Reputation: 0
Angry CentOS 5.3 installation from an USB Pendrive - ks - %post mount problem

What I have solved:

8 GB Pendrive
FAT32 (vfat) bootable
CentOS 1-7.iso's are in directory /CentOS

kickstart is called with:
append ks=hd:sdd1:/gatew.cfg initrd=initrd.img

( what the hell is repo= good for? this does nothing at all!! )

# cdrom
harddrive --partition sdd1 --dir CentOS

installation is PERFECT!

mkdir /tmp/one
# mount -t iso9660 /tmp/cdrom /tmp/one (works fine with a CDROM!)

# mount -t vfat /dev/sdd1 /tmp/one
mount -t vfat /tmp/sdd1 /tmp/one IS THE BEAST

I CAN'T GET THIS TO WORK and I can' find and detailed document's on this

Thank you
Old 05-20-2009, 05:57 PM   #2
LQ Newbie
Registered: May 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Smile CentOS 5.3 installation from USB-Pendrive - SOLVED

OK Folks - HOWTO do this

Create a bootable FAT32 (vfat) Partition on your Pendrive
download syslinux-3.80.tar.gz <DIR> win32

I did it on WinXP -> syslinux.exe G:

get the CentOS CD's 1 t0 7.iso
(NOT the DVD - FAT 32 is limited with 4GB Filesize!)

put them on the Pendrive in a directory called CentOS (i.e)

From the first CD get the isolinux directory

copy it to the Pendrive and rename it syslinux
dive in syslinux
rename all iso... files to sys...

-> open syslinux.cfg

Create an entry
kernel vmlinuz
append ks=hd:sdd1:/ks.cfg initrd=initrd.img
-> rename the anaconda-ks.cfg to ks and put it in Pendrive's root

within ks.cfg

comment cdrom (IMPORTANT!!)
# cdrom

# add a line
# kickstart will look for the install iso's there
# ONLY iso's NO directory structure!!!
harddrive --partition sdd1 --dir CentOS

%post --nochroot

# if installing from a CD/DVD you have to use
mkdir /tmp/one
mount -t iso9660 /tmp/cdrom /tmp/one

# to mount the USB for filecopy operations you have to use
mount /dev/sdd1 /tmp/one

# to copy something use this syntax
mkdir -p /mnt/sysimage/root/postinstall
cp /postinstall/gatew/postinstall.conf /mnt/sysimage/root/postinstall/
cp /sdd1/postinstall/gatew/ /mnt/sysimage/root/postinstall/

good luck


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.1 does not find cdrom nor pendrive after installation Pastorino Linux - Distributions 4 05-02-2008 05:20 PM
How to detect and mount a USB (Pendrive) lali.p Slackware 14 03-01-2007 08:51 AM
USB PenDrive and 2.6.3 kernel vfat mount problem jarro Linux - Hardware 0 06-12-2004 06:23 PM
usb pendrive mount eg72 Linux - Hardware 1 05-16-2004 12:20 PM
mount hangs with USB pendrive dex7er Slackware 2 11-24-2003 07:58 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration