Hello dear guest!

Boot Land is a community driven pc software site established since 2006 and focused on recovery/backup boot disks, research of Microsoft Windows 2000/XP/2003/Vista/7 install/deployment/lease/antivirus/antispam tools, customizing Microsoft Windows PE administration systems and even learning how to recover computer data from disaster situations!

How about joining our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register


 RAM load part of a file
post May 31 2010, 08:49 PM
Post #1
cdob
Frequent Member   ***
Group: Advanced user

  Joined: 7-November 07
Posts: 295
Thank(s): 62


Given a sorted image file: all boot data are in front of media.

Example:
Slax 6.1.2 boot directory use 3727 sectors.
First level booting use 3727 sectors.

Imagine a fragmented file slax-6.1.2.iso at USB stick
'map --mem slax-6.1.2.iso' does load whole file to RAM.
Kernel and initrd are read from RAM disk.
But next file slax-6.1.2.iso is read from USB stick. That's a waste of time and waste of RAM.

At ISO file boot there is no need to load whole ISO image to RAM.
It's sufficient to load 3727 sectors to RAM.

Given a continuous file (working example loading 3727 sectors):
CODE
map /slax/slax-6.1.2.iso (0xFE)
map --hook
map --mem (0xFE)+3727 (0xFF)
map --hook
root (0xFF)
kernel /boot/vmlinuz from=/slax/slax-6.1.2.iso ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4
initrd /boot/initrd.gz



How to RAM load first part of a fragmented file?

This fails
CODE
map --mem (/slax/slax-6.1.2.iso)+3727 (0xFE)
Error 23: Error while parsing number


Or a special fake multi session file, load middle part of a file
CODE
map --mem (multi_session.iso)1234+3727 (0xFE)


+Quote Post

Posts in this topic
- cdob   RAM load part of a file   May 31 2010, 08:49 PM
- - tinybit   At present, you may 1. defragment your ISO(so don...   May 31 2010, 11:06 PM
- - Wonko the Sane   @cdob Maybe this could be the right occasion to do...   Jun 1 2010, 07:50 AM
- - tinybit   yes, dd may work: CODE# firstly, use dd to copy t...   Jun 1 2010, 10:19 AM
|- - Wonko the Sane   BUT: QUOTE (tinybit @ Jun 1 2010, 12:19 ...   Jun 1 2010, 10:49 AM
- - cdob   QUOTE (tinybit @ Jun 1 2010, 12:19 PM) In...   Jun 4 2010, 10:15 PM
|- - maanu   QUOTE (cdob @ Jun 4 2010, 11:15 PM) Thank...   Jun 5 2010, 06:57 PM
|- - Wonko the Sane   QUOTE (maanu @ Jun 5 2010, 08:57 PM) you ...   Jun 6 2010, 10:02 AM
- - MedEvil   Well there is one more use for it, a PE use. The...   Jun 6 2010, 03:47 PM
- - cdob   QUOTE (maanu @ Jun 5 2010, 08:57 PM) you ...   Jun 7 2010, 04:19 AM


Reply to this topic
1 User(s) are reading this topic ()



Collapse

  Topic Replies Topic Starter Views Last Action
No new File-system redirection
20 target_practice 1,196 13th June 2010 - 11:52 PM
Last post by: Galapo
No New Posts Load ISO with MEMDISK using HTTP not TFTP
6 ninjabilly 217 11th June 2010 - 08:52 PM
Last post by: ninjabilly
No New Posts Office 2010 Web Apps live | Free Microsoft eBooks | SCVMM 2008 R2 Rollup released | Windows Phone 7 news
0 Michael Pietroforte 76 8th June 2010 - 09:38 PM
Last post by: Michael Pietroforte
No New Posts Offline insert ide,ahci drivers
Go home acronis ur =))
5 cyb_fh 561 4th June 2010 - 08:17 PM
Last post by: hackules
No New Posts Office 2010 activation - How to rearm Office 2010
0 Michael Pietroforte 355 26th May 2010 - 09:23 PM
Last post by: Michael Pietroforte





    

Display Mode: Switch to: Standard · Switch to: Linear+ · Outline