Archlinux. On QEMU. On your USB. On Windows

- GOAL
    Running ArchLinux 2009.02 on an USB Drive in Windows. Slow? Perhaps. Personally, I think it is actually pretty fast. Though
    I must admit that I don't use funky things like X-windows (KDE, Gnome or something else), it was still pretty fast for a
    complete OS running from an USB stick within(!) another OS.
    So why would you want to do this? It's quite simple, actually. For me, the problem was that I always had to use Windows (XP)
    at my work and wouldn't be able to boot into Arch there using a LiveCD or USB, thus being unable to use all my applications.
    Perhaps you ARE able to boot into Linux at your work, but still, it can become quite frustrating to have to boot into another
    Operating System all the time. With this, you don't have to do that anymore, you can run all your Linux applications IN
    Windows!
- REQUIREMENTS
    - Download QEMU 0.9.0 for Windows
    - Download ArchLinux 2009.02 (later versions will probably work, but I used this version)
    - An empty CD
    - An USB drive of at least 4GiB
- GETTING ARCH
    The first thing you should do once you have downloaded ArchLinux (a task that could take a while, depending largely on the
    speed of your internet connection,) is to burn it to a CD. Perhaps it's different with you, but for me, QEMU wasn't able to
    use the CD-image of ArchLinux properly without it being burned to a CD and being in the real CD-drive. Yes, I know this sucks,
    because this means the installation of ArchLinux on your USB drive is going to take even MORE time, but I'm afraid it won't
    work otherwise. (It didn't work with me, at least, perhaps it is different if you are using a different version of Arch, feel
    free to contact me if this is the case.)
- SETTING UP QEMU
    Once you have downloaded and unzipped QEMU, you have to create a disk image using qemu-img.exe. Fire up a terminal, and run
    "qemu-img.exe create harddisk.img 4000M". This will probably take some time. (Assuming you are doing this on your USB drive,
    if you're not, you still have to copy the file to your USB drive someday, so don't think you've bypassed the test of patience!)
    When it's done, you will have a nice raw image file of 4000 Megabytes without any data in your folder, we are going to need
    this later.
    Now, to be able to boot the ArchLinux CD in QEMU, we have to modify the qemu-win.bat file a bit. Open the file, remove all
    lines, and then write this: "qemu.exe -L . -m 512 -boot d -cdrom /dev/cdrom -hda harddisk.img" Now if you run this batch file,
    it will start QEMU, allocate a maximum of 512MB RAM to the application (use less if you don't have that many, but I recommend
    using as much as possible, since you don't want it to run TOO slow), boot from CDROM (-boot d) and use the /dev/cdrom to
    locate the CDROM image, which should be your (first) CD/DVD-player. The -hda harddisk.img means it will use the file
    harddisk.img as a hard disk drive (duh) which we are going to use to install Arch on. To go on, put the ArchLinux CD in your
        CD/DVD-player, and run the batch file.
- INSTALLING ARCH
    Installing ArchLinux is pretty straightforward, all you have to do is follow the instructions on the screen. There are a few
    points you should keep in mind when installing ArchLinux on an USB drive, though.
    - Don't create too many partitions! When using the 'auto-partitioner', Arch wants you to create seperate partitions for the
    / and the /home folder, I would not recommend doing this if you haven't created a harddisk image of at least 8000M. Because,
    quite simply, otherwise you have to distribute the space (just 4000M) between / and /home, and it can be quite difficult to
    allocate the right amount of space. Believe me, it IS a problem if you run out of space someday. You can't just create a
    bigger harddisk.img file. (Well, technically you can, but that would be a little bit.. difficult for most people.)
    - Don't select too many packages. Assuming you know what you're doing, try to deselect as much as possible (without screwing
    up the whole thing, of course) for a very simple reason, you don't have that much space on a simple USB drive.
    - Of course, you don't have to care at all about the above pointers if you have a very large USB drive. Very large here
    meaning anything larger than 16GB, so yes, that IS pretty large in my opinion.
- SETTING UP QEMU, AGAIN
    So you've installed Arch on your harddisk image, huh? Well done! In any case, we can't use the qemu-win.bat file anymore,
    since we don't want to boot using the CD/DVD-player again. I recommend creating a new batch file in the QEMU folder,
    (call it 'arch-hd.bat', or something like that,) and put the following line into it: "qemu.exe -L . -m 512 -boot c -hda
    harddisk.img", the only thing that is changed is that we don't use the CD/DVD-player anymore, and that we changed the
    it to -boot c which means it will boot from the harddisk image. (Actually isn't so difficult now, is it?)
- FINAL REMARKS
    Now you're ready to go! You've installed ArchLinux on a Virtual Machine on your USB drive, so now the fun can start! One more
    thing that I consider VERY important to know is how to mount your physical hard disk in Arch (in QEMU). Knowing this can make
    it extremety-much easier to install things on Arch, since you can then simply 'download' the packages from your physical
    hard drive.
    To use your physical hard drive in QEMU, add "-hdb \\.\PhysicalDrive0" to the batch-file (arch-hd.bat), this line will assign
    your first physical hard drive to /dev/hdb (or /dev/sdb) in Arch. Remember that you still have to mount it! (Someting that can
    be done    by writing "mount -t ntfs /dev/hdb1 /mnt/" in the terminal. Assuming your first hard drive uses the NTFS-format, and
    the main partitions is /dev/hdb1, this should put all files and filders in /mnt/. It is possible that your partition is called
    /dev/sdb1, in that case simply replace hdb1 with sdb1.)
    Please keep in mind that there are many, many more parameters you can use in QEMU, so reading the documentation will probably
    be a very good thing. You never know, you MIGHT even learn something!
- FREQUENTLY ASKED QUESTIONS
    Q. When configuring the system in the ArchLinux installer, it just stopped doing anything when it was saving the configuration
    files! Did it somehow crash?
    A. No, this is normal. For some reason (called 'writing speed'), this just takes time. Much time. Lots of time. This is the real
    test of patience.
    Q. How do I get support for sound/video card/networking/etc. in QEMU?
    A. Read the documentation!
    Q. Help! QEMU crashed when I tried to run the .bat file!
    A. Check whether you are using the exact same .bat file as given in the instructions. If it still doesn't work, contact me and
    I will try to solve your problem if you provide me with enough information about it. (So sending me a message containing
    something like "Help! QEMU doesn't work on my PC!" will probably not get you much of a useful response.)

thank you, quite useful. btw i had to use qemu 0.9.0 for installation - somehow i was unable to make 1.5.50 boot (from neither iso nor physical cdrom). but then i had to switch back to the newer version because i was getting a lot of libata2 exception messages on console. also, i had to update UUID for some reason in grub.cfg. performancewise it's not very fast but it fits my needs. i am using the following command to start my qemu archbox: qemu-system-i386.exe -boot c -hda harddisk.img -net nic,model=virtio -net user -redir tcp:5555::22 and then i can connect using putty on my local port 5555. the good thing about this is that you really don't need admin rights.

Similar Messages

  • I am having a problem when I plug my iPod into my macbook. When I plug the cable into my mac I get the following message - "Because a USB device was drawing too much power from your computer, your USB device has been disabled." PLEASE HELP!

    I am having a problem when I plug my iPod into my macbook. When I plug the cable into my mac I get the following message - "Because a USB device was drawing too much power from your computer, your USB device has been disabled." CAN SOMEONE PLEASE HELP!

    The rest of the message in the pop up window says "To prevent damaging your computer, the USB device drawing too much power has been disabled. Other devices may have also been disabled. When you disconnect the device drawing too much power, your other USB devices will be enabled again."

  • NI USB-8473 Windows can not find Driver

    After I install my CAN Software 2.6.1 and connect my USB device, Windows starts the Hardware Wizard but, can not find the Drivers for this device.  I started out with 2.4 and uninstalled and reinstalled it which did not help and then I upgraded to 2.6.1.  This did not seem to help either.  My impression is that this is something to do with Windows or the computer, but I thought I would ask if anyone has seen this problem before in case it is a hardware or software issue.
    Solved!
    Go to Solution.

    Hi,
    Thank you for your post.  The NI-CAN driver is an inf file titled nican.inf.  Instead of automatically detected the driver in the Found New Hardware Wizard, try browsing to the nican.inf file.  This file is found in the following directory: C:\Program Files\National Instruments\NI-CAN\staging.
    If this doesn't work, I would run the Microsoft Windows cleanup utility linked below and remove all NI-CAN registries from your system and then reinstall the driver once again.
    http://support.microsoft.com/kb/290301
    Regards,
    Todd V.
    National Instruments
    Applications Engineer
    NI Prototyping Community

  • HT5634 The "automatic Install" in the windows support software does not work. I cannot see the USB in Windows to manually start set uo

    The "automatic Install" in the windows support software does not work. I cannot see the USB in Windows to manually start set up.
    I have downloaded windows support software from Apple 3 time with the same result.  Where can I get a clean copy of the Windows support software?

    Did you correctly format your usb stick in accordance with the Boot Camp installation instructions? Go here to the Boot Camp System Requirements page, http://support.apple.com/kb/HT5634, look for your computer model/year and download the correct version of Windows Support software.

  • What format does my usb containing windows iso image have to be to install it using bootcamp?

    What format does my usb containing windows iso image have to be to install it using bootcamp?

    figure this is related to your other post so let's keep it there
    https://discussions.apple.com/message/25504783#25504783

  • I am trying to upload photos from my digital camera. Every time I try to plug it into my USB, the following error message comes up: "Because a usb device was drawing too much power from your computer, one or more of your USB devices have been disabled."

    I am trying to upload photos from my digital camera. Every time I try to plug it into my USB, the following error message comes up: "Because a usb device was drawing too much power from your computer, one or more of your USB devices have been disabled."
    I don't have anything else plugged into my MBP, so I am confused as to what's going on.  This problem has never happened before.  MBP is less than a year old - about 9 months old.  HELP

    Get a powered USB hub.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • When I restart my computer and hold the option key after creating a bootable usb with windows 7 and partitioning only the original partition shows up. Not the windows one or the bootable usb.

         Okay so first things first this isn't the newest macbook pro. When I open about my mac and go to system report it says it is a Macbook Pro 3,1 and the Boot Rom Version say MBP31.0070.B07. Originally when starting up Boot Camp Assistant there where only two options, the "create windows 7 bootable usb" was not there at all. So after some editing and helpful tutorials I was able to get the option show up and created a bootable usb with windows 7 and downloaded the support software onto a separate flash drive. Finally I did the last step and created a second partition for windows. Once the process is complete my computer automatically restarts.
         This is where the problem is. Once my computer makes the booting up sound it doesn't load up windows it gets stuck on a apple logo as if it's trying to reastart normally and can't. So I shut down and this time I hold down the option key during start up. It brings up the main partition and some recovery thing but no windows partiton and no bootable usb.
         I forgot to mention that I am running OS X 10.9.3. Okay any body want to help me out? Iv'e been at this for hours and can't get an inch closer to having windows. Please and thank you!
    P.S. If I missed a discussion that answer my question just point me to it. Iv'e been looking for a while, but who knows i might have missed one.

    The only known way to make it work on an external drive is by first installing Windows onto an internal drive, then cloning the install to an external Thunderbolt drive. Thunderbolt is seen as an extension of the internal bus, so Windows doesn't see it as an external device.

  • Firefox crashes upon start with the error message: Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts.

    I have tried to open firefox multipul times only to receive the error message:
    We're Sorry
    Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts.
    To help us diagnose and fix the problem, you can send us a crash report.
    When I send the report and try to restart firefox and see that I have several tabs open, but it quickly shuts down again before I can do anything other then glance at it.

    http://kb.mozillazine.org/Firefox_crashes

  • Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts.

    do not know what's going on but the Firefox crashing, and is still crashing, and crashing back again ..
    This problem is not resolved for a long time 'and I wonder why not fix this problem so far?
    These details.
    We're Sorry
    Firefox had a problem and crashed. We'll try to restore your tabs and windows when it restarts.
    To help us diagnose and fix the problem, you can send us a crash report.

    I was having the same problem.... But I keep forgetting that when you upgrade firefox... or it updates automatically... you need to right click on the firefox start up icon, go into properties, click on the compatibilities tab, and put a check in the "Run This Program As An Administrator" box, then hit apply. Start Firefox, and it should work OK. Problem is...each time you upgrade firefox and/or I think Adobe flash... you need to make sure that box is checked. This is on Firefox 15.0.1 with Adobe Flash 11.4.402.278 all up to date, Windows 7 64bit. If Firefox has Adobe flash add-on, it needs to run in admin mode or it will crash.

  • "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled." HELP!

    When I plug in my son's iPad I get this message "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled." I only have one charger for this iPad all my other chargers are for iPhone 4s. I have pluggerd it in different outlets around the house and the iPad will not charge. When I plugged it on my lap top to back it up it gave me the warning message. HELP!!

    I have the same problem on my Air. The message first came up while my iPhone was connected to it for some time. Since then, it pops up ALL THE TIME, whithout anything being connected to the USB port, at what appear to be random intervals that vary between about one hour and a few seconds. I have tried resetting the SMC and  the PRAM, but no results. A quick search revealed that thousands of users are facing this problem, but Apple has yet to provide a solution. Please help!

  • "Because a USB device was drawing too much power from your computer, one  or more of your USB devices have been disabled.

    Here is the total error message:
    "Because a USB devce was drawing too much power from your computer, one
    or more of your USB devices have been disabled.
    To prevent damaging your computer, the USB device drawing too much
    power has been disabled. Other devices may have also been disabled.
    When you disconnect the device drawing too much power, your other USB
    devices will be enabled again."
    Now in contrast to every other thread on this i get this error message eveytime i connect my soundcard (interface). Not when i start up the mac or anything, just when i connect the sound card. (the soundcard does not have its own power source but note that this has never happened before and i have had this soundcard for about a year!)
    It deactivates so i cannot use it.
    I have tried:
    Connecting the soundcard to my mothers mac -> it worked!
    Connecting an external harddrive to my mac -> it worked!
    so basically, i can't be the soundcard or the cable and it cannot be the mac USB port?
    I don't know what to do! i really need this to work! anyone got an idea??

    Hi, ryankeenanrk. 
    Thank you for visiting Apple Support Communities. 
    I would recommend trying the steps in both articles below and test the results. 
    OS X Mountain Lion: Reset your computer’s PRAM
    http://support.apple.com/kb/ph11243
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    Cheers,
    Jason H. 

  • New iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    I have a new iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    If you just bought the iMac and the Sjuperdrive take the superdrive back and get a refund. The by any other brand external DVD drive that connects by USB and try that. Most come with a Y USB cable to allow you to connect to 2 USB ports to supply enogh power to the drive IF Needed.
    Or take both back and get a refund on both, you have 14 days to return it no questions asked, and buy another iMac and some other brand external DVD drive.

  • I keep getting this message : Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled.

    I keep getting this mesage : Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled.
    I need to charge my phone but it's not letting me!! Please help!

    Solution may be found if you search in the "More Like This" section over in the right column and in the article - http://support.apple.com/kb/HT1151. 

  • HT1212 i get this message? "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."

    Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled?
    What do I do?

    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use. One symptom of a bad Lightning cable is the message you are getting.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar      

  • How to fix: "One or more of your USB device drawing too much power..."

    Plugged my iPhone to do my usual download of photos off my phone into my iPhoto library so that I can edit them and post on eBay and Etsy.  Suddenly, I'm getting the error message: 
    "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."
    I'm surmising that it's because my USB cord (connected from my iPhone to MacBook Pro) might be damaged.  It's not charging correctly.  Keeps going on and off when plugged into wall or computer.
    So, will buying a new cord this solve the issue?  I have to get one anyway so I guess I'll find out!
    Meanwhile, for tonight I'll have to do just email the photos to myself.  Ugh.

    It should fix it.  I would unplug all of your other USB devices from the computer and see if it continues with that error.  If so, then certainly replace that cord (do it anyway since its having issues even in the wall)

Maybe you are looking for

  • Window 8.1 and secureboot

    Hi I build my first computer 2months ago using an MSI z87G343 and also a GTX760 twin Frozr 2g and everything went super easy with window8 set-up and got the quick boot option enabled and stuff.  I just did the update to from window 8 to 8.1 and got t

  • PINK! itunes screensaver

    hey all, so i dont know if anyone can answer this question ( and i think i answered it myself) but theres no harm in getting an opinion from you guys... my itunes screensaver is pink! i think it the pixles or something. but all the other screensavers

  • Error : Array constants can only be used in initializers

    Hello All, I am using tableview model and declared two-dimensional array. Getting error Array constants can only be used in initializers in the line retVal<i>[j] =  {  {  createBy,desc,dispName }  }; String[][] retVal; retVal = new String[20][20] //F

  • Cannot find Oracle Database Server 9.2.0.2.0 for W2K (32 bit)

    I need to install Oracle Database 9.2.0.2.0 on W2K (32 bit). Is such a version available for W2k? Please help. I have Oracle 9.2.0.1.0. If 9.2.0.2.0 for W2k (32 bit) has not been released by Oracle, can I later upgrade my 9.2.0.1.0 to 9.2.0.2.0? Kail

  • Re-Connecting HP Officejet Pro 8500A to the Network

    Hi, My office moved back in 10-2013, Since the move i cant get my HP Officejet Pro 8500A to Re-connect to our Network. When i try and click on share this printer so 3 other pc's in my office can print to it i get a Error Message. It Reads: Printer se