Jump to content











Photo
- - - - -

fsredir v1.0.1


  • Please log in to reply
35 replies to this topic

#1 Syahmi

Syahmi

    Newbie

  • Members
  • 15 posts
  •  
    Malaysia

Posted 16 August 2010 - 11:14 AM

Hi,

I'm releasing my fsredir driver which is File System Redirection based on SimRep WDK Example by Microsoft.

Main features:
- Redirect open file to another drive
How it works:
Instead of storing file into wim image, we can simply use our pendrive/harddisk/etc to store file outside of the image while WinPE still thinking our file is in x: drive
  • When computer boot/or new media storage device attached, fsredir will find fsredir.marker on each device root directory and load it when found. Lets say your fsredir.marker is located on E:\fsredir.marker
  • The content of fsredir.marker represent the location of x:\ in your device. It can be blank or changed. Lets say your fsredir.marker contain this: \MyWinPe
  • When for example, application tried to load x:\windows\system32\msvbvm60.dll but file is not there, fsredir will try to search msvbvm60.dll on your drive which contain fsredir.marker in E:\MyWinPe\Windows\System32\msvbvm60.dll. If your fsredir.marker has no content. It will search in E:\Windows\System32\msvbvm60.dll
  • If fsredir found the file, it will redirect the request to open that file into new location.
  • Your application load :smiling9:

Instructions:
Installations for WinPE 3.0
  • Inserting the driver into wim image:
    • Download the driver and Extract all the content into new folder
    • Mount your wim image by using imagex or dism (eg imagex /mountrw PATH_TO_WIM 1 PATH_TO_MOUNT_DIR) Lets say PATH_TO_MOUNT_DIR is C:\WinPE\Mount\ (Tutorial can be found here or search using googles)
    • Copy \file\fsredir.inf to C:\WinPE\Mount\Windows\inf
    • Copy \file\fsredir.sys to C:\WinPE\Mount\Windows\system32\drivers
    • Copy \file\fsredir.marker to your pendrive or other external drive (outside, not in folder or subfolder)
  • Installing the driver
    • Open regedit.exe as administrator
    • Click HKEY_LOCAL_MACHINE and goto menu File\Load Hive
    • Browse and open C:\WinPE\Mount\Windows\System32\config\SYSTEM
    • Name it as WINPE
    • Double-click fsredir.reg
    • Click HKEY_LOCAL_MACHINE\WINPE and go to menu File\Unload Hive
    • Close Registry editor.
  • Modifying fsredir.marker and add files
    • By default, fsredir.marker contain \fsredir, you can change this to other path that will be merged with x:\, make sure to include slash \ in front of the path
    • Example to put files into system32 folder
    • If your fsredir.marker contain a path (e.g. \fsredir)
    • Create a new folder in pendrive and name it fsredir. Open the folder and make a new folder windows and open your windows folder and create a new folder again and name it system32 (?:\fsredir\windows\system32).
    • Now you can start copying files into \fsredir\windows\system32\ folder
  • If you want to put your files in other path, you can simply change the path in fsredir.marker
Installing driver in normal windows:
  • Installing this driver in windows is easy.
  • Copy fsredir.marker to appropriate location
  • right-click fsredir.inf and choose Install.
Installation instruction is also included in zip file.

Feedback and suggestion are welcomed:
8.3 compatible filename (like "fsredir.tag") - Wonko

Download:
v1.0.1

:(

EDIT by pscEX: actualized version and link as given by the author.
  • Nuno Brito likes this

#2 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 10441 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 16 August 2010 - 11:42 AM

Hi Syahmi, thank you for sharing this project with us.

I wasn't understanding very well the purpose of this driver until I read your blog post. Would you mind editing your first post to make everything clearer for other folks. I'm sure a lot of people will appreciate this feature.

:smiling9:

#3 Syahmi

Syahmi

    Newbie

  • Members
  • 15 posts
  •  
    Malaysia

Posted 16 August 2010 - 11:59 AM

Hi,

Sorry, but I will add information later, maybe 2 hours later. Got something to do first.
Thanks.

#4 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 16 August 2010 - 12:48 PM

Nice. :(

If I may :smiling9:, can we have instead of "fsredir.marker" something 8.3 compatible (like "fsredir.tag") you never know when a non 8.3 name may become a problem....:(

Besides that the testing has been made under 7 and PE 3.x only, does it have any peculiar dependency preventing it working theoretically on 2K, XP, etc.?

:cheers:
Wonko

#5 Syahmi

Syahmi

    Newbie

  • Members
  • 15 posts
  •  
    Malaysia

Posted 16 August 2010 - 03:15 PM

If I may unsure.gif, can we have instead of "fsredir.marker" something 8.3 compatible (like "fsredir.tag"

Didn't think about 8.3 compatibility while making this driver. Thanks for suggestion!

Besides that the testing has been made under 7 and PE 3.x only, does it have any peculiar dependency preventing it working theoretically on 2K, XP, etc.?

Maybe, I didn't remember if I use something that were introduced in Vista. I just test with WinXP, the driver load fine but have some problems like file not. :(

Edited first post :(

#6 Api

Api
  • Members
  • 9 posts
  •  
    Germany

Posted 16 August 2010 - 04:50 PM

Hi,
very interesting Project but the limitations are big:

"FindFile API will not list the redirected files"

and the bigger problem:
if i try to create a file in a redirected folder, my explorer or application will crash

#7 peetx

peetx

    Newbie

  • Members
  • 10 posts

Posted 16 August 2010 - 07:56 PM

Hi,

first thanks a million for the work and idea. If you get the driver workin fully i guess you will be the man of the year - this was something we all waited for!!!

Go on with this, if you need tests, just drop a line.

best regards

peet

#8 Syahmi

Syahmi

    Newbie

  • Members
  • 15 posts
  •  
    Malaysia

Posted 09 February 2011 - 11:12 AM

Hi, after long time I decided to update this driver again.
Here latest version: http://www.fileserve.com/file/d7pjH5V

What changed:
- File/Folder entry is now displayed
- Some minor fix
- Still have some bug.

See fsredir in action: http://write-code.bl...-in-action.html

ps: Is there a way to update my post above? I didn't see any edit button. Thanks

Edited by Syahmi, 09 February 2011 - 11:13 AM.


#9 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 09 February 2011 - 01:47 PM

Does your driver work now with PE1 / XP too?

:cheers:

edit: Forget my question, you answer it in your blog.

#10 Syahmi

Syahmi

    Newbie

  • Members
  • 15 posts
  •  
    Malaysia

Posted 09 February 2011 - 01:54 PM

Yes, tested and works on xp too :cheers:

#11 pscEx

pscEx

    Platinum Member

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

Posted 09 February 2011 - 02:05 PM

ps: Is there a way to update my post above? I didn't see any edit button. Thanks

The ability to edit own posts starts after a new member has written a certain amount of posts.
That makes spamming more difficult.

PM me a changed copy of post #1 and I will do the edit for you.

Peter :cheers:

#12 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 09 February 2011 - 03:35 PM

Some questions:
How will fsdir behave, when i have files with identical names in the original and in the redirected directory?
Is it possible to have multiple directories from the same drive redirected?
Is X hardcoded into fsdir or is %systemdrive% used?

:cheers:

#13 Syahmi

Syahmi

    Newbie

  • Members
  • 15 posts
  •  
    Malaysia

Posted 09 February 2011 - 05:51 PM

It will read on local drive first, if file exists it will continue to read on local drive. If not, it will try to open in redirected directory.

Is it possible to have multiple directories from the same drive redirected?

I don't understand this question.

Drive letter is not hardcoded, fsredir will find fsredir.marker in every drive. Let's say you put marker file in F:\, then you open C:\ you will see all contents on F:\ appear on C:\.

Note: redirected folder can be defined inside marker file.

There is 2 bug I noticed.
1) Empty drive/folder will fail to show redirected content.
2) All drive will have redirected content. (I will make a feature to enable/disable drive)

Sorry if my english confused you. :cheers:

#14 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 10 February 2011 - 09:00 PM

Note: redirected folder can be defined inside marker file.

Yes, but can i have more than 1 entry inside the marker file?
Let's say:
\redir1
\redir2
\redir3

Another question is, can i use fsredir to merge different filesystems like CD and NTFS?

:dubbio:

#15 Syahmi

Syahmi

    Newbie

  • Members
  • 15 posts
  •  
    Malaysia

Posted 11 February 2011 - 07:49 AM

Yes, but can i have more than 1 entry inside the marker file?

No, you can't do that, yet.

Another question is, can i use fsredir to merge different filesystems like CD and NTFS?

Possibly yes, I already tested with combination of this filesystem: ntfs, fat32, fat16 and ramdisk.

:)

#16 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 February 2011 - 01:00 PM

Possibly yes, I already tested with combination of this filesystem: ntfs, fat32, fat16 and ramdisk.

Those are all HDD file systems and use the same encoding for unicode letters.
CDFS however uses a different encoding for unicode letters, hence there are likely problems, when merging CDFS with a HDD-FS. At least FBWF has them.

:)

#17 Aye Htay

Aye Htay

    Frequent Member

  • Advanced user
  • 163 posts
  •  
    Myanmar

Posted 11 February 2011 - 02:16 PM

Hi Syahmi,

Could I ask a stupid question, please?
I like to redirect some folders from wim image.
For example, drivers (files/folders) and some system files in winsxs+System32 folders.
Because these are most taking the place of the image.
If the answer is yes, wim image will be 50mb shrinked from 190mb.
And all spare drivers are stand-by in the USB, no need to integrate into wim.

For real OSs, we can also save a lot place.
For example, if we are using 3 different XP (X86) Pro, 2 different 7 (x86) in one machine, we can redirect (files/folders) to one folder for each same OS. It'll save great amout of space.

Thanks in advanced.

ah

#18 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 February 2011 - 02:22 PM

If the answer is yes, wim image will be 50mb shrinked from 190mb.

Aye Htay, i think you've forgot to write the question, you're referring to.

:)

#19 Aye Htay

Aye Htay

    Frequent Member

  • Advanced user
  • 163 posts
  •  
    Myanmar

Posted 11 February 2011 - 02:36 PM

Yes, I forget it. :)
The question is could I redirect files/folders from driver folders and system folders with your lovely tool, please?

Regards,

ah

#20 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 11 February 2011 - 03:01 PM

Those are all HDD file systems and use the same encoding for unicode letters.
CDFS however uses a different encoding for unicode letters, hence there are likely problems, when merging CDFS with a HDD-FS. At least FBWF has them.


:)
Guess why I suggested "plain" 8.3 originally? :smiling9:

:wodoo:
Wonko

#21 Syahmi

Syahmi

    Newbie

  • Members
  • 15 posts
  •  
    Malaysia

Posted 11 February 2011 - 03:07 PM

Hi Aye Htay, of course yes.

Let's say your driver & winsxs is located on D:\ and your wim booted image is on C:\

Put fsredir.marker on D:\
Make a folder in D:\
D:\fsredir\windows\system32\drivers
D:\fsredir\windows\winsxs

Now all data in D:\fsredir is now available on your C:\ drive

Guess why I suggested "plain" 8.3 originally

Now I see the reason :) Thanks

Edited by Syahmi, 11 February 2011 - 03:08 PM.


#22 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 February 2011 - 03:09 PM

Guess why I suggested "plain" 8.3 originally? :)

8.3 has no advantage here. It's not a question of name length but of the charcters in the name.

The question is could I redirect files/folders from driver folders and system folders with your lovely tool, please?

You can (at the moment) only redirect one folder from a partition/wim. Since the marker file can have only 1 entry.

So if driver folder is in one partition/wim and system folder in another partition/wim, then you can do it.


:smiling9:

#23 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 11 February 2011 - 03:30 PM

8.3 has no advantage here. It's not a question of name length but of the charcters in the name.


You know what I meant. :)

:smiling9:
Wonko

#24 Aye Htay

Aye Htay

    Frequent Member

  • Advanced user
  • 163 posts
  •  
    Myanmar

Posted 11 February 2011 - 03:31 PM

Hi MedEvil,

So you mean, it doesn't find any files in any sub folders?

Regards,

ah

#25 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 11 February 2011 - 04:46 PM

No, subfolders are merged too.

:cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users