LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install linux to usb-powered hdd? (https://www.linuxquestions.org/questions/linux-newbie-8/install-linux-to-usb-powered-hdd-856390/)

jefro 01-15-2011 02:56 PM

What you expect to do with this thing? Basically you want it to work, and not care about the internals, persistence or full install.

The live cd/dvd's and now usb images that are offered are made to run on a wide range of devices by default. It is not a single install as in old days, you end up with some degree of bloat and slower a bit because all the support.

As I say some distro's offer a simple usb image too. It is a full install made again to be portable an easy to boot on many systems.

A normal usb hard drive is not as sturdy in my opinion as a usb flash drive. An 8 gig usb flash is pretty cheap and you can fit 20 in your pocket. Runs any normal desktop up to some very demanding workstation and server uses.

newbienumberabillion 01-15-2011 03:30 PM

@schneidz Thanks for the warning! I guess no auto X config might be an issue. But I can always do "safe mode", right? Or is that not right?

newbienumberabillion 01-15-2011 03:38 PM

@jefro Sorry if my use case wasn't clear. Basically what I want to do is to take my entire "computing environment" with me wherever I go. So at home, on my desktop, I boot into linux from my external usb hdd. I play games, browse the web, write software, watch movies, etc. Then say I go on a trip and take my laptop with me. Well, instead of having 2 OS's, I just take my external USB HDD with me, and boot from it, same as my desktop. I boot into my same linux environment, same programs, same data in the same folders, same everything. Then say I'm at my parent's house, and they have a desktop there. I could use this same usb hdd to boot from. I get everything the same again. That's my vision, anyway.

So far, I think I understand that pendrivelinux way of doing things has the advantage of auto X configuration. But that seems to be the only advantage. I could certainly be missing something though. Thanks again!

schneidz 01-15-2011 04:39 PM

Quote:

Originally Posted by newbienumberabillion (Post 4225498)
@schneidz Thanks for the warning! I guess no auto X config might be an issue. But I can always do "safe mode", right? Or is that not right?

not sure what you mean by safe mode... my experience is when xorg.conf is fubar it will boot up and drop you into a command-line (so you have a fully running linux system, just no x).

newbienumberabillion 01-15-2011 06:30 PM

@schneidz Hrm... do you think there might be a way to do the liveUSB X auto-config with a normal install? Not that I fear the command line, but I'm going to want to watch videos, use firefox, etc..

cmas1148 01-15-2011 06:57 PM

Ohh don't even get me started on the beauty of a portable Ubuntu install. Installation to a USB HDD is easy in Ubuntu, just run the install like normal, selecting your USB HDD to install onto, and be certain that the bootloader will also be installed onto the external drive, not the internal drive of the computer used to complete the install.

Performance issues? My Western digital MyPassport 3200 drive has only slight performance degration compared to a full blown SATA drive install most are used to. It will not kill your HDD so long as it is a rotary platter HDD and not a flash based drive. (If it makes noises when it is powered on/writing or reading data it is a rotary based HDD)

I love it and use it often, and yes, make sure to do some backups or just be careful.

linus72 01-15-2011 07:20 PM

you can install a script from Slax named xconf that will work just as Slax's does
I have used it on my 10.04 & 10.10 installs on an old sis graphics equipped PC

download this livecd-kit for my slax derivatives
http://multidistro.com/Kernels/2.6.3...ecd-kit.tar.gz

extract it and go into that folder, extract the "essentils" folder
as root copy the /etc/X11/gui.conf, /etc/profile.d/slax.sh, /etc/rc.d/rc.slax, and /usr/bin/xconf
into your ubuntu install
make sure to copy /etc/rc.d/rc.slax to /etc/init.d/ in a debian/ubuntu install

put on your grub2 grub.cfg on the kernel line "autoexec=xconf"

if you do a hdd install of whatever distro, probably edit /etc/fstab and add "noatime" parameter
https://wiki.archlinux.org/index.php/Fstab

newbienumberabillion 01-16-2011 02:39 AM

@cmas1148 Cool, so you actually do what I'm theorizing? Do you move it around various machines? How do you deal with the various graphics card drivers? Do you use an auto X config script ala liveUSB installs? Thanks for the input! :)

@linus72 Awesome, thanks! This project is looking more and more doable. I think this is exactly what I need!

Thanks everyone :) What a great community!

schneidz 01-16-2011 03:31 PM

Quote:

Originally Posted by newbienumberabillion (Post 4225587)
@schneidz Hrm... do you think there might be a way to do the liveUSB X auto-config with a normal install? Not that I fear the command line, but I'm going to want to watch videos, use firefox, etc..

i think most live-usb's use the generic vesa driver so anything graphics intensive will be slow.
if speed is a concern you can probably hack together some script that says something like:
Code:

if [ "`lspci | grep nvidia`" ]
then
 sudo insmod nvidia
elif [ "`lspci | grep ati`" ]
then
 sudo insmod radeon
elif  [ "`lspci | grep intel`" ]
then
 sudo insmod sandybridge
elif ...

you will probably need to make the same hack for different wifi adapters, printers, ...

newbienumberabillion 01-17-2011 11:20 AM

@schneidz Awesome, thanks :) I'm hoping to just use the auto config stuff that slax and its ilk use. This project is looking more and more doable!

linus72 01-17-2011 12:08 PM

The new "replacement" for Slax is called Porteus and runs just like Slax but it's based on newer Slackware,etc
Fathom, the maintainer, has a great setup and it should auto-detect your card as most recent distro's do
plus it's 228mb and runs great
http://www.porteus.org/

newbienumberabillion 01-17-2011 06:08 PM

@linus72 Thanks so much for all the help! Porteus looks cool :)

nooby 01-18-2011 05:57 AM

Linux thanks for telling about Porteus, very new, DW had no entry for it yet.

I managed to make a frugal install but failed to get it to show pics and play musicvideos.

Could it be that one need to install a picture viewer and a mediaplayer using their re... archives?


All times are GMT -5. The time now is 04:57 AM.