Jump to content











Photo
- - - - -

boot a vhd with g4d from an ext4 partition...


  • Please log in to reply
7 replies to this topic

#1 ScarySpons

ScarySpons

    Member

  • Members
  • 36 posts
  •  
    Zimbabwe

Posted 08 January 2014 - 01:34 AM

hi all...

i want to boot my xp.vhd which i copied to my ubuntu partition ,ext4.
but g4d keeps erroring -nice word huh- :) ...about contiguous space ...

so before i continue with this project of mine...is it possible to boot a vhd from an ext4 partition using grub4dos?

this is the lst code i use:

title some title...
root (hd0,2) this is my ext4 primary partition.
map /VHD/XP.vhd (hd0) after this i get error 60...contiguous crap...blah blah
map --hook
root (hd0,0)
chainloader /ntldr

hope someone can clearify this out for me.
thanks a bunch!

#2 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 08 January 2014 - 03:31 AM

but g4d keeps erroring -nice word huh- :) ...about contiguous space ...

That error message actually has meaning. Here's a relevant thread.  Yes, you can boot a hard disk image file, if the file is contiguous.

 

P. S. I'll never win, but I wish people wouldn't use "VHD" to mean a simple sector-by-sector disk image file.



#3 tinybit

tinybit

    Gold Member

  • Developer
  • 1052 posts
  •  
    China

Posted 08 January 2014 - 07:16 AM

ext2/3/4, give up.

 

It seems ext2/3/4 cannot create a large contiguous file.

 

Use one of FAT16, FAT32, NTFS, exFAT, and you will be able to create a large contiguous file.



#4 steve6375

steve6375

    Platinum Member

  • Developer
  • 6629 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars
  •  
    United Kingdom

Posted 08 January 2014 - 09:27 AM

http://rmprepusb.blo...ch?q=contiguous



#5 ScarySpons

ScarySpons

    Member

  • Members
  • 36 posts
  •  
    Zimbabwe

Posted 08 January 2014 - 02:58 PM

First of all... thank you guys for taking your time to read and answer my question! :good:

 

@steve; thanks for your website link. Good one! But unfortunately not for my solution on Ext4 partition.

 

@Sha0: sorry i didn't place it in my OP... but i do know that a file should be contiguous if you boot it with option /map ..and with --mem /map  it doesn't have to be contiguous, but then i need 6-8 GB of memory .. and wait a long time before it is loaded :cold:. I know all this.

But if you place it in a linux partition it will always be non-contiguous... that's my problem.. so there is no workaround for this.. only what tinybit says...

 

@tinybit... So i'll go with your answer and give it up for now...: you are correct. For linux there is no option (yet) to place a 6 or 8 GB file in one contiguous space.. it will always be placed in pieces on your Ext4 HD. :dubbio: .. shame on linux. Now i will have to create another partition NTFS (can't do FAT32 because of 4GB limit..)..which is not my first wanted solution.. but i have to now...

 

If someone has a workaround i'd be still very pleased to still hear this! :lightbulb:



#6 tinybit

tinybit

    Gold Member

  • Developer
  • 1052 posts
  •  
    China

Posted 08 January 2014 - 11:15 PM

Another idea:

 

try other linux filesystems than ext2/3/4. I hope there could be one for your need.

 

 

And, If you have to use MS filesystems, I recommend you to use exFAT, because NTFS is too complicated, and I am afraid grub4dos might have no full support for NTFS.



#7 ScarySpons

ScarySpons

    Member

  • Members
  • 36 posts
  •  
    Zimbabwe

Posted 12 January 2014 - 10:34 AM

i didn't try that yet... but is it possible to install ubuntu on an exFAT partition?

this what i have then or want:

-1 recovery NTFS primary partition
-1 primary boot Fat32 partition
-1 active primary system partition ..hoping it could be ext4...but cant.. here i install ubuntu..and put all my vhds to be booted.
-1 data logical partition NTFS.

Is this a good idea?

#8 tinybit

tinybit

    Gold Member

  • Developer
  • 1052 posts
  •  
    China

Posted 13 January 2014 - 09:08 AM

Why do you have to install ubuntu on exFAT? You only need to place your ISO on it.

 

I think you may change this:

 

-1 data logical partition NTFS.

 

to this:

 

-1 data logical partition exFAT. Your ISOs and IMGs can be placed here.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users