[Solved] Live external USB drive?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help

[Solved] Live external USB drive?

Postby rdonnelly on Mon Feb 09, 2009 3:36 pm

I was wondering instead of a Live CD, could I put this image on an external USB drive? Would I need a separate partition? Right now I have a 500GB, partitioned as, partition 0 50GB NTFS, partition 1 450GB ext3. So can this be done and how?
Last edited by rdonnelly on Tue Mar 10, 2009 7:09 pm, edited 2 times in total.
The OS: Linux Mint Debian 64 KDE Plasma 4.10.5
The Hardware: Dell 17R Special Edition, Intel Quad Core, i7 - 3.40 GHz, 8 GB Ram, HD 1TB
Video NVIDIA GeForce GT 650M 2GB
The Name: Bob
User avatar
rdonnelly
Level 4
Level 4
 
Posts: 409
Joined: Thu Nov 27, 2008 9:38 pm

Linux Mint is funded by ads and donations.
 

Re: Live external USB drive?

Postby Husse on Tue Feb 10, 2009 7:59 am

Strangely enough (perhaps) a hard disk does not seem a good idea but there are tons of solutions and suggestions for pen drives
This is one of many topics
viewtopic.php?f=42&t=3250
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Live external USB drive?

Postby rdonnelly on Tue Feb 10, 2009 8:54 pm

Thanks Husse, I think I will just stick to the CD.
The OS: Linux Mint Debian 64 KDE Plasma 4.10.5
The Hardware: Dell 17R Special Edition, Intel Quad Core, i7 - 3.40 GHz, 8 GB Ram, HD 1TB
Video NVIDIA GeForce GT 650M 2GB
The Name: Bob
User avatar
rdonnelly
Level 4
Level 4
 
Posts: 409
Joined: Thu Nov 27, 2008 9:38 pm

Re: Live external USB drive?

Postby DevAdv on Fri Feb 13, 2009 10:10 pm

it can be done, but you have to remember one thing.

no matter what, windows will only see 1 partition on an external drive if its set as removable.

so make the first partition the partition you want windows to see. then make the second partition your linux partition, and make sure you install grub to the beginning of your linux partition. you do this in the advanced menu of the linux mint installer.

now, the directions im going to type assumes three things.
1.) your running windows xp. as i have no idea how to do it with vista.
2.) your looking for an actual install, and not a "live cd" type environment.
3.) your usb drive is an external usb harddrive, not a flash drive.



after the install you have three options on how to boot into said linux.

you can
-F12 at boot and select "boot from usb" from the list.* you would have to do this each and every time you wanna boot into linux*

-set your bios to automatically boot from usb if a usb bootable device is plugged in.

or

-this one i haven't tested on a usb device but it will probably work. dd the first 512 bytes of your linux boot sector, copy it to windows and point your ntloader at it. that way you get the option to boot into windows or linux from the ntloader. i used this method to dual boot winxp/linux from the same and different hard drives, but never a usb device. i don't really know if the ntloader can boot a usb device or not, but i don't see why it wouldn't able to.

after you install reboot back into the live cd environment and do this.

open the console or terminal window.

"sudo dd if=/dev/xxxx of=/bootsect.lnx bs=512 count=1" minus the quotes.

xxxx would be the partition you installed your bootloader/grub onto. more then likely /dev/sdb3 sdb4 or sdb5.

then mount the other partition*ntfs* and copy bootsect.lnx to it. you can mount this through the graphical user interface.

reboot.

when you load into windows, open your boot.ini, usually c:\boot.ini and add ~C:\BOOTSECT.LNX="Linux"~ to the last line.*minus the ~'s*
example here. do not copy paste this to your boot.ini.
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
C:\BOOTSECT.LNX="Linux"

copy the bootsect.lnx to c:\ and voila, your ntloader should be able to boot the drive.

if you have problems or questions, post here and ill reply as soon as possible.
DevAdv
Level 1
Level 1
 
Posts: 17
Joined: Tue Feb 10, 2009 6:35 pm

Re: Live external USB drive?

Postby rdonnelly on Sun Mar 01, 2009 7:31 pm

I am not using windoze, so it does not apply to my situation.
The OS: Linux Mint Debian 64 KDE Plasma 4.10.5
The Hardware: Dell 17R Special Edition, Intel Quad Core, i7 - 3.40 GHz, 8 GB Ram, HD 1TB
Video NVIDIA GeForce GT 650M 2GB
The Name: Bob
User avatar
rdonnelly
Level 4
Level 4
 
Posts: 409
Joined: Thu Nov 27, 2008 9:38 pm

Re: Live external USB drive?

Postby rdonnelly on Tue Mar 10, 2009 4:05 pm

Installed Unebootin, it nicely prepares the external hard drive, boots as if it were the live cd, but everything is much faster. Cant wait to install the next distro!
The OS: Linux Mint Debian 64 KDE Plasma 4.10.5
The Hardware: Dell 17R Special Edition, Intel Quad Core, i7 - 3.40 GHz, 8 GB Ram, HD 1TB
Video NVIDIA GeForce GT 650M 2GB
The Name: Bob
User avatar
rdonnelly
Level 4
Level 4
 
Posts: 409
Joined: Thu Nov 27, 2008 9:38 pm


Return to Installation & Boot

Who is online

Users browsing this forum: Google Adsense [Bot], Mark Phelps and 30 guests