I'm trying to set up a custom installation of CentOS using kickstart i tried many thing from how to's and tutorial web pages but nothing worked ;(
Here is my USB key tree : |-- CentOS | |-- all my rpms | `-- last rpm |-- TRANS.TBL |-- boot.cat |-- boot.msg |-- custom.iso |-- general.msg |-- images | |-- README | |-- TRANS.TBL | |-- boot.iso | |-- diskboot.img | |-- minstg2.img | |-- pxeboot | | |-- README | | |-- TRANS.TBL | | |-- initrd.img | | `-- vmlinuz | |-- stage2.img | `-- xen | |-- TRANS.TBL | |-- initrd.img | `-- vmlinuz |-- initrd.img |-- ks | |-- TRANS.TBL | `-- ks.cfg |-- ldlinux.sys |-- memtest |-- options.msg |-- package-ipbx | `-- packages for postinstall |-- param.msg |-- repodata | |-- TRANS.TBL | |-- comps.xml | |-- filelists.xml.gz | |-- other.xml.gz | |-- primary.xml.gz | `-- repomd.xml |-- rescue.msg |-- splash.lss |-- syslinux.cfg |-- syslinux.cfg~ `-- vmlinuz
I install syslinux on the USB key and also use the following command :
dd if=/dev/sdb of=/tmp/mbr_sdb.bin bs=512 count=1
I tried to install CentOS from my USB key but it says :
Title : "Missing ISO 9660" Content : "The installer has tried to mount image #1,but cannot find it on the hard drive ... "
From: Georghy fusco@wanagain.net
I'm trying to set up a custom installation of CentOS using kickstart i tried many thing from how to's and tutorial web pages but nothing worked ;( ... I tried to install CentOS from my USB key but it says : Title : "Missing ISO 9660" Content : "The installer has tried to mount image #1,but cannot find it on the hard drive ... "
Tried http://wiki.centos.org/HowTos/InstallFromUSBkey ?
JD
John Doe a écrit :
From: Georghy fusco@wanagain.net
I'm trying to set up a custom installation of CentOS using kickstart i tried many thing from how to's and tutorial web pages but nothing worked ;( ... I tried to install CentOS from my USB key but it says : Title : "Missing ISO 9660" Content : "The installer has tried to mount image #1,but cannot find it on the hard drive ... "
Tried http://wiki.centos.org/HowTos/InstallFromUSBkey ?
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
yes but it doesn't work
what i have done :
creating a fat 32 partition on my USB key (4 GB) tagging it with boot flag
copy MBR on the key :
dd if=/dev/sdb of=/tmp/mbr_sdb.bin bs=512 count=1
Using syslinux :
syslinux /dev/sdb1
Here is my key tree : |-- CentOS | |-- all my rpms | `-- last rpm |-- TRANS.TBL |-- boot.cat |-- boot.msg |-- custom.iso |-- general.msg |-- images | |-- README | |-- TRANS.TBL | |-- boot.iso | |-- diskboot.img | |-- minstg2.img | |-- pxeboot | | |-- README | | |-- TRANS.TBL | | |-- initrd.img | | `-- vmlinuz | |-- stage2.img | `-- xen | |-- TRANS.TBL | |-- initrd.img | `-- vmlinuz |-- initrd.img |-- ks | |-- TRANS.TBL | `-- ks.cfg |-- ldlinux.sys |-- memtest |-- options.msg |-- package-ipbx | `-- packages for postinstall |-- param.msg |-- repodata | |-- TRANS.TBL | |-- comps.xml | |-- filelists.xml.gz | |-- other.xml.gz | |-- primary.xml.gz | `-- repomd.xml |-- rescue.msg |-- splash.lss |-- syslinux.cfg |-- syslinux.cfg~ `-- vmlinuz
Attachment : ks.cfg and syslinux.cfg
Everithing is fine 'till anaconda start and try to copy rpm packages
Using kickstart configuration or manual (text) configuration show the same error
From: Georghy fusco@wanagain.net
what i have done : creating a fat 32 partition on my USB key (4 GB) tagging it with boot flag copy MBR on the key : dd if=/dev/sdb of=/tmp/mbr_sdb.bin bs=512 count=1 Using syslinux : syslinux /dev/sdb1
Your dd command seems to be reversed... You are taking the MBR from the key and putting it into a file... Instead of: dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb Anyway, from your error message, you seem to start to boot... Did you modify your syslinux.cfg to have something like this? append initrd=initrd.img ks=hd:sdb2:/ks/ks.cfg method=hd:sdb2:/where_my_centos_iso_files_are Did you copy the CentOS ISO file(s) in /where_my_centos_iso_files_are/?
JD
John Doe a écrit :
From: Georghy fusco@wanagain.net
what i have done : creating a fat 32 partition on my USB key (4 GB) tagging it with boot flag copy MBR on the key : dd if=/dev/sdb of=/tmp/mbr_sdb.bin bs=512 count=1 Using syslinux : syslinux /dev/sdb1
Your dd command seems to be reversed... You are taking the MBR from the key and putting it into a file... Instead of: dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb Anyway, from your error message, you seem to start to boot... Did you modify your syslinux.cfg to have something like this? append initrd=initrd.img ks=hd:sdb2:/ks/ks.cfg method=hd:sdb2:/where_my_centos_iso_files_are Did you copy the CentOS ISO file(s) in /where_my_centos_iso_files_are/?
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I had to ks.cfg : ignoredisk --drives=sdb because we don't want anaconda to write mbr on the key
harddrive --partition=sdb1 --dir=iso sdb1 as one FAT32 partition so it's sdb1 in the directory iso
bootloader --location=mbr --driveorder=sda,sdb
on syslinux.cfg :
label kickstart kernel vmlinuz append initrd=initrd.img ks=hd:sdb1:/ks/ks.cfg method=hd:sdb1:/iso
From: Georghy fusco@wanagain.net
I had to ks.cfg : ignoredisk --drives=sdb because we don't want anaconda to write mbr on the key
harddrive --partition=sdb1 --dir=iso sdb1 as one FAT32 partition so it's sdb1 in the directory iso
bootloader --location=mbr --driveorder=sda,sdb
on syslinux.cfg :
label kickstart kernel vmlinuz append initrd=initrd.img ks=hd:sdb1:/ks/ks.cfg method=hd:sdb1:/iso
If I understand correctly, you did not do 2 partitions like in the wiki... Never tried with only one big Fat32 partition... so might not be able to help you. I don't see the /iso directory in your tree, and again neither the CentOS iso files.
JD
John Doe a écrit :
From: Georghy fusco@wanagain.net
I had to ks.cfg : ignoredisk --drives=sdb because we don't want anaconda to write mbr on the key
harddrive --partition=sdb1 --dir=iso sdb1 as one FAT32 partition so it's sdb1 in the directory iso
bootloader --location=mbr --driveorder=sda,sdb
on syslinux.cfg :
label kickstart kernel vmlinuz append initrd=initrd.img ks=hd:sdb1:/ks/ks.cfg method=hd:sdb1:/iso
If I understand correctly, you did not do 2 partitions like in the wiki... Never tried with only one big Fat32 partition... so might not be able to help you. I don't see the /iso directory in your tree, and again neither the CentOS iso files.
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I am trying to create 2 diffrent partition like in the wiki the first one fat32 10Mio the second one ext2 the rest
on the fat32 partition i only have syslinux.cfg on the ext2 partition the following tree :
/media/disk-1 |-- CentOS | `-- all my rpms |-- TRANS.TBL |-- boot.cat |-- boot.msg |-- general.msg |-- images | |-- README | |-- TRANS.TBL | |-- boot.iso | |-- diskboot.img | |-- minstg2.img | |-- pxeboot [error opening dir] | |-- stage2.img | `-- xen [error opening dir] |-- initrd.img |-- iso | `-- custom.iso |-- ks | |-- TRANS.TBL | `-- ks.cfg |-- ldlinux.sys |-- lost+found |-- memtest |-- options.msg |-- package-ipbx | `-- post install packages |-- param.msg |-- repodata | |-- TRANS.TBL | |-- comps.xml | |-- filelists.xml.gz | |-- other.xml.gz | |-- primary.xml.gz | `-- repomd.xml |-- rescue.msg |-- splash.lss |-- syslinux.cfg `-- vmlinuz
My CentOS iso file is : custom.iso It is a custom CentOS distro that i have made and it worked perfectly on my Virtual Machine on virtual box
sorry for my Directory tree it wasn't up to date
Am I right ?
From: Georghy fusco@wanagain.net
harddrive --partition=sdb1 --dir=iso append initrd=initrd.img ks=hd:sdb1:/ks/ks.cfg method=hd:sdb1:/iso
I am trying to create 2 diffrent partition like in the wiki the first one fat32 10Mio the second one ext2 the rest on the fat32 partition i only have syslinux.cfg on the ext2 partition the following tree : ...
I am confused... If you have indeed a second partition where you did put your iso, you should point to sdb2 and not sdb1... In my syslinux.cfg (which is on sda1): append initrd=initrd.img ks=hd:sda2:/ks.cfg method=hd:sda2:/centos In my kickstart: harddrive --partition=sda2 --dir=/centos So it boots on sda1, but the iso files and kickstart stuff are on sda2...
My CentOS iso file is : custom.iso It is a custom CentOS distro that i have made and it worked perfectly on my Virtual Machine on virtual box
Does the iso work or the usb key? quite different... How does the installer know that the RPMs are in custom.iso...?
No such file or directory 'sdb1:vfat/iso'
vfat/iso?
JD
John Doe a écrit :
From: Georghy fusco@wanagain.net
harddrive --partition=sdb1 --dir=iso append initrd=initrd.img ks=hd:sdb1:/ks/ks.cfg method=hd:sdb1:/iso
I am trying to create 2 diffrent partition like in the wiki the first one fat32 10Mio the second one ext2 the rest on the fat32 partition i only have syslinux.cfg on the ext2 partition the following tree : ...
I am confused... If you have indeed a second partition where you did put your iso, you should point to sdb2 and not sdb1... In my syslinux.cfg (which is on sda1): append initrd=initrd.img ks=hd:sda2:/ks.cfg method=hd:sda2:/centos In my kickstart: harddrive --partition=sda2 --dir=/centos So it boots on sda1, but the iso files and kickstart stuff are on sda2...
You are right it is sdb2 not sdb1
My CentOS iso file is : custom.iso It is a custom CentOS distro that i have made and it worked perfectly on my Virtual Machine on virtual box
Does the iso work or the usb key? quite different... How does the installer know that the RPMs are in custom.iso...?
the iso work on a VM, i don't know if it work on a USB key
No such file or directory 'sdb1:vfat/iso'
vfat/iso?
JD
Previously i used the iso dir for my custom.iso
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Now I'm trying a simple task i only want to install package wich are in the first cd-rom of CentOS (not my custom.iso), the official iso but I just want the package in the first CD
after that I'll use a script which install the other packages I wanted instead of doing it during installation
From: Georghy fusco@wanagain.net
Now I'm trying a simple task i only want to install package wich are in the first cd-rom of CentOS (not my custom.iso), the official iso but I just want the package in the first CD after that I'll use a script which install the other packages I wanted instead of doing it during installation
Use: %packages @base But I don't know if base packages are all located on the first CD... Why not put all the CD isos (or DVD)? Is you usb key too small?
JD
John Doe a écrit :
From: Georghy fusco@wanagain.net
Now I'm trying a simple task i only want to install package wich are in the first cd-rom of CentOS (not my custom.iso), the official iso but I just want the package in the first CD after that I'll use a script which install the other packages I wanted instead of doing it during installation
Use: %packages @base But I don't know if base packages are all located on the first CD... Why not put all the CD isos (or DVD)? Is you usb key too small?
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
yes my USB is too small, my USB capacity is about 4GB the dvd iso is about 4GB and we want to add additional packages on the USB Stick
From: Georghy fusco@wanagain.net
yes my USB is too small, my USB capacity is about 4GB the dvd iso is about 4GB and we want to add additional packages on the USB Stick
Another option... would be to buy an 8GB key (around 15€)
JD
John Doe a écrit :
From: Georghy fusco@wanagain.net
yes my USB is too small, my USB capacity is about 4GB the dvd iso is about 4GB and we want to add additional packages on the USB Stick
Another option... would be to buy an 8GB key (around 15€)
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I want it but it's my workoffice stuff not mine :(
John Doe a écrit :
From: Georghy fusco@wanagain.net
yes my USB is too small, my USB capacity is about 4GB the dvd iso is about 4GB and we want to add additional packages on the USB Stick
Another option... would be to buy an 8GB key (around 15€)
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
It works :) all I have to do now is configuring a local repos and install package from there thanks for your help :)
John Doe a écrit :
From: Georghy fusco@wanagain.net
Now I'm trying a simple task i only want to install package wich are in the first cd-rom of CentOS (not my custom.iso), the official iso but I just want the package in the first CD after that I'll use a script which install the other packages I wanted instead of doing it during installation
Use: %packages @base But I don't know if base packages are all located on the first CD... Why not put all the CD isos (or DVD)? Is you usb key too small?
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I use
%packages @base @core
core package are needed, aren't they ?
John Doe a écrit :
From: Georghy fusco@wanagain.net
Now I'm trying a simple task i only want to install package wich are in the first cd-rom of CentOS (not my custom.iso), the official iso but I just want the package in the first CD after that I'll use a script which install the other packages I wanted instead of doing it during installation
Use: %packages @base But I don't know if base packages are all located on the first CD... Why not put all the CD isos (or DVD)? Is you usb key too small?
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
My install work with these options and kickstart works too :) but i got a probleme with grub it seems that it doesn't write the good partition :(
In my kickstart file :
ignoredisk --drives=sdb bootloader --driveorder=sdb,sda --location=mbr
but I think I wasn't right
it is : bootloader --driveorder=sda,sdb --location=mbr
instead of : bootloader --driveorder=sdb,sda --location=mbr
John Doe a écrit :
From: Georghy fusco@wanagain.net
what i have done : creating a fat 32 partition on my USB key (4 GB) tagging it with boot flag copy MBR on the key : dd if=/dev/sdb of=/tmp/mbr_sdb.bin bs=512 count=1 Using syslinux : syslinux /dev/sdb1
Your dd command seems to be reversed... You are taking the MBR from the key and putting it into a file... Instead of: dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb Anyway, from your error message, you seem to start to boot... Did you modify your syslinux.cfg to have something like this? append initrd=initrd.img ks=hd:sdb2:/ks/ks.cfg method=hd:sdb2:/where_my_centos_iso_files_are Did you copy the CentOS ISO file(s) in /where_my_centos_iso_files_are/?
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
when i'm on the error page (Title : "Missing ISO 9660" Content : "The installer has tried to mount image #1,but cannot find it on the hard drive ... " )
I have 2 buttons if i try "retry" ones i got some informations that maybe intresting :
No such file or directory 'sdb1:vfat/iso'
John Doe a écrit :
From: Georghy fusco@wanagain.net
I'm trying to set up a custom installation of CentOS using kickstart i tried many thing from how to's and tutorial web pages but nothing worked ;( ... I tried to install CentOS from my USB key but it says : Title : "Missing ISO 9660" Content : "The installer has tried to mount image #1,but cannot find it on the hard drive ... "
Tried http://wiki.centos.org/HowTos/InstallFromUSBkey ?
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
PS: my usb stick is recognized as /dev/sdb, and the hard drive I wanted to install CentOS is /dev/sda