LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2012, 01:18 AM   #1
GreggT
Member
 
Registered: Jan 2012
Distribution: Debian, CentOS, Fedora, TinyCore
Posts: 45

Rep: Reputation: Disabled
debian on flash drive?


Well I read on their site that the main way was just treat the flash drive as a regular hard drive and install it on there... so I went ahead and did that (keep in mind other OS's do work fine) and everytime I try to install it, whether graphical.. or not.. or automatic.. I get a GRUB boot loader error at the very end of the install, after it does everything.. so the only thing that is failing is the boot loader.

Does anyone have any tips or tricks? I'm working virtually right now, since after I had this error I tried on a separate machine but it was the same error and it only seems to happen with debian. If anyone needs to I'm open to remote connecting and you can show me some things.

Thanks
 
Old 04-01-2012, 01:58 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. Getting the installable image on a bootable USB stick is half the battle - it sounds like you've already accomplished that. Cool

2. Q: What's the exact error message? That would help enormously...
 
Old 04-01-2012, 02:53 AM   #3
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
If you mean a regular Debian install you can do it and is not hard to do.

If you are talking about DebianLive and running it as a live session that is more difficult. I have successfully set up multiple DebianLive isos on a flash drive once doing it manually. You can use multisystem to do it but even multisystem has difficulty running in Debian so you will probably need an Ubuntu install to make a Live session USB with Debian on it.
 
Old 04-01-2012, 09:05 AM   #4
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,349

Rep: Reputation: 225Reputation: 225Reputation: 225
You could also use a premade usb-hdd image (http://cdimage.debian.org/cdimage/re.../i386/usb-hdd/)

Example with the xfce desktop:

$ wget http://cdimage.debian.org/cdimage/re...ce-desktop.img
$ dd if=debian-live-6.0.3-i386-xfce-desktop.img of=/dev/sdX (X being your usb drive)

Next, run gparted (or whatever you use) as root (umount the usb drive if needed)
*set the first partition as boot (label)
*add a new partition for persistence with label live-rw

... and you're done.

Last edited by jens; 04-01-2012 at 09:23 AM.
 
Old 04-01-2012, 10:25 AM   #5
GreggT
Member
 
Registered: Jan 2012
Distribution: Debian, CentOS, Fedora, TinyCore
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by paulsm4 View Post
Hi -

1. Getting the installable image on a bootable USB stick is half the battle - it sounds like you've already accomplished that. Cool

2. Q: What's the exact error message? That would help enormously...
Something along the lines of "Grub: failed to install bootloader" I'll reinstall now so I can get the exact message. I'm not sure but it seems you're talking about putting an install image on there? To install to other computers? I am talking about putting a full installed version that boots, to the desktop, when you plug it in a computer and boot to from USB

Quote:
Originally Posted by k3lt01 View Post
If you mean a regular Debian install you can do it and is not hard to do.

If you are talking about DebianLive and running it as a live session that is more difficult. I have successfully set up multiple DebianLive isos on a flash drive once doing it manually. You can use multisystem to do it but even multisystem has difficulty running in Debian so you will probably need an Ubuntu install to make a Live session USB with Debian on it.
Well a live boot would be closer to what I want, but a live boot you cannot write to (since they're CD's or DVD's usually) I want an actual install

Quote:
Originally Posted by jens View Post
You could also use a premade usb-hdd image (http://cdimage.debian.org/cdimage/re.../i386/usb-hdd/)

Example with the xfce desktop:

$ wget http://cdimage.debian.org/cdimage/re...ce-desktop.img
$ dd if=debian-live-6.0.3-i386-xfce-desktop.img of=/dev/sdX (X being your usb drive)

Next, run gparted (or whatever you use) as root (umount the usb drive if needed)
*set the first partition as boot (label)
*add a new partition for persistence with label live-rw

... and you're done.
Sorry you totally lost me, are you talking about doing this within a linux distro? (no problem, I'm far from limited on resources, just tell me what I need to get this going)






A little more info on what exactly I am doing:
I normally run my dedicated machines off of USB flash and have multiple copies of the OS, in case it goes down it's a quick switch and bam, back up and running.
Inside the machines I usually have two drives that are raid1 where I'll have all of my database information being read and written or my web information, etc...

So these would be just OS installs, and ext2 would be preferred if anyone has an idea how to do that. I have never had any problems before so I am totally lost - I don't really know that much about linux especially installing... I know more of setting up database and web stuff

Last edited by GreggT; 04-01-2012 at 10:31 AM.
 
Old 04-01-2012, 11:03 AM   #6
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Here is some info to troubleshoot GRUB problems in Debian: http://wiki.debian.org/GrubRecover

Why ext2??
 
1 members found this post helpful.
Old 04-01-2012, 11:05 AM   #7
GreggT
Member
 
Registered: Jan 2012
Distribution: Debian, CentOS, Fedora, TinyCore
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snowpine View Post
Here is some info to troubleshoot GRUB problems in Debian: http://wiki.debian.org/GrubRecover

Why ext2??
It isn't journaled. I'm installing on flash :P


That super grub disk looks pretty cool, after this install I'll give it a shot and see if it can do the grub stuff for me, thanks

Last edited by GreggT; 04-01-2012 at 11:07 AM.
 
Old 04-01-2012, 11:23 AM   #8
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Journaling is very nice if, for example, the power is interrupted or the flash drive is accidentally removed during operation.

Just a suggestion.
 
Old 04-01-2012, 11:30 AM   #9
GreggT
Member
 
Registered: Jan 2012
Distribution: Debian, CentOS, Fedora, TinyCore
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snowpine View Post
Journaling is very nice if, for example, the power is interrupted or the flash drive is accidentally removed during operation.

Just a suggestion.
The flash drive has no information that changes on it, it's just the operating system.

I'll have and do have multiple clones of the setups for all machines, power doesn't go out and there are many big UPS' here.

Thanks for the suggestion, that's more toward mechanical drives though which I will have and will be doing and have only had better results in the past doing it this way.





The exact errors I'm getting are coming up in a few minutes, it says 1 minutes 20 seconds remaining on the downloads for the install
 
Old 04-01-2012, 03:40 PM   #10
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
Quote:
Originally Posted by GreggT View Post
Well a live boot would be closer to what I want, but a live boot you cannot write to (since they're CD's or DVD's usually) I want an actual install
Check this and this out. The site has instructions and of you want more head over to PendriveLinux. As already stated create 2 partitions with the second being a rw for persistence and you are done.
 
Old 04-01-2012, 04:33 PM   #11
GreggT
Member
 
Registered: Jan 2012
Distribution: Debian, CentOS, Fedora, TinyCore
Posts: 45

Original Poster
Rep: Reputation: Disabled
http://i.imgur.com/1FJ8z.jpg

http://i.imgur.com/zIcwD.jpg

http://i.imgur.com/LN42Y.jpg

so this is where I'm stuck at.. I BBC for imbed images doesn't work so I just have the links above.



Going to test out that super grub disk linked above, hopefully that is the solution

Last edited by GreggT; 04-01-2012 at 04:35 PM.
 
Old 04-01-2012, 05:07 PM   #12
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
When you downloaded the iso did you check it against the checksum? You may have a faulty download.
 
Old 04-01-2012, 05:09 PM   #13
GreggT
Member
 
Registered: Jan 2012
Distribution: Debian, CentOS, Fedora, TinyCore
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
When you downloaded the iso did you check it against the checksum? You may have a faulty download.
It works on virtual drives just not the flash drive, it is the net install so most stuff is downloaded as it installs, could that be a problem?
 
Old 04-01-2012, 06:59 PM   #14
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
The flash drive should be seen as just another drive. I'm not sure with the availability of DebianLive I'd be trying a netinst on a flash drive anyway.

I have to go out for a while but I might try later today to do what you are doing and see what happens.
 
Old 04-01-2012, 07:12 PM   #15
GreggT
Member
 
Registered: Jan 2012
Distribution: Debian, CentOS, Fedora, TinyCore
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
The flash drive should be seen as just another drive. I'm not sure with the availability of DebianLive I'd be trying a netinst on a flash drive anyway.

I have to go out for a while but I might try later today to do what you are doing and see what happens.
Lead me in the correct way I am "medium level" familiar with linux once I'm inside but as far as installing I'm pretty much brand new, other than just clicking next through everything or setting up a basic raid 1...

I'm unfamiliar with DebianLive netinstall? I am all ears, all I need to be able to do is boot from the USB to the desktop (GUI desktop is nice but I can work through a non GUI too.. either way GRUB is the problem I have) and then I need to be able to edit some key files that will save when restarting or something, like the apache2.conf and other files / firewall settings.. on the live CD I cannot do this

http://www.debian.org/CD/live/

I have never really done anything with DebianLive but it seems you recommend it? Let me know when you get back, I'll download them now so I am ready to go, thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 6 LXDE - wont detect flash drive Gam3r21 Debian 2 03-24-2011 11:07 PM
How To Install any Debian image into a Flash drive/disk or HDD Dexter_ObrigadO Linux - Newbie 4 03-11-2009 02:00 PM
Debian upgade, and now usb flash drive doesn't work xucaen Debian 5 10-10-2006 01:51 PM
Can't mount USB Flash Drive on debian woody Chrysalid Linux - Hardware 1 07-31-2005 07:37 AM
Installing Debian on an external USB harddrive (NOT a flash drive) Hikaru79 Debian 1 06-23-2005 10:40 PM


All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration