[Solved] Live external USB drive?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rdonnelly
Level 5
Level 5
Posts: 528
Joined: Thu Nov 27, 2008 9:38 pm

[Solved] Live external USB drive?

Post by rdonnelly »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Using Mint since 2008
*Mint 18.2 KDE
*ASUS 970 PRO GAMING/AURA AM3+ AMD 970 + SB 950 SATA 6Gb/s USB 3.1
*AMD FX-8370 with AMD Wraith cooler Vishera 8-Core 4.0 GHz (4.3 GHz Turbo)
*G.SKILL Ripjaws X Series 16GB DDR3 SDRAM
*nVIDIA GEFORCE GT 610 2GB
Husse

Re: Live external USB drive?

Post by Husse »

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
http://www.linuxmint.com/forum/viewtopi ... =42&t=3250
rdonnelly
Level 5
Level 5
Posts: 528
Joined: Thu Nov 27, 2008 9:38 pm

Re: Live external USB drive?

Post by rdonnelly »

Thanks Husse, I think I will just stick to the CD.
Using Mint since 2008
*Mint 18.2 KDE
*ASUS 970 PRO GAMING/AURA AM3+ AMD 970 + SB 950 SATA 6Gb/s USB 3.1
*AMD FX-8370 with AMD Wraith cooler Vishera 8-Core 4.0 GHz (4.3 GHz Turbo)
*G.SKILL Ripjaws X Series 16GB DDR3 SDRAM
*nVIDIA GEFORCE GT 610 2GB
DevAdv

Re: Live external USB drive?

Post by DevAdv »

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.
rdonnelly
Level 5
Level 5
Posts: 528
Joined: Thu Nov 27, 2008 9:38 pm

Re: Live external USB drive?

Post by rdonnelly »

I am not using Windows, so it does not apply to my situation.
Using Mint since 2008
*Mint 18.2 KDE
*ASUS 970 PRO GAMING/AURA AM3+ AMD 970 + SB 950 SATA 6Gb/s USB 3.1
*AMD FX-8370 with AMD Wraith cooler Vishera 8-Core 4.0 GHz (4.3 GHz Turbo)
*G.SKILL Ripjaws X Series 16GB DDR3 SDRAM
*nVIDIA GEFORCE GT 610 2GB
rdonnelly
Level 5
Level 5
Posts: 528
Joined: Thu Nov 27, 2008 9:38 pm

Re: Live external USB drive?

Post by rdonnelly »

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!
Using Mint since 2008
*Mint 18.2 KDE
*ASUS 970 PRO GAMING/AURA AM3+ AMD 970 + SB 950 SATA 6Gb/s USB 3.1
*AMD FX-8370 with AMD Wraith cooler Vishera 8-Core 4.0 GHz (4.3 GHz Turbo)
*G.SKILL Ripjaws X Series 16GB DDR3 SDRAM
*nVIDIA GEFORCE GT 610 2GB
Locked

Return to “Installation & Boot”