run linpus from a thumb drive?

Discussion in 'Linux' started by qweasd, Oct 5, 2008.

  1. qweasd

    qweasd

    Joined:
    Sep 10, 2008
    Messages:
    13
    Likes Received:
    0
    Okay, just spent a good while looking through all the posts I could find on this forum and can't seem to get a clear definitive answer for this... some seem to imply it works some seem to imply the opposite. I have the linpus ssd model on which I've installed XP. Before I did that though I made an image of the linpus install using Acronis True Image (put to an external drive). I'd kinda like to occasionally boot linpus but not often enough to warrant having it permanently installed on my SSD. So, I've seen some posts that implied that you can install and boot most Linux distributions on usb thumb drives, but haven't seen any that said anyone is successfully doing it with the linpus install. I was hoping that I could restore the linpus image to a thumb drive and then use f12 to boot it whenever I wanted. I know that there are some things I would need to do to make the drive bootable and I'm guessing that there would be some config files I'd need to edit to make the install point to the usb drive instead of the ssd drive.... so, any know for sure one way or another if it's possible? thx...
     
    qweasd, Oct 5, 2008
    #1
  2. qweasd

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    I haven't tried it, but here's my guess:
    1. Create one ext2 partition on the usb stick marked bootable.
    2. Restore Linpus to the usb stick.
    3. I'm assuming the AA1's drive (SSD or HDD, doesn't matter) is /dev/sda and usb stick is /dev/sdb)
    Edit /etc/mtab and /etc/fstab on the usb stick such that root is /dev/sdb1.
    4. Install grub to mbr of usb stick
    5. Boot from usb stick and curse extensively if the above doesn't work.
     
    RockDoctor, Oct 6, 2008
    #2
  3. qweasd

    qweasd

    Joined:
    Sep 10, 2008
    Messages:
    13
    Likes Received:
    0
    Thanks for taking the time to reply... I'm going to try this in the next day or two and will post back with my results. Is it pretty much just the mtab and fstab only that I'd need to modify as far as you know? Thanks again...
     
    qweasd, Oct 6, 2008
    #3
  4. qweasd

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    Now that you've got me thinking about it, there's probably something in the /boot/grub/grub.conf file that'll need to be changed. I'm not on my AA1 right now, so I can't be very precise, but in the entry for Linpus, there will be a title line followed by a line that says something like
    Code:
    root (hd0,0)
    hd0 is the system hard drive (/dev/sda); so the above line should probably be changed to reference hd1
     
    RockDoctor, Oct 7, 2008
    #4
  5. qweasd

    qweasd

    Joined:
    Sep 10, 2008
    Messages:
    13
    Likes Received:
    0
    Cool, thanks again for replying. In originally researching this on the forum I found a bunch of questions but no difinitive answers so if I can get it working it'll be good to have all the steps in one place (for the next poor sap that tries). And if it doesn't work out at least I'll document why...
     
    qweasd, Oct 7, 2008
    #5
  6. qweasd

    blackhawk

    Joined:
    Aug 19, 2008
    Messages:
    122
    Likes Received:
    0
    blackhawk, Oct 7, 2008
    #6
  7. qweasd

    qweasd

    Joined:
    Sep 10, 2008
    Messages:
    13
    Likes Received:
    0
    Thanks for that... yeah, I think I'd seen that before but for some reason didn't catch it on my last searches. It looks like it pretty much follows along with what you'd described (once the image is on the drive) so that's good. Just got the drive today so hopefully will get a chance to try it tonight. Thx...
     
    qweasd, Oct 7, 2008
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.