LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-17-2008, 04:40 AM   #1
infernal211283_
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
Creating a continuous 2cd custom installer using Centos?


Hi,
I currently have a task to create a continuous installer with 2 or more CDs.

Anaconda installer does it and I think that there shouldn't be a problem to adopt it.
I guess the anaconda installer knows which cd is required according to the files located on the CDs set, and knows when a correct cd was inserted according to .discinfo...

My setup will be much simpler though:
I want the first cd to be the one that deploys the OS on a server using kickstart, and when it's done, the user will be asked to switch the cds.

Are there tools or system calls that I can use to be able to tell:
-) if a cd is in a tray,
-) when the tray changes it's state from closed to open,
-) when the tray changes it's state from open to closed ?

Any help will be much appreciated,

Thanks,
Dan.
 
Old 12-17-2008, 05:44 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,541
Blog Entries: 54

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by infernal211283_ View Post
if a cd is in a tray,
Wouldn't a check of /proc/ide/devicename/capacity return >0? Or else look in /proc/sys/dev/cdrom/ for disk or tray info? Or else figure something out with the CDROM_DRIVE_STATUS and CDROM_DISC_STATUS ioctls like 'eject' uses or else see example in /kernel source/Documentation/cdrom/ide-cd?
 
Old 12-17-2008, 10:03 PM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
You mean create an install that has 2 CDs? Like CD1 is the boot/install 1 CD and CD2 has additional software? When you get this completed please post the steps. I might need to do this one day.


Oh and any chance you could just make it one DVD instead of 2 CDs? Or are you needing it for CDROMs only drives?
 
Old 12-18-2008, 08:32 AM   #4
infernal211283_
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
unSpawn, thank you for pointing me in those directions.

The capacity file does look like it can help,
I wondered what will happen is the cdrom will be scsi and the device block will change to sda, so the final line to check whether there's a cd inserted, looks like this:

cat /proc/ide/"$(dmesg |grep CD-ROM|awk -F\: 'NR==1 {print $1}')"/capacity

One more thing left to do is to adopt the .discinfo file so the installer will know that's the right cd.
Looks like something that can be achieved, thanks again for your help.

ncsuapex,
I'll have to do both, DVD and split CD set.

I'll post the outcome when I'm done with this.

Last edited by infernal211283_; 12-18-2008 at 08:34 AM.
 
Old 04-01-2011, 06:17 AM   #5
zwli
LQ Newbie
 
Registered: Apr 2011
Posts: 8

Rep: Reputation: 0
Question

Quote:
Originally Posted by infernal211283_ View Post
unSpawn, thank you for pointing me in those directions.

The capacity file does look like it can help,
I wondered what will happen is the cdrom will be scsi and the device block will change to sda, so the final line to check whether there's a cd inserted, looks like this:

cat /proc/ide/"$(dmesg |grep CD-ROM|awk -F\: 'NR==1 {print $1}')"/capacity

One more thing left to do is to adopt the .discinfo file so the installer will know that's the right cd.
Looks like something that can be achieved, thanks again for your help.

ncsuapex,
I'll have to do both, DVD and split CD set.

I'll post the outcome when I'm done with this.
hi, Dan
what's your final solution about this problem? i also encounterred the same question

Last edited by zwli; 04-01-2011 at 06:19 AM.
 
Old 04-01-2011, 08:18 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,378
Blog Entries: 3

Rep: Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478
Hi,

Welcome to LQ!

You should look at the post(s) date. infernal211283_ has not posted for over 2 years.

Do not resurrect such old threads. If you have a query then create a new thread and include complete information as to the query.

You should use descriptive titles for your threads. That way you will receive targeted responses.



FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.
 
1 members found this post helpful.
  


Reply

Tags
anaconda, installer, kickstart, redhat


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating custom headers to match a custom kernel utanja Debian 2 06-08-2007 04:15 PM
how do i make custom installer mithereal Debian 1 09-11-2005 04:45 PM
how to create a custom installer? bonzai-panthera Linux From Scratch 0 01-19-2004 05:04 AM
creating a graphical installer for a custom linux distribution waresd Linux - Distributions 4 06-06-2002 09:27 AM
Custom Distro installer for LFS Stephanie General 24 04-09-2002 01:00 PM


All times are GMT -5. The time now is 07:17 PM.

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