Jump to content











Photo
- - - - -

Copying in different PING automated isolinux.cfg files via Grub4Dos


  • Please log in to reply
30 replies to this topic

#26 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15046 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 29 December 2012 - 05:14 PM

 I'd only suggest it as an exercise for someone willing to invest a good amount of time, with the possibility of not achieving success:)

 
Naah, failure is NOT an option!
 
1349136151Ct304t.jpg
 
 
As well as "giving up", it's just a matter of trying harder and get  bit of luck ;).

 

Luck-Poems-Giving-up-is-not-an-option.jp
 
:cheers:
Wonko



#27 steve6375

steve6375

    Platinum Member

  • Developer
  • 7072 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 31 December 2012 - 11:43 PM

Thank you Steve. Yes with the long line it was initially giving "Error 28: Selected item cannot fit into memory". But with your cut down STD line version it is working. Hooray =)

The latest chenall grub4dos build fixes this kernel line length issue.


  • robertcollier4 likes this

#28 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15046 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 01 January 2013 - 01:15 PM

Off-topic: Syslinux variants SYSLINUX and EXTLINUX require installation to a particular disk because they build and use a sector map.  It is not generally possible to simply copy [SYS|EXT]LINUX files from one disk to another and expect them to work.  This is why these kinds of Syslinux have installers.  It's probably possible to build a GRUB4DOS batch file that does some of what a Syslinux installer does, but it'd be a pretty complicated batch file!  I'd only suggest it as an exercise for someone willing to invest a good amount of time, with the possibility of not achieving success. :)

Stiil Off-Topic, DOS/Syslinux.com COSMIAS relesed here:

http://reboot.pro/to...a-cosmias-tool/

 

:cheers:

Wonko



#29 robertcollier4

robertcollier4

    Member

  • Members
  • 32 posts
  •  
    United States

Posted 08 January 2013 - 07:04 PM

The latest chenall grub4dos build fixes this kernel line length issue.

Great, working now with the grldr files uploaded on Dec 30 2012! Thanks for pushing this through.

 

title PING302-chainload Backup hda1orsda1 to sdb1/Automated
map (hd0,0)/iso/PING302.iso (0xff)
map --hook
root (0xff)
set var1=vga=normal devfs=nomount pxe ramdisk_size=60000 load_ramdisk=1 init=/linuxrc prompt_ramdisk=0  root=/dev/ram0 rw noapic nolapic lba combined_mode=libata ide0=noprobe nomce pci=nomsi irqpoll quiet 
set var2=AUTO=Y After_Completion=Reboot No_Shell=Y Replace_BIOS=N Compression_Type=gzip Tarball_Preferred=Y Store_MD5=N Minimize_Before_Storing=N Already_Existing_Image=Rename
set var3=Image_To_Restore=Create_New_Image 
set var4=Parts_To_Backup=hda1,sda1
set var5=Server="/dev/sdb1"
set var6=Directory=/
set var7=New_Image_Name=Automated 
set var8=Cmd_3="cp /tmp/x.log /mnt/dos/Automated/$(date +%F_%H%M).log" 
echo --------------------------------
echo Going to run (push any key to continue)
echo /kernel %var1% %var2% %var3% %var4% %var5% %var6% %var7% %var8%
pause
kernel /kernel %var1% %var2% %var3% %var4% %var5% %var6% %var7% %var8%
initrd /initrd.gz

The PING automated entry shown above is great and backs up hda1 (IDE drive) or sda1 (SATA/SCSI drive) to sdb1 (Flash Drive). The best thing about the above configuration is that it uses non-proprietary format of making .tar.gz files out of all the directories on their hard drive. PING also copies the MBR and PBR sectors into raw files on the flash drive.

This is a very versatile way to backup your hard drive - because the files are easily viewable without needing any special program - and you can even restore the files on hard drives of all types of different sizes / different partition tables - by manually booting into WinPE or Linux and using 7z or tar to manually extract the files onto a fresh drive (and writing the MBR and PBR if not already there). Most other image backup-restore programs perform sector-by-sector backups and therefore can't restore onto differently sized partitions.

The only thing that does not get saved via this method of backup-restore through .tar.gz files is the NTFS Metadata - but I have observed no special need for Windows needing to have any special NTFS Security permissions or ACLS for files. The files on the root of the drive can be made hidden and system again manually through "attrib +h +s ntldr", "attrib +h +s boot.ini", "attrib +h +s NTDETECT.COM".

 

P.S. For those wanting documentation for the APPEND automated entries for PING, see the Annex section of the PDF version of the PING manual since the HTML version of the PING manual is incomplete and does not explain them which causes much confusion for those reading the HTML version of the manual.


Edited by robertcollier4, 08 January 2013 - 07:24 PM.


#30 steve6375

steve6375

    Platinum Member

  • Developer
  • 7072 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 08 January 2013 - 07:26 PM

Does the date format of the .log file work - just worried about the %'s in there.

 

 

set var8=Cmd_3="cp /tmp/x.log /mnt/dos/Automated/$(date +%F_%H%M).log" 

 

In grub4dos you need to use %% for it to just escape it to a single %???


#31 robertcollier4

robertcollier4

    Member

  • Members
  • 32 posts
  •  
    United States

Posted 08 January 2013 - 08:20 PM

Thanks for heads up, the date format was not working and not with double percentage signs either. After a few guess-and-test attempts I found the GNU Grub manual page 21 to say: "Enclosing characters in single quotes preserves the literal value of each character within the quotes."

 

This produces the desired log file correctly with datestamp:

title PING302-chainload Backup hda1orsda1 to sdb1/Automated
map (hd0,0)/iso/PING302.iso (0xff)
map --hook
root (0xff)
set var1=vga=normal devfs=nomount pxe ramdisk_size=60000 load_ramdisk=1 init=/linuxrc prompt_ramdisk=0  root=/dev/ram0 rw noapic nolapic lba combined_mode=libata ide0=noprobe nomce pci=nomsi irqpoll quiet 
set var2=AUTO=Y After_Completion=Reboot No_Shell=Y Replace_BIOS=N Compression_Type=gzip Tarball_Preferred=Y Store_MD5=N Minimize_Before_Storing=N Already_Existing_Image=Rename
set var3=Image_To_Restore=Create_New_Image 
set var4=Parts_To_Backup=hda1,sda1
set var5=Server="/dev/sdb1"
set var6=Directory=/
set var7=New_Image_Name=Automated 
set var8=Cmd_3="cp /tmp/x.log /mnt/dos/Automated/$(date +'%'F_'%'H'%'M).log" 
echo --------------------------------
echo Going to run (push any key to continue)
echo /kernel %var1% %var2% %var3% %var4% %var5% %var6% %var7% %var8%
pause
kernel /kernel %var1% %var2% %var3% %var4% %var5% %var6% %var7% %var8%
initrd /initrd.gz

Edited by robertcollier4, 08 January 2013 - 08:37 PM.

  • steve6375 likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users