Jump to content


- - - - -

Question: Mount a folder as a drive (in ram)


  • Please log in to reply
57 replies to this topic

#51 steve6375

steve6375

    Gold Member

  • Developer
  • 2,189 posts
  • 44 topics
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom
  • Time Online: 68d 3h 6m 19s

Posted 29 March 2012 - 06:46 PM

The tutorial is to convert a USB drive to an ISO, so the drive letter (e.g. I:) needs to have a \ on the end. If you use a folder rather than a drive letter then you don't need the \. I will change the cmd file and instructions so that you have to specify I:\ or a folder path - thanks!
I have added your mkisofs command to the tutorial - do you know what the difference is? You add -I and don't use -J or -r?
Steve
Visit my website at RMPrepUSB.com for partitioning, formatting, testing, imaging and making bootable your USB Drive under Windows (supports FAT16/FAT32/NTFS/ext2 file volumes, MSDOS/FreeDOS/XP/Vista/Win7/Server2008, boot as Hard disk or floppy disk). Over 70 Tutorials on how to use RMPrepUSB and grub4dos and YouTube Videos too! Includes how to have a multi-install bootable USB flash drive containing all Windows Install ISO files (XP and Vista, WIn7, SVR2K8) on one bootable USB drive (see tutorials #30 and #43). Why not try PXE booting to WinPE3 or Hirens XP over Ethernet from your Windows 7 PC or install Windows onto any networked PC via PXE - see Tutorial #45 for details). Boot Windows 8 from USB.

#52 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 6,895 posts
  • 84 topics
  • Location:The Outside of the Asylum
  •  
    Italy
  • Time Online: 213d 5h 18m 49s

Posted 30 March 2012 - 08:48 AM

View Poststeve6375, on 29 March 2012 - 06:46 PM, said:

The tutorial is to convert a USB drive to an ISO, so the drive letter (e.g. I:) needs to have a \ on the end. If you use a folder rather than a drive letter then you don't need the \. I will change the cmd file and instructions so that you have to specify I:\ or a folder path - thanks!
I have added your mkisofs command to the tutorial - do you know what the difference is? You add -I and don't use -J or -r?
If I may, a PATH has always a final backslash, when you expand a variable in batch, such as running this little batch in a folder:
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
ECHO %~d0
ECHO %~dp0
ECHO %~dpnx0
The drive has no backslash, but any path has it.
I.e. try running this same batch on the ROOT of a drive:

Quote

C:\batches>thispath.cmd
C:
C:\batches\
C:\batches\thispath.cmd

C:\batches>cd..

C:\>thispath.cmd
C:
C:\
C:\thispath.cmd

What I normally do is to add to the user input a backslash, then remove duplicate backslashes.
SET /P YourPath=[Please Enter a Path]
SET YourPath=%YourPath%\
SET YourPath=%YourPath:\\=\%
SET YourPath

@

Quote

mkisofs -v -iso-level 4 -N -D -d -joliet-long -volid "Grldr" -A GRLDR/MKISOFS -sysid "Win32" -b grldr -no-emul-boot -boot-load-seg 0x7C0 -boot-load-size 4 -o "grldr.iso" "folder"
There should no need to specify the boot load segment:
http://reboot.pro/9787/page__st__10
and adding a -R or, better, a -r to add RockRidge should be desirable :unsure:

:cheers:
Wonko

#53 steve6375

steve6375

    Gold Member

  • Developer
  • 2,189 posts
  • 44 topics
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom
  • Time Online: 68d 3h 6m 19s

Posted 30 March 2012 - 08:53 AM

View PostWonko the Sane, on 30 March 2012 - 08:48 AM, said:

What I normally do is to add to the user input a backslash, then remove duplicate backslashes.
SET /P YourPath=[Please Enter a Path]
SET YourPath=%YourPath%\
SET YourPath=%YourPath:\\=\%
SET YourPath
Thanks for the tip :thumbsup:
Steve
Visit my website at RMPrepUSB.com for partitioning, formatting, testing, imaging and making bootable your USB Drive under Windows (supports FAT16/FAT32/NTFS/ext2 file volumes, MSDOS/FreeDOS/XP/Vista/Win7/Server2008, boot as Hard disk or floppy disk). Over 70 Tutorials on how to use RMPrepUSB and grub4dos and YouTube Videos too! Includes how to have a multi-install bootable USB flash drive containing all Windows Install ISO files (XP and Vista, WIn7, SVR2K8) on one bootable USB drive (see tutorials #30 and #43). Why not try PXE booting to WinPE3 or Hirens XP over Ethernet from your Windows 7 PC or install Windows onto any networked PC via PXE - see Tutorial #45 for details). Boot Windows 8 from USB.

#54 betrand

betrand

    Frequent Member

  • Advanced user
  • 228 posts
  • 17 topics
  •  
    France
  • Time Online: 24d 7h 37m 42s

Posted 30 March 2012 - 11:14 AM

Steve6375 said:

do you know what the difference is? You add -I and don't use -J or -r?
No idea! :P
(Well, -l for longfilenames)
I just used in Qemu, so it worked there.
I was re-reading http://reboot.pro/9696/,
but

View PostWonko the Sane, on 30 March 2012 - 08:48 AM, said:

There should no need to specify the boot load segment:
http://reboot.pro/9787/page__st__10
and adding a -R or, better, a -r to add RockRidge should be desirable :unsure:

:cheers:
Wonko
is even clearer. Thanks. On some sites I've seen -RJ. Meaning?

Steve, the Beta has two 'i's somewhere. (Clue:Iimages)
+, how does create DOS boot image work?

Cheers.

#55 betrand

betrand

    Frequent Member

  • Advanced user
  • 228 posts
  • 17 topics
  •  
    France
  • Time Online: 24d 7h 37m 42s

Posted 30 March 2012 - 02:09 PM

I'm trying to make a custom menu.lst with the batches.
I can't remember how you put an entry without a chainloader or boot at the end,
and still have it as an item, not like a title (/separator).
e.g.,

title /fat mkdir
/fat mkdir (fd1)/%FF%

Can you point me in the right direction? I want it to do the command and come back to the menu.
Cheers.

#56 betrand

betrand

    Frequent Member

  • Advanced user
  • 228 posts
  • 17 topics
  •  
    France
  • Time Online: 24d 7h 37m 42s

Posted 30 March 2012 - 08:38 PM

Maybe the most clear point in last post was

Quote

I want it to do the command and come back to the menu.
.

If we put
title ----This is a title
root
that will be like a menu separator.

If I put
title /fat mkdir
/fat mkdir (fd1)/%FF%
it acts the same. I cannot select it. Trouble is, I want to select it.

If I put
title /fat mkdir
/fat mkdir (fd1)/%FF%
boot
it does what I want but says the kernel should be booted before or something.


( latest Grub4dos btw)(before anyone asks:P)

#57 steve6375

steve6375

    Gold Member

  • Developer
  • 2,189 posts
  • 44 topics
  • Location:UK
  • Interests:computers (!), programming (masm,vb6,C,vbs), OSes, photography,TV,films,guitars
  •  
    United Kingdom
  • Time Online: 68d 3h 6m 19s

Posted 30 March 2012 - 08:46 PM

You can select any menu item using cursor left or right.

try using
configfile /menu.lst
Steve
Visit my website at RMPrepUSB.com for partitioning, formatting, testing, imaging and making bootable your USB Drive under Windows (supports FAT16/FAT32/NTFS/ext2 file volumes, MSDOS/FreeDOS/XP/Vista/Win7/Server2008, boot as Hard disk or floppy disk). Over 70 Tutorials on how to use RMPrepUSB and grub4dos and YouTube Videos too! Includes how to have a multi-install bootable USB flash drive containing all Windows Install ISO files (XP and Vista, WIn7, SVR2K8) on one bootable USB drive (see tutorials #30 and #43). Why not try PXE booting to WinPE3 or Hirens XP over Ethernet from your Windows 7 PC or install Windows onto any networked PC via PXE - see Tutorial #45 for details). Boot Windows 8 from USB.

#58 betrand

betrand

    Frequent Member

  • Advanced user
  • 228 posts
  • 17 topics
  •  
    France
  • Time Online: 24d 7h 37m 42s

Posted 30 March 2012 - 08:52 PM

oh! Ok.
Thanks.

Yeah, tested, super, cool.

:cheers:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users