Jump to content











Photo
- - - - -

Success - Integrating dummy.sys into LiveXP - BootSDI


  • Please log in to reply
78 replies to this topic

#51 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 01 October 2009 - 03:18 PM

What would be the smallest sized hard disk that we can create? 1 MB, I guess, based on mkimg.cmd. We could even gzip it.

The smallest hard disk should be one that has a CHS of 1x64x32 or 1x16x63 (if we follow "known" geometries).
i.e. respectively
1x64x32x512=1,048,576
or
1x16x63x512=516,096

But the question is another, one could use any arbitrary geometry for this, so how small can be a FAT (12 or 16) volume? :D

Since the good ol' 5.25 floppies were originally 160 Kb, it is possible that a far smaller HD image can be made.

jaclaz

#52 oriensol

oriensol

    Frequent Member

  • Advanced user
  • 216 posts
  •  
    India

Posted 01 October 2009 - 04:18 PM

Tried with a 160K image!

Grub4dos see it as 40/1/8 (C/H/S). Mapped to (hdx,0) as a partition.

Created using imdisk (not worth wasting 63 blocks :D )

Works fine in explorer. Visible in Disk Management, but cannot be manipulated, probably because of mapping as a partition instead of as a hard disk.

Gzipped size, 916 bytes. Size on disk, 1024 bytes.

Uses disk.sys.

Need a good name for this :D

Hope this is good enough.

#53 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 01 October 2009 - 04:51 PM

Gzipped size, 916 bytes. Size on disk, 1024 bytes.

You are WASTING 108 bytes! :D

:D

More seriously, one should find a way to map it (instead of a Drive letter) to either "nothing" or to a Folder on the "main" NTFS filesystem (if only NTFS is used). ;)

:D

jaclaz

#54 oriensol

oriensol

    Frequent Member

  • Advanced user
  • 216 posts
  •  
    India

Posted 01 October 2009 - 05:13 PM

@jaclaz,

Bytes wasted are because I am creating a README.TXT inside saying "This is a dummy disk created to keep disk.sys alive when used without a hard disk attached" :D

#55 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 02 October 2009 - 10:34 AM

@jaclaz,

Bytes wasted are because I am creating a README.TXT inside saying "This is a dummy disk created to keep disk.sys alive when used without a hard disk attached" :D


OK, but thinking a bit more about the matter, we don't need an actual filesystem to hook the disk.sys.

The disk.sys is hooked by the disk driver, not by the contents of it (otherwise you would never be able to partition/format a 00ed out disk or image). ;)

Can you try mapping/loading the attached image? :D

:D

jaclaz

Attached Files



#56 oriensol

oriensol

    Frequent Member

  • Advanced user
  • 216 posts
  •  
    India

Posted 02 October 2009 - 11:26 AM

fxscrpt/TheHive,

?

TheHive, can you check this?

@jaclaz,

I added the readme.txt so that if a user starts wondering what this new drive is, he/she will at least understand why it came about. For that I had to make the filesystem. I understand you are thinking of just having a(n uninitialized) disk partition.

#57 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 02 October 2009 - 11:52 AM

I added the readme.txt so that if a user starts wondering what this new drive is, he/she will at least understand why it came about. For that I had to make the filesystem. I understand you are thinking of just having a(n uninitialized) disk partition.

Yep, so it might even NOT get a drive letter.

jaclaz

#58 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 02 October 2009 - 12:16 PM

oriensol

lets continue with mid-way approach ;)

2 main options for the tinyhdd, 1st with your way (formatted, added txt), 2nd jaclaz way (no format, no drive letter, No woman no cry). I feel 1st way will be nice for new users and 2nd way maybe preferred by advanced users who knows what is going on :D All ways to Mumbai and hopefully everybody happy :D

#59 oriensol

oriensol

    Frequent Member

  • Advanced user
  • 216 posts
  •  
    India

Posted 02 October 2009 - 12:29 PM

Why do we really need two ways? I feel Jaclaz's way is fine by this logic:

1. If the user is NOT advanced he/she won't even know/notice that this dummy disk/partition exists, since we won't even have/use a drive letter
2. If the user is advanced, he/she can understand why it is there. And Jaclaz has put in the text inside the image for someone who opens it with, say Tinyhexer

We probably need a good name for the image file.

Edit: How about needthis.img for a name?

#60 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 02 October 2009 - 12:45 PM

Following the "other" approach.

A "less-than-floppy" (as opposed to "superfloppy" :D) image, size uncompressed 17,408 bytes! ;)

Made with fsz and mkdosfs.exe:
http://www1.mager.org/mkdosfs/

fsz dummytest.img 17480
mkdosfs -n DUMMY_DISK -s 1 -S 512 -f 1 -h 1 -F 12 -r 16 -R 1 J: 34


But I guess that manually we can do even (slightly) better. :D

;)

jaclaz

Attached Files



#61 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 02 October 2009 - 03:07 PM

It seems like the limit is actually 4,096 bytes. :D

Please find in the attachment two examples of such a small image, a "normal" FAT12 image with 2,048 bytes free ;) (but with TWO FAT's) and a "hacked" FAT12 with (hear, hear :D) 2,560 bytes free! ;)
(I used just one FAT copy ;) ).

The empty images compress to 248 and 246 bytes respectively, using gzip -9.

;)

jaclaz

Attached Files



#62 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 02 October 2009 - 05:24 PM

Please find in the attachment two examples of such a small image, a "normal" FAT12 image with 2,048 bytes free :D (but with TWO FAT's) and a "hacked" FAT12 with (hear, hear ;)) 2,560 bytes free! ;)
(I used just one FAT copy ;) ).

:D ;) ;) All works nice ;)

#63 fxscrpt

fxscrpt

    Frequent Member

  • .script developer
  • 328 posts
  •  
    Germany

Posted 02 October 2009 - 06:07 PM

sorry if i'm wrong but i think
fixing disk.sys unload issue by
firadisk is breaking a butterfly on a wheel.

i like firadisk and when thinking about firadisk i like to think big:
modern , fast ramdisk , drive letter assigned ,
big enough for modelram and pagefile!
(i'm sure it will be possible in the very near future)

let's collect information about disk.sys unload issue:

- it exist only for xp build's
(why? if someone can tell me , i will give him/her 10 thanks)

- real pc's not affected
- quemu not affected (we can add hdd.img)
- virtual box not affected (we can add vdi or vmdk image)
- vmware not affected (we can add vmdk image)

If issues reported by TheHive can be fixed,
there is no need for a second fix.

:D
Peter

#64 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 October 2009 - 06:48 PM

sorry if i'm wrong but i think
fixing disk.sys unload issue by
firadisk is breaking a butterfly on a wheel.

i like firadisk and when thinking about firadisk i like to think big:
modern , fast ramdisk , drive letter assigned ,
big enough for modelram and pagefile!
(i'm sure it will be possible in the very near future)

let's collect information about disk.sys unload issue:

- it exist only for xp build's
(why? if someone can tell me , i will give him/her 10 thanks)

- real pc's not affected
- quemu not affected (we can add hdd.img)
- virtual box not affected (we can add vdi or vmdk image)
- vmware not affected (we can add vmdk image)

If issues reported by TheHive can be fixed,
there is no need for a second fix.

:D
Peter

In the first view "I did not understand nothing" ( I hope you interprete the slang statement correctly, and not assume that I understood EVERYTHING)
For me (in first reaction) your post has been the reply to my last post.

Then I saw that it has nothing to do with the VMWare issue.

@fxscrpt (or Admins): Can you please export the VMWare posts to a separate topic?

As soon as this is done, I'll upload my 'universal solution'.

Peter

#65 fxscrpt

fxscrpt

    Frequent Member

  • .script developer
  • 328 posts
  •  
    Germany

Posted 02 October 2009 - 08:11 PM

In the first view "I did not understand nothing" ( I hope you interprete the slang statement correctly, and not assume that I understood EVERYTHING)

I know waht you mean

For me (in first reaction) your post has been the reply to my last post.
Then I saw that it has nothing to do with the VMWare issue.

you are right, has nothing to do with the VMWare issue.


@fxscrpt (or Admins): Can you please export the VMWare posts to a separate topic?

i dont know how to do that :D :D

Peter

#66 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 03 October 2009 - 09:49 AM

SERVICE POST:


VMware thingies moved here:
http://www.boot-land...?showtopic=9292

jaclaz

#67 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 03 October 2009 - 03:24 PM

SERVICE POST:


VMware thingies moved here:
http://www.boot-land...?showtopic=9292

jaclaz


Moved three non-VMWare posts back here

Peter

#68 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 04 October 2009 - 04:51 PM

Might want to remove and replace the two scripts from the NativeEx Project
USBDummyDisk.Script
USBSupport.Script

and replace them with

vUSBDummyDisk.Script
RemovableDevicesCombo.script

#69 oriensol

oriensol

    Frequent Member

  • Advanced user
  • 216 posts
  •  
    India

Posted 04 October 2009 - 06:27 PM

@TheHive,

Are you addressing psc?

#70 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 04 October 2009 - 06:37 PM

@TheHive,

Are you addressing psc?

Message already arrived! :D

But I'm currently querying. E.g. no 'RemovableDevicesCombo.script' topic exists, and I'm searching and reading the different posts containing this item.
And no 'vUSBDummyDisk.Script' topic exists, and I'm searching and reading the different posts containing this item.

That will take a while ...
Maybe somebody writes a new topic containing 'RemovableDevicesCombo.script' and 'vUSBDummyDisk.Script' replacing '???' ...

Peter :D

#71 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 04 October 2009 - 07:11 PM

no 'RemovableDevicesCombo.script' topic exists

You are right, Mainly It is the combination of 3 existant scripts. All work done by fxscrpt, as a result we removed usb_keyboard_mouse_hotplug.script, IEEE1394.Script, USBSupport.Script from livexp server and added RemovableDevicesCombo.script at 2009-09-13.

If a topic required, better fxscrpt opens it :D

And no 'vUSBDummyDisk.Script' topic exists

You are at the topic :D . When there was USBSupport.Script oriensol requested to have dummy driver script executed after USBSupport.Script so it is renamed vUSBDummyDisk.Script at 2009-09-08 (Keeping title the same), till than vUSBDummyDisk.Script is on LiveXP server. In order not to mix things with the projects that already have USBSupport.Script I guess better to have v letter at the begining. (besides I dont know if script still works with old USBSupport.Script)

#72 oriensol

oriensol

    Frequent Member

  • Advanced user
  • 216 posts
  •  
    India

Posted 05 October 2009 - 12:48 AM

@Peter (psc)

Lancelot is absolutely right.

As to working with old USBSupport, the new vUSBDummyDisk checks for RemovableDevicesCombo, so it won't work with the old USBSupport.

Hope this helps.

#73 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 October 2009 - 12:37 PM

Now the 'new' files are on nativeEx server

Peter

#74 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 05 October 2009 - 10:13 PM

:D :D

#75 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 05 October 2009 - 11:26 PM

vUSBDummyDisk checks for RemovableDevicesCombo
The vUSBDummyDisk.Script Gui Description needs and update.

From
Script Depends on USB Mass Storage Devices script
to
Script Depends on RemovableDevicesCombo
2.jpg



I think the MountStor.script is need to be added to NativeEx,
to make the three scripts work well. I forgot to mention it before. Reading the vUSBDummyDisk description reminded me that it is needed to make it right.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users