Jump to content

bl0ndynek

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by bl0ndynek

  1. I've hardly messed with VirtualBox, and it was only on a Windows machine, but it seems like you're just making an image of your flash drive and booting from that, or am I wrong?

    I don't make any image. This is the Linux way. When you plug pendrive into linux machine it shows as /dev/sdx

    (where 'x' is {a,b,...}) so I actually mount device not an image. What I'm doing is just make any one (in this VirtualBox) can write and read from it and generate vmdk file for it (It's little file some KB, where my pendrive is 8GB). Anyway, I do it just once. As long as my pendrive is showing in my system as /dev/sdb I don't have to generate new vmdk file. Just make changes on pendrive and run VirtualBox.

    One thing when I make changes ofcourse I have to mount somewhere my device(or hal do it for me),but when I want to boot form it in Virtualbox I have to unmount it. And that's it.

    I hope now it's more clear and sorry for my English it's not my native language

  2. Actually I boot from usb in VirtualBox it's go like this:

    my usb is format as one partition fat32.

    i got grub2 on it

    pendrive is sdb

    1. unmount pendrive

    sudo umount /dev/sdb1

    2.Changed permissions

    sudo chmod 777 /dev/sdb1
    sudo chmod 777 /dev/sdb

    3. Created rawdisk:

    VBoxManage internalcommands createrawvmdk -filename ~/mnt/new_usb.vmdk -rawdisk /dev/sdb -register

    4. Set permissions for new_usb.vmdk

    sudo chmod 777 /dem/mnt/new_usb.vmdk

    and now when I mount in VirtualBox new_usbvmdk as disk, umount pendrive in USB section

    And it works :]

    I use VirtualBox PUEL but I think that normal VirtualBox shuld work.

    For use just make changes in grub.cfg, copy iso to pendrive. unmount run VirtualBox and test :)

×
×
  • Create New...