LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help with USB install. (https://www.linuxquestions.org/questions/linux-software-2/help-with-usb-install-758200/)

asininity 09-28-2009 05:44 AM

Help with USB install.
 
OK I'm trying to set up a usb stick with two partitions, one for all my files and a suite of portable apps such as LiberKey for windows based machines and the other partition with Puppy Linux on it so I can boot it up.

I've partitioned the drive I have a large partition for the liberkey/files and a smaller one for Puppy. My problem is that Puppy wont boot despite its partition being maked as bootable in gparted.

linus72 09-28-2009 06:11 AM

OK
sounds good

Umm...need to know how you formatted the usb?
did you install syslinux if using fat32
or grub if using ext2?

so, please give more info?

if it was my usb it would be as so;
example my usb is sdb1 and sdb2

sdb1 fat32 holds puppy and any files
sdb2 ext2 holds puppy save file

you can actually just use one partition
as puppy can save to partition it boots from

asininity 09-28-2009 06:48 AM

Ok think I know where I've gone wrong. I formatted the bigger partition with LiberKey and files with fat32. Formatted the smaller partition with puppy with ext3 as I believe 4.3 supports it. I didn't put grub on there. How do I go about installing it?

sdb1 = fat32 for liberkey files
sdb2 = ext3 for puppy linux

I was unaware that I could boot from puppy whilst having liberkey on the same partition.

linus72 09-28-2009 07:09 AM

I dont know what liberkey is?

anyway, it may be harder trying to boot puppy/linux from sdb2...

and you should probably make sdb2 ext2, as it will save some space

so, if you can put it on sdb1, we gotta install syslinux
or if you wanna/have to go with sdb2 I will walk you thru that

asininity 09-28-2009 07:36 AM

Apologies LiberKey a set of portable apps much like PortableApps but imo better.

Before I decide which to do, what is easier? What do you recommend?

linus72 09-28-2009 07:40 AM

liberkey looks pretty cool

I dont have windows at all dude
No windows here:)

Um, your gonna usually need the 1st partition as fat32 for some windows pc's
or they may not recognize usb...

ok, we can try to get grub going from sdb2

do you have a linux livecd available now?
to install grub we prob need linux livecd

asininity 09-28-2009 07:51 AM

I only have windows to play games on which unfortunately linux cant (yet, I hope) and because theres still some things I can do in windows that I cant in linux such as find out system (hardware) details, network details, etc. This is not a knock on linux just fact with games and my lack of knowledge in linux.

I like liberkey mainly for at work.

I did have the livecd however my 2 yr old just broke it this morning and that was my last cd, need to buy more later when shes woken up. I thought windows might have a problem if the fat32 partition wasn't first. If you could run through the instructions though it would be good and I can do them once I can burn a new cd.

Thanks mate.

asininity 09-28-2009 07:52 AM

Double post.

linus72 09-28-2009 08:02 AM

OK

assuming your going to be using a Ubuntu or puppy livecd:

1) boot off the livecd, and get to desktop
insert usb and make sure sdb2 is mounted
ubuntu will do this auto probably

2) open a terminal, in ubuntu become root
with
sudo su
puppy your already root

3) now, make a boot and grub folder on usb

Code:

mkdir -p /mnt/sdb2/boot/grub
in ubuntu it will prob be

Code:

mkdir -p /media/disk/boot/grub
now, install grub to usb sdb2

Code:

grub-install --root-directory=/mnt/sdb2 /dev/sdb
that will install grub to sdb2

now, you need a menu.lst to go in boot/grub
here is example puppy menu.lst

Code:

default 0
timeout 30

title Puppy persistent
root (hd0,1)
kernel /vmlinuz root=/dev/ram0 pmedia=usbflash pfix=copy
initrd /initrd.gz

title Puppy fresh boot
root (hd0,1)
kernel /vmlinuz root=/dev/ram0 pmedia=usbflash pfix=ram
initrd /initrd.gz

not sure if grub will be recognized from sdb2
though it should hopfully

tell me if that works
remember, were setiing up grub to boot usb as 1st hd, 2nd partition
(hd0,1)

linus72 09-28-2009 08:04 AM

Make sure what usb device is before installing grub!

puppy may see usb as sdb1
ubuntu may see usb as sda1

enter "mount" in terminal while usb is inserted to find out
also, fdisk -l, as root will show all partitions
thats a - and little L
fdisk -l

linus72 09-28-2009 08:13 AM

just wondering
but, maybe you could use a Linux Live toolkit running persistent off USB?

I got a few

ThorsHammer
and now

PocketWriter-full

you wanna try either??

asininity 09-28-2009 08:39 AM

Sorry bare with me but what are they (thorshammer, linux live toolkit, and pocketwriter)?

linus72 09-28-2009 09:27 AM

Oh

sorry
heres thorshammer info/download
http://www.linuxquestions.org/questi...remble-751227/

heres alpha build of PocketWriter
http://www.linuxquestions.org/questi...nd-hdd-758196/

if all thats too much info:)

download link for thorshammer
http://multidistro.com/downloads/ham...mer-090109.iso

link for pocketwriter
http://multidistro.com/pwl/PWL-FULL.tar.gz


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