AminetAminet
Search:
84716 packages online
About
Recent
Browse
Search
Upload
Setup
Services

misc/unix/File2Partition.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Spare memory if LinUX install V1.2 stores images direct to HD
Author:martintauchmann at hotmail.de (Martin Tauchmann)
Uploader:martintauchmann hotmail de (Martin Tauchmann)
Type:misc/unix
Requires:OS 2.0
Architecture:m68k-amigaos
Date:1998-07-08
Download:http://aminet.net/misc/unix/File2Partition.lha - View contents
Readme:http://aminet.net/misc/unix/File2Partition.readme
Downloads:4488

File2Partition V1.2

Features: - write images on Partition, Disks or any LogicalDevice.
	  - Oberon-2 Sourcecode
          - support Partitions after 4GB "border" if the device
            support it ;-) (Aminet:disk/misc/IDEfix97.lha)
          - NO verify ):-<

FUTURE: extract files with *.Z extention, with help of the
	z.library (AmiNet: util/pack)


Other products:

Aminet:disk/cache/fda.lha			(cheapest, fastest and cleverest Cache-Program)
Aminet:mods/slow/BrainBird.lha  		(Shaman drums to meditate and 14 Ambient
NewAge Songs)
Aminet:misc/math/TelekomTelefonrechnung.lha	(calculater for WG´s)
Aminet:gfx/show/ActiveWinPic.lha		(Picture on any window, special SHELL!)
Aminet:util/boot/IsInserted.lha			(StartUp-Check if a Disk inserted then start
BootUte)
Aminet:misc/unix/File2Partition.lha		(spare memory if LinUX install, stores
files direct to HD, Disks or any LogicalDevice)



Ahoy,

i have only two megabyte FastMemory, you realize that its realy pretty
too run Linux on my machine: the result is, i wrote a program "File2Partition"
which write the "Linux/680x0/v2.0/filesys/filesys-ELF-2.0.x"
(Yes the two megabyte version with TAB-extention) to my "LinuxRoot:" Partition.
Now, i don´t need a BootRamDisk.

Unfortunately here is my realy BAD-problem. I use the
"Linux/680x0/v2.0/vmlinux-2.0.33" Kernel, but its too large.
Now, i modified with PowerPacker AmiBoot-Hunks to load it in ChipMem and boot
the Amiga with no FastMem to include it short time befor AmiBoot. The Result
is i have the full 2MB FastMem for Linux, but its not enough,
but i can´t give up.

 More memory? OK you sucking machine, now you became Virtual Memory, you have a
MemoryManagmentUnit, then use it!

I modified the Linux StartUp-Sequence ("/etc/rc") with a DiskMonitor,
yes not a normal Text-Editor.


To do this: search the String "#!/bin/" on your LinuxRoot-partition.

You found it by: filesys-ELF-2.0.x         at Block 1696
                 filesys-ELF-2.0.x-1400k-2 at Block 1400

Hint: "#" = ";" AmigaDos (Comment)

first line:
overwrite "#!/bin/sh??# Set the path."
with      "/sbin/mkswap /dev/hda4<RETURN(0x0A)>#"

<RETURN(0x0A)> means enter HEX 0A

after	  "PATH=/sbin:/bin; export PATH<RETURN(0x0A)>"

third line:
overwrite "#??????"
with      "/sbin/swapon /dev/hda4<RETURN(0x0A)>#"




I boot this sucking-Machine UP, and?, a endless lopp to opening the LIBS.
ahhhhhhhhhhhhhhhhhhhhhhhh.....

Now, time past away an i wise, former or afterwards, you know the machine
as well as i.


In the moment is here the end of the story. But i hope that a LinuxSuperUser
create a special version for this problem.



Usage:	File2Partition FILE Partition

	FILE is the NAME of the File
	Partion is the NAME of the Partition

	example

	File2Partition Devel:Linux/RedHat/images/ginitrd.img LinuxRoot:
	or
	File2Partition Devel:Linux/RedHat/images/ginitrd.img LinuxInstallRoot:


Hint:	Normaly LinuxRoot: is disabled AutoMount, enable this Flag for schort
	time with HDToolBox.


	OR, use from Aminet
	RDB-Informer

	to build MountList like



------CUT here ------------CUT here ------------CUT here ------

/* Hard-Blocks Informer :

 Partition LinuxRoot:
 Flags          = $00000002 =
                                  - Partition is not bootable
                  PBF_NOMOUNT     - Partition is not automaticaly mounted
 DevFlags       = $00000000 =          0 Preferred flags for OpenDevice
 DosEnvec block with 16 entries
 SizeBlock      = $00000080 =        128 block size in longwords
 SecOrg         = $00000000 =          0 not used
 Surfaces       = $00000010 =         16 number of heads
 SectorPerBlock = $00000001 =          1 not used; must be 1
 BlocksPerTrack = $0000003F =         63 number of blocks per track
 Reserved       = $00000000 =          0 DOS reserved blocks at start of
partition
 PreAlloc       = $00000000 =          0 DOS reserved blocks at end of partition
 Interleave     = $00000000 =          0 (usually 0)
 LowCyl         = $00000561 =       1377 starting cylinder
 HighCyl        = $0000056F =       1391 ending cylinder
 NumBuffers     = $0000001E =         30 initial number of buffers
 BufMemType     = $00000000 =          0 type of memory for buffers
 MaxTransfer    = $00FFFFFF =   16777215 max number of bytes to transfer at a
time
 Mask           = $7FFFFFFE = 2147483646 address mask to block out certain
memory
 BootPri        = $00000000 =          0 boot priority for autoboot
 DosType        = $42534452 = 'BSDR'     HEX string showing filesystem type
*/
Flags		= 0
BlockSize	= 512
Surfaces	= 16
BlocksPerTrack  = 63
Reserved	= 0
PreAlloc	= 0
Interleave	= 0
LowCyl		= 1377
HighCyl		= 1391
/*Buffers		= 0
BufMemType 	= 1     /* 1= ANY+Public 3=CHIP+piblic 5=FAST+public*/
DosType		= 0x444f5303
Mount		= 1
*/
MaxTransfer 	= 0x00ffffff
Mask		= 0x7ffffffe
BootPri		= 0

Priority	= 9
Device		= scsi.device
Unit		= 0


/*
StackSize	= 600
GlobVec		= -1
*/

------CUT here ------------CUT here ------------CUT here ------






        Or, use from Aminet

	RDBMount.lha       disk/misc    5K+V1.1. Mount dev by reading info from RDB ins
	hardblocks.lha     dev/misc    23K 264+Shared lib. for HDBlock std. v1.2

	but its need a FileSystem


Contents of misc/unix/File2Partition.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 3109    5052  61.5% -lh5- a854 Jul  7  1998 File2Partition
[generic]                 2517    5405  46.6% -lh5- 34ba Jul  7  1998 File2Partition.doc
[generic]                 4459   13301  33.5% -lh5- 595d Jul  7  1998 File2Partition.mod
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files   10085   23758  42.4%            Jul  8  1998

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>