restoring from Bootable CD/DVD

Installation issues, feature requests, help, etc.

Moderators: A_Null, Curtis8

restoring from Bootable CD/DVD

Postby david.steele » Tue Apr 28, 2009 4:51 pm

Hi

This is great, I can restore my images just fine over the network, but

Each time i make an bootable iso of my partitions (/dev/cciss/c0d0p1 - p7) PING asks me where to restore from and lists the partitions on my disks.

I have both a SCSI and IDE DVDROM to choose from (/dev/hda and /dev/sr0) that the CD can boot from, but ... it can't find the devices to restore the images from.

any help much appreciated
David
david.steele
 
Posts: 2
Joined: Tue Apr 28, 2009 3:49 pm

Re: restoring from Bootable CD/DVD

Postby Curtis8 » Tue Apr 28, 2009 5:00 pm

That is actually a bug in the coding. When PING looks for an image on the CD drive, it looks for SDA and IDE images not cciss. You could edit the rc.ping file to reflect your setup then re-burn a disk. Got to love DVD-RW :D
Curtis

If you can read this, help me by going to the following link (can only go once per day)
http://s13.bitefight.org/c.php?uid=32058

Thank you
User avatar
Curtis8
Site Janitor
 
Posts: 1119
Joined: Thu Mar 01, 2007 3:22 pm
Location: Canada

Re: restoring from Bootable CD/DVD

Postby david.steele » Wed Apr 29, 2009 10:17 am

So something like

Code: Select all
LOG("* Looking for a possible CD/DVD...\n");

my $CD_Dev = '';
{
    my $nb = 0;
    foreach my $d ("hda", "hdb", "hdc", "hdd", "sda", "sdb", "sdc", "sr0", "sr1")
    {
        system("umount /mnt/cdrom >/dev/null 2>&1");
        system("mount /dev/$d /mnt/cdrom >/dev/null 2>&1");
        my $nb = `df|grep cdrom|wc -l`;
        if($nb > 0)
   {
            LOG("  Found and mounted a CDRom\n");
            opendir(DIR, "/mnt/cdrom");
            my(@Files) = readdir(DIR);
            closedir(DIR);
            foreach my $F (@Files)
       {
                if(($F =~/^[hs]d[abcde]$/) || ($F =~/^cciss$/) || ($F =~/^ida$/)|| ($F =~/^rd$/) )
      {
                    LOG("  Found a [/mnt/cdrom/$F] image\n");
          $CD_Dev = $d;
                    $SRC = "/mnt/cdrom";
          LOG("  Linking [/dev/cdrom] to [/dev/$d]\n");
          system("rm -f /dev/cdrom; ln -sf /dev/$d /dev/cdrom");
                }
            }
            sleep(5);   # Blink & start up.
            last;
        }
    }
    unless($nb)
    {
        LOG("  No CDRom device or media was found.\n");
    }
}
david.steele
 
Posts: 2
Joined: Tue Apr 28, 2009 3:49 pm

Re: restoring from Bootable CD/DVD

Postby Curtis8 » Thu Apr 30, 2009 4:11 am

yes, something like that.
Curtis

If you can read this, help me by going to the following link (can only go once per day)
http://s13.bitefight.org/c.php?uid=32058

Thank you
User avatar
Curtis8
Site Janitor
 
Posts: 1119
Joined: Thu Mar 01, 2007 3:22 pm
Location: Canada

Re: restoring from Bootable CD/DVD

Postby iscnetwork » Sun May 24, 2009 7:17 pm

I too got into this problem following the directions in the HOW TO. Running Windows XP and trying to make a Restore DVD.

where do I create the rc.ping file? Does the example need to be changed to reflect which Drive I am using for the boot up on DVD.

In my case I have a SATA & IDE DVD-RW.

thanks.
iscnetwork
 
Posts: 1
Joined: Sun May 24, 2009 7:12 pm

Re: restoring from Bootable CD/DVD

Postby theopract » Fri Dec 18, 2009 7:25 am

david.steele wrote:So something like

Code: Select all
LOG("* Looking for a possible CD/DVD...\n");

my $CD_Dev = '';
{
    my $nb = 0;
    foreach my $d ("hda", "hdb", "hdc", "hdd", "sda", "sdb", "sdc", "sr0", "sr1")
    {
        system("umount /mnt/cdrom >/dev/null 2>&1");
        system("mount /dev/$d /mnt/cdrom >/dev/null 2>&1");
        my $nb = `df|grep cdrom|wc -l`;
        if($nb > 0)
   {
            LOG("  Found and mounted a CDRom\n");
            opendir(DIR, "/mnt/cdrom");
            my(@Files) = readdir(DIR);
            closedir(DIR);
            foreach my $F (@Files)
       {
                if(($F =~/^[hs]d[abcde]$/) || ($F =~/^cciss$/) || ($F =~/^ida$/)|| ($F =~/^rd$/) )
      {
                    LOG("  Found a [/mnt/cdrom/$F] image\n");
          $CD_Dev = $d;
                    $SRC = "/mnt/cdrom";
          LOG("  Linking [/dev/cdrom] to [/dev/$d]\n");
          system("rm -f /dev/cdrom; ln -sf /dev/$d /dev/cdrom");
                }
            }
            sleep(5);   # Blink & start up.
            last;
        }
    }
    unless($nb)
    {
        LOG("  No CDRom device or media was found.\n");
    }
}


Plz, guys, help! I'm not getting it very well.
Would it be sufficient to put rc.ping file with this code in root directory of DVD to do the trick?
theopract
 
Posts: 8
Joined: Mon Aug 10, 2009 3:17 pm
Location: Russia, Moscow

Re: restoring from Bootable CD/DVD

Postby Curtis8 » Fri Dec 18, 2009 4:55 pm

Why not just edit the isolinux.cfg with the commands in the APPEND line? It works the same way as the PXE and syslinux counterparts. There is no need to edit the ping.conf file anymore. It is from a time before the kernel arguments were added in and kept only to make it easier for a sys admin to continue doing things 'the old way'.
Curtis

If you can read this, help me by going to the following link (can only go once per day)
http://s13.bitefight.org/c.php?uid=32058

Thank you
User avatar
Curtis8
Site Janitor
 
Posts: 1119
Joined: Thu Mar 01, 2007 3:22 pm
Location: Canada

Re: restoring from Bootable CD/DVD

Postby theopract » Mon Dec 21, 2009 6:08 am

I'm total newbie. Will it work like this if I'll add it to isolinux.cfg?

Code: Select all
DEFAULT rescue
PROMPT 0
LABEL rescue
KERNEL kernel
APPEND vga=normal devfs=nomount pxe ramdisk_size=33000 load_ramdisk=1 init=/linuxrc prompt_ramdisk=0 initrd=initrd.gz root=/dev/ram0 rw noapic lba combined_mode=libata ide0=noprobe nomce pci=nommconf pci=nomsi irqpoll After_Completion=Shutdown AUTO=Y Restore_Only=Y
LOG("* Looking for a possible CD/DVD...\n");

my $CD_Dev = '';
{
my $nb = 0;
foreach my $d ("hda", "hdb", "hdc", "hdd", "sda", "sdb", "sdc", "sr0", "sr1")
{
system("umount /mnt/cdrom >/dev/null 2>&1");
system("mount /dev/$d /mnt/cdrom >/dev/null 2>&1");
my $nb = `df|grep cdrom|wc -l`;
if($nb > 0)
{
LOG(" Found and mounted a CDRom\n");
opendir(DIR, "/mnt/cdrom");
my(@Files) = readdir(DIR);
closedir(DIR);
foreach my $F (@Files)
{
if(($F =~/^[hs]d[abcde]$/) || ($F =~/^cciss$/) || ($F =~/^ida$/)|| ($F =~/^rd$/) )
{
LOG(" Found a [/mnt/cdrom/$F] image\n");
$CD_Dev = $d;
$SRC = "/mnt/cdrom";
LOG(" Linking [/dev/cdrom] to [/dev/$d]\n");
system("rm -f /dev/cdrom; ln -sf /dev/$d /dev/cdrom");
}
}
sleep(5); # Blink & start up.
last;
}
}
unless($nb)
{
LOG(" No CDRom device or media was found.\n");
}
}
theopract
 
Posts: 8
Joined: Mon Aug 10, 2009 3:17 pm
Location: Russia, Moscow

Re: restoring from Bootable CD/DVD

Postby Curtis8 » Mon Dec 21, 2009 8:37 am

The
Code: Select all
LOG("* Looking for a possible CD/DVD...\n");

my $CD_Dev = '';
{
my $nb = 0;
foreach my $d ("hda", "hdb", "hdc", "hdd", "sda", "sdb", "sdc", "sr0", "sr1")
{
system("umount /mnt/cdrom >/dev/null 2>&1");
system("mount /dev/$d /mnt/cdrom >/dev/null 2>&1");
my $nb = `df|grep cdrom|wc -l`;
if($nb > 0)
{
LOG(" Found and mounted a CDRom\n");
opendir(DIR, "/mnt/cdrom");
my(@Files) = readdir(DIR);
closedir(DIR);
foreach my $F (@Files)
{
if(($F =~/^[hs]d[abcde]$/) || ($F =~/^cciss$/) || ($F =~/^ida$/)|| ($F =~/^rd$/) )
{
LOG(" Found a [/mnt/cdrom/$F] image\n");
$CD_Dev = $d;
$SRC = "/mnt/cdrom";
LOG(" Linking [/dev/cdrom] to [/dev/$d]\n");
system("rm -f /dev/cdrom; ln -sf /dev/$d /dev/cdrom");
}
}
sleep(5); # Blink & start up.
last;
}
}
unless($nb)
{
LOG(" No CDRom device or media was found.\n");
}
}

Portion can not be in the isolinux.cfg file. That will not work. That chunk of code goes into the rc.ping file which is compressed into the initrd.gz file. If you are unsure how to update the rc.ping file there are instructions here on the forum. Other than that you have two options I can see:
1) Wait until Natan releases the newer PING with the fix applied
2) Ask someone on the forum to update the initrd.gz file and send it back to you.
Curtis

If you can read this, help me by going to the following link (can only go once per day)
http://s13.bitefight.org/c.php?uid=32058

Thank you
User avatar
Curtis8
Site Janitor
 
Posts: 1119
Joined: Thu Mar 01, 2007 3:22 pm
Location: Canada

Re: restoring from Bootable CD/DVD

Postby Natan » Mon Dec 21, 2009 6:01 pm

Hi there,
I'm not sure everyone here came with the same issue. I'm wishing to release a new version of PING before 2010 :D
What should be added exactly concerning CCISS devices ?
Thanks !!
Natan
User avatar
Natan
Site Admin
 
Posts: 1754
Joined: Sun Nov 20, 2005 12:29 am

Re: restoring from Bootable CD/DVD

Postby theopract » Mon Dec 21, 2009 10:53 pm

Natan wrote:Hi there,
I'm not sure everyone here came with the same issue. I'm wishing to release a new version of PING before 2010 :D
What should be added exactly concerning CCISS devices ?
Thanks !!
Natan


Hello, Natan!
Nice to see you on this thread =) We all want CCISS devices images to be visible on a bootable CD/DVD.
For now PING could not see/find CCISS images on a bootable CD/DVD.
theopract
 
Posts: 8
Joined: Mon Aug 10, 2009 3:17 pm
Location: Russia, Moscow

Re: restoring from Bootable CD/DVD

Postby Natan » Tue Dec 22, 2009 8:46 am

Thanks ! Fine for me.
User avatar
Natan
Site Admin
 
Posts: 1754
Joined: Sun Nov 20, 2005 12:29 am

Re: restoring from Bootable CD/DVD

Postby theopract » Fri Mar 18, 2011 2:06 pm

Natan wrote:Thanks ! Fine for me.


Hello, Natan!

I'v tried new version of PING (3.00.04 2010) and was hoping to be able to see CCISS images on a DVD, but instead I got into a red screen (see attachment).
Could it be cause of configuration of isolinux.cfg? Though previous version loaded with this configuration, but didn't see CCISS.
Attachments
illegal opcode.jpg
illegal opcode
illegal opcode.jpg (44.37 KiB) Viewed 3543 times
theopract
 
Posts: 8
Joined: Mon Aug 10, 2009 3:17 pm
Location: Russia, Moscow


Return to PING / General Discussions

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests

cron