Jump to content











Photo
- - - - -

Usb plug and play


  • Please log in to reply
14 replies to this topic

#1 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 05 February 2009 - 07:58 PM

I have plug and play partially working in my vistape. In searching the forums it looks like a couple of people have gotten this to work. I have tried the suggestion of increasing the ramdisk size to 70%. Now when I plug in a usb drive it is detected in device manager but the filesystem on the drive is not detected. I can see the drive in the disk management but it has a blank partition. I have tested with a couple different usb flash drives and an external hard drive. All of these devices are detected properly if they are plugged in when the computer boots.
The drives I am testing with are all formatted ntfs.
I am using winbuilder 76 and vistape 12rc1.
Any suggestions you may have would be welcome.

#2 PaPeuser

PaPeuser

    Silver Member

  • Advanced user
  • 787 posts
  •  
    United States

Posted 05 February 2009 - 08:54 PM

Hello

I have had some luck with UBS devices. I have 3 different trays or external USB hard drives I use. (All work)

If I can see them in Device Manager or My Computer I could access then without a problem.

One thing I did notice is if I use a 200gig or larger HD this took longer to detect and was not always accessible.

This MAYBE why setting ImDisk Ramdisk % 70 and FBWF % 256 helps

PNP does not work the way you would expect Yes devices can and are detected and installed but I have to refresh or close and reopen My Computer or Device Manager to view them and I have always had access to files on anything that was listed.

Total Commander worked best for me

Let us know what you find out and I hope this helps

#3 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 05 February 2009 - 10:17 PM

I've read your other post on this and have tried what you suggested. My ramdisk is 70% and fbwf is set to 256. The drive is detected in device manager and is viewable in disk management. But the filesystem is not detected properly. It apears to have a blank unformatted partition. This is the same result I get from several usb flash drives and a 120gb external drive. No amount of refreshing the view or closing and reopening my computer will get me access to the drive.
All of these devices are properly detected if they are connected during bootup. I have also noticed that if the drive is connected during boot I can disconnect the drive and plug it back in and it is redetected properly.

#4 PaPeuser

PaPeuser

    Silver Member

  • Advanced user
  • 787 posts
  •  
    United States

Posted 05 February 2009 - 10:34 PM

Hi again

Can i ask whats your source? and what version WAIK you use,

heres mine
Vista Ultimate SP0
Waik 1.1
VIA chipset

I would like to figure out whats going on

ADDED edited Test machine has 1 gig ram

#5 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 05 February 2009 - 10:46 PM

My source is vista sp1
aik says it is version 1. I dont see a version 1.1 but the one I am using is available here: http://www.microsoft...;displaylang=en
I am building and testing on an intel chipset.

#6 PaPeuser

PaPeuser

    Silver Member

  • Advanced user
  • 787 posts
  •  
    United States

Posted 05 February 2009 - 11:50 PM

I was reading that yesterday you had troubles in this post

http://www.boot-land...?showtopic=6977

Have all your issues been resolved to this point?

I just want to make sure we are on the same page :cheers: B)

#7 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 06 February 2009 - 12:18 AM

Yes, for some reason it wasn't reading from my virtual drive but now its working fine.

#8 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 14 February 2009 - 01:33 AM

I am still having no luck with getting usb plug and play to work. I have tried using vista with or without sp1 as my source. I have downloaded the minimum vistape project adding only the driver scripts, explorer shell, and ImDisk script. I have also tried downloading the recommended project files as well. I have also tried downloading the file vistape12rc1-base.7z from vistape.net and using that to build. Each time I set my ramdisk to 70% and fbwf to 256. I have tested on several different machines with ram ranging from 1gb to 3gb. I tested with different usb drives and the result is always the same. The drive will show up in disk management but the filesystem is not detected. I tried formatting one of the drives but there was an unspecified error. If the drive is plugged in during boot then it works fine. I would really like to know if this is how it is working for anyone else. Maybe then I would feel a little less frustrated.

#9 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 15 February 2009 - 09:08 PM

Did you try this plus this?

#10 thelegendarypig666

thelegendarypig666

    Member

  • Members
  • 46 posts

Posted 16 February 2009 - 12:02 PM

I am still having no luck with getting usb plug and play to work. I have tried using vista with or without sp1 as my source. I have downloaded the minimum vistape project adding only the driver scripts, explorer shell, and ImDisk script. I have also tried downloading the recommended project files as well. I have also tried downloading the file vistape12rc1-base.7z from vistape.net and using that to build. Each time I set my ramdisk to 70% and fbwf to 256. I have tested on several different machines with ram ranging from 1gb to 3gb. I tested with different usb drives and the result is always the same. The drive will show up in disk management but the filesystem is not detected. I tried formatting one of the drives but there was an unspecified error. If the drive is plugged in during boot then it works fine. I would really like to know if this is how it is working for anyone else. Maybe then I would feel a little less frustrated.

I found myself that sometimes it is just needed to physically attach then detach and attach again usb mass storage devices to have them seen in original VistaPE. Most of them, in fact, are correctly seen at boot time, then broken by problematic and buggy Vpeloader.exe and then u can have them reinstalled simply attaching them again like I said before. Tested this on many physical machines, many different chipsets and with builds made with Vista DVD SP1 source! That make del difference too IMHO (improved USB support in the SP1 kernel).

#11 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 18 February 2009 - 11:46 PM

It works! It looks like copying over the entire windows/inf folder did the trick. Now I can plug in a usb drive that was not connected during boot. It doesn't automatically show up in my computer which would be nice but refreshing the view will get it to show up.

#12 Hebination

Hebination

    Newbie

  • Members
  • 10 posts
  •  
    United States

Posted 01 March 2009 - 04:46 AM

It works! It looks like copying over the entire windows/inf folder did the trick. Now I can plug in a usb drive that was not connected during boot. It doesn't automatically show up in my computer which would be nice but refreshing the view will get it to show up.


I am having trouble with the same thing. Any device that I plug into my computer that is USB will not work. I can see it in device manager so I try and manually have it search for the driver but it says "File not specified", or something to the effect that it can find the INF but not the .sys files. How did you integrate the entire windows\inf directory?

#13 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 01 March 2009 - 06:30 AM

The first link in Dera's post above shows how to do it. But your having a different problem then what I had. Usb devices should work out of the box. It sounds like your missing something in your build. I only had a problem with usb storage devices that were plugged in after the computer boots up. Other devices should be ok. And I never had any problems with missing .sys files.

#14 Zetup-EXE

Zetup-EXE

    Member

  • Members
  • 56 posts
  • Location:Germany

Posted 11 March 2009 - 06:26 PM

@esgaroth: well you made it so far. copying the whole inf folder and the filerepository folder solved the problem for me.

but does anybody know whether all entries within the inf folder and filerepository folder are necessary?

i made it with infcachebuild.exe from sherpya to rebuild the infcache1 file, but without the *.dat files it won't work. so does anybody know how to create such a file?

#15 esgaroth

esgaroth

    Frequent Member

  • .script developer
  • 173 posts
  •  
    United States

Posted 18 April 2009 - 07:34 PM

Some of the extra files that I had been copying over were causing another problem for me. So I took some time yesterday to find out exactly which files were needed to get the usb working.

First in the folders section make sure these folders are being created and are not commented out.
DirMake,"%targetDir%\Windows\System32\DriverStore"

DirMake,"%targetDir%\Windows\System32\DriverStore\%DistLang%"

DirMake,"%targetDir%\Windows\System32\DriverStore\FileRepository"

Then at the end of the process section I put in this:
FileCopy,"%BootSRC%\windows\inf\infpub.dat","%TargetDir%\windows\inf\infpub.dat"

FileCopy,"%BootSRC%\windows\inf\infstor.dat","%TargetDir%\windows\inf\infstor.dat"

DirCopy,"%BootSRC%\windows\System32\DriverStore\FileRepository\disk.inf_126712d3","%TargetDir%\windows\System32\DriverStore\FileRepository"

DirCopy,"%BootSRC%\windows\System32\DriverStore\FileRepository\usbstor.inf_ecddd81e","%TargetDir%\windows\System32\DriverStore\FileRepository"

DirCopy,"%BootSRC%\windows\System32\DriverStore\FileRepository\volume.inf_c4d713d0","%TargetDir%\windows\System32\DriverStore\FileRepository"

DirCopy,"%BootSRC%\windows\System32\DriverStore\%DistLang%\disk.inf_loc","%TargetDir%\windows\System32\DriverStore\%DistLang%\"

DirCopy,"%BootSRC%\windows\System32\DriverStore\%DistLang%\usbstor.inf_loc","%TargetDir%\windows\System32\DriverStore\%DistLang%\"

DirCopy,"%BootSRC%\windows\System32\DriverStore\%DistLang%\volume.inf_loc","%TargetDir%\windows\System32\DriverStore\%DistLang%\"

That seems to be all I need to get usb plug and play working correctly.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users