LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-31-2009, 02:50 PM   #1
Don_Nadie
Member
 
Registered: Aug 2009
Posts: 46

Rep: Reputation: 0
[Solved] Bootable Linux & Window$ Portable Apps on 1 USB stick?


I'm a noob with an 8GB USB flash pen drive I'd like to use as a Damn Small Linux bootable drive. I'd also like to have a separate partition with Portable Apps for Micro$oft Window$ on the same pen drive.

I don't know much about partitioning, altho I was able to frugal-install DSL onto a 4.6GB HD in a 10 year old notebook (used the whole HD for DSL). I actually got a bootable root partition, a swap partition and a 3rd user partition for data all going. If what I'm asking is possible, I assume I only have to undertake one extra partitioning step for the Portable Apps partition.

If it is possible, I'm up for suggestions on what file formats to use. It won't be necessary for Window$ to be able to read any DSL files.

TIA.

Last edited by Don_Nadie; 09-04-2009 at 01:52 PM. Reason: Add "[Soved]" to title
 
Old 08-31-2009, 03:44 PM   #2
portamenteff
Member
 
Registered: Feb 2006
Location: Colorado
Distribution: sabayon
Posts: 179
Blog Entries: 1

Rep: Reputation: 36
DSL is a good choice for Jump drive by the way. It's light enough for older machines, netbooks, cell phones(just kidding.)
Do you currently have linux installed on your machine? You can boot from a live cd of one of the *nixes to, so you have free partition tools, unlike most programs in Windoze, you got to pay. If you have windows, try Partition Magic, or Alcohol either one of these will be able to format the drive for you. Post back here with what operating system you plan on using, and what partition editor you got your hands on. I personally really like Gparted. I'm running Ubuntu, and it's just another package you can apt-get to use. As for the partitions themselves, I'd go with 512 of "swap", 4 gigs for "/" (or root) in ext3 or resiserfs, and the rest for files in a "fat32" or "vfat." (Most usb drive manufacturers reccomend vfat for storage and even come that way by default.) The sizes are really about preference. If your going to spend more time in Linux, then make the / partition larger, if not then the fat partition so that windows has more room to store stuff. Uh, back up your files that are on there first. Have fun, let us know how the partitioning went.
 
Old 08-31-2009, 04:19 PM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
I second DSL
if you have the spare change, get the DSL
book, it's invaluable
http://www.amazon.com/Official-Damn-.../dp/0132338696

Robert Shingledecker was the force behind MyDSL frugal stuff
and now runs tinycore (11mb)
check it out and ask your dsl questions there too
http://www.tinycorelinux.com/

DSL needs 2 partitions to run persistent
so, make the usb at least 2 partitions

1st partition fat32
2nd partition ext2

you can use Unetbootin to install dsl to the fat32 partition
http://unetbootin.sourceforge.net/
 
Old 08-31-2009, 05:58 PM   #4
Don_Nadie
Member
 
Registered: Aug 2009
Posts: 46

Original Poster
Rep: Reputation: 0
Well, thanks for the quick replies. I take it that I can do what I asked about.

I'm a noob so I don't know what all the different file formats are that are mentioned in the 2 replies above. I've never heard of vfat; I pick up the pen drive tomorrow so I'll see what file system is already on it. Can Window$ read vfat? I think USB pen drives aren't formatted in NTFS because Window$ 98 and 95 can't access NTFS files.

So I'm guessing I'm going to make 4 partitions: DSL root (bootable), DSL swap, big DSL user for MyDSL and all my Linux data, and a smaller FATxx partition to hold Window$ Portable Apps and my data for those apps. FAT32 for Portable Apps? Or vfat?

Seems like I put DSL into ext2 and ext3 partitions. I don't remember; I just slavishly followed a DSL installation guide--mke2fs or something like that.

I've got DSL frugal-installed on a 10 year old notebook with a USB 1.1 port. I've got live CDs for DSL, Debian, Puppy and Xubuntu (Xubuntu won't boot on my 10 year old notebook). I used cfdisk (I think that's what it's called) from the DSL live CD to partition my HD on the 10 year old notebook before installing DSL.

I've also got wubi Ubuntu 9.04 on a 3 year old XP Pro machine. I guess that I could use Synaptic to get Gparted. Is it easier than cfdisk, which I at least have a little familiarity with?

Isn't it possible to make a bootable USB Linux pen drive with my DSL live CD? I seem to remember a bewildering array of file formats to choose from using cfdisk (or whatever it's called).

I'm thinking of making a boot floppy and boot CD to carry along and use on older boxes that can't boot from a USB device (like my aforementioned notebook).

This whole project is for traveling. When I go to somebody's home who has a PC, I can boot off of the pen drive and use my own configuration while not leaving anything on their PC. When I go to a cyber cafe, I can use Window$ PortableApps on the pen drive because practically all cyber cafes have Windows machines and they don't want you to boot Linux off of a pen drive with their machines.

Actually, I took a gamble and ordered The Official Damn Small Linux Handbook blind days before I posted this. Good to hear that it's recommended. There's stuff that I haven't figured out from the documentation for DSL; that's why I took a chance on the book. I don't live in the States, so it'll take a while before I get it.

Between that book, DSL on my silicon living fossil, wubi Ubuntu 9.04 on my more modern machine and the Linux pen drive, I hope to eventually learn enough to get comfortable using Linux.

Thanks again for the replies and I will post about how it went.
 
Old 08-31-2009, 06:08 PM   #5
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Whats up brother?

well, 1st
Never make a swap partition on usb
it will drastically affect its life

some windows will not recognize the usb if the 1st partition isn't fat32
fat32 is vfat
the usb will most likely be fat32 or fat16

you wanna make 1st partition fat32, big enough to hold portable apps + dsl
plus any other distro's you wanna put in there

2nd parttion should be ext2 and will hold your MyDSL stuff
so use bootcode

restore=sda2 mydsl=sda2

Have you edited the syslinux.cfg yet?
it's on the usb

you only need 2 partitions really
sda1 fat32
sda2 ext2

I say sda 1 or sda2 cause thats how dsl will see the usb
some linux's will see the usb as sdf1, sde1, etc

you know how to use gparted in ubuntu?
http://www.youtube.com/watch?v=vdWkdrnNGRg

http://www.wikihow.com/Use-Gparted

what other distro's you want to put there?
LOL
 
Old 09-01-2009, 04:16 PM   #6
Don_Nadie
Member
 
Registered: Aug 2009
Posts: 46

Original Poster
Rep: Reputation: 0
Totallly unable to partition USB pen drive

I don't have a clue as to how to go about partitioning the pen drive.

I don't know Linux; try to remember that. Nor do I know about partitioning.

First I booted into level 2 from the DSL live CD on my 10 year old notebook. I had the pen drive plugged in when I booted. I wanted to use cfdisk to partition the pen drive because I was successful using cfdisk to partition my HD on the notebook.

I've noticed that USB devices seem to come up as sdx, where x can be some letter at the start of the alphabet. So I went to /dev and tried "ls sd*". I don't know what the different colors mean and, for an old notebook that only has one USB port on the back, I sure got a hell of a long list in technicolor. I don't have any idea which item is my pen drive and don't know how to determine that. I just shut the notebook down.

Next I booted into wubi Ubuntu 9.04 on my 3 year old machine with the pen drive plugged in. The pen drive showed up mounted on my desktop. I used Synaptic to get Gparted installed. Contrary to what the description says, after it was installed on my newer machine, it does not show up as "Gparted", but rather as "Partition Editor" under System->Administration.

I've got to comment on the YouTube video. I spent 3 years of my childhood living in a neighborhood in Toronto that was ethnically mostly British immigrants. I went to school with kids named Valerie and Ian who had British accents. Despite that, I had a tough time understanding what the guy in the video was saying. He sounds like he's talking while his mouth is stuffed with cotton. On top of that, the video couldn't be much fuzzier. It looks like maybe 25 dpi. So thanks for the link, but it wasn't helpful.

I couldn't get Gparted to partition my pen drive, which came formatted as fat32. I arbitrarily decided to use 2GB of the pen drive for the DSL root + Portable Apps and the remaining 5.5GB for MyDSL. I was able to get started and get it to list a 2GB fat32 Primary partition and a 5.5GB ext2 Primary partition. (It barfed when I tried to make the 5.5GB ext2 partion an extended partition, whatever that is.) Gparted was willing to format the fat32 partition but not the ext2 partition. When I clicked the Apply button, Gparted told me it failed with both operations. Here's the gparted_details.htm file contents:
_________________________________________________________

GParted 0.4.3

Libparted 1.8.8
Create Primary Partition #1 (fat32, 2.12 GiB) on /dev/sdb 00:00:23 ( ERROR )

calibrate New Partition #1 00:00:02 ( SUCCESS )

path: /dev/sdb-1
start: 0
end: 15724799
size: 15724800 (7.50 GiB)
create empty partition 00:00:11 ( SUCCESS )

path: /dev/sdb1
start: 63
end: 4450004
size: 4449942 (2.12 GiB)
set partition type on /dev/sdb1 00:00:10 ( SUCCESS )

new partition type: fat32
create new fat32 file system 00:00:00 ( ERROR )

mkdosfs -F32 -v -n "" /dev/sdb1

mkdosfs 3.0.1 (23 Nov 2008)
mkdosfs: /dev/sdb1 contains a mounted file system.

========================================
Create Primary Partition #2 (ext2, 5.37 GiB) on /dev/sdb

========================================
_________________________________________________________

I need either a pointer to detailed step-by-step instructions on formatting my pen drive with Gparted (the difficult and complicated solution from my viewpoint) or a way to determine in level 2 DSL which of the dozens of sdx items I see using "ls sd*" is my pen drive so I can use cfdisk on it (it seems a lot easier to use cfdisk than Gparted).

This is plenty long enough; I'd better stop. TIA for the suggestions to come.
 
Old 09-01-2009, 04:30 PM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
You can't format/partition a Mounted volume

make sure the usb is unmounted before using cfdisk/gparted,etc


also, if I had known you knew how to use cfdisk I would have mentioned
it but it's kinda hard to explain to someone who 's never used it

OK
so, now, get everything off usb (unless you don't care about it being erased)

then, make sure the usb is unmounted
open a root shell and enter "mount"
no quotes
heres mine n Ultimate Edition 2.3 (ubuntu-9.04 BIG)

Code:
root@bz-desktop:/home/bz# mount
/dev/sda8 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/bz/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bz)
root@bz-desktop:/home/bz#
to unmount a partition device etc
use

umount /mnt/sda1

or umount /media/disk

just substitute name
like yours is sdb1

umount /dev/sdb1 /media/disk

to mount

mount /dev/sdb1 /media/disk

also
so try again to make the fat32 partition while unmounted

also
you wanna play with my greatest invention

Portable-Qemu!

you can make a virtual hd
parttiion it
format it
install dsl into it
run portable-qemu in windows or linux!

I already have made a few DSLK-portables as DSL is the fasteest distro in qemu

interested?

I got a xxx version with a naked woman desktp
or a clean version?
LOL

you can also do real-time rematsreing in portable-qemu
everything runs just like a real distro
settings/mydsl apps etc are installed and are there at reboot
just like the real thing

its safe too
whatever you do to the virtual hd has no effect on your real system
you acn hack and slash the partitions whatever
 
Old 09-01-2009, 06:22 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Keep the format and partition as it is.

Use liveusb creator and install almost any distro (from ISO or will download) you want and then put a folder or more on for portable apps.
 
Old 09-03-2009, 06:35 AM   #9
Don_Nadie
Member
 
Registered: Aug 2009
Posts: 46

Original Poster
Rep: Reputation: 0
"Can't find KNOPPIX filesystem, sorry."

After several failed attempts, I was able to partition my 8GB pen drive in a fashion that would let me frugal-install DSL onto it. Here's what I ended up with:

sda5 5.5GB Logical Win95 FAT32 1st partition
sda2 2.5GB Boot Primary Linux 2nd partition

I think I made the Linux partition type 82 hex.

It wasn't quite what I wanted, but I'm tired of fooling with it.

Since my notebook that has DSL frugal-installed on it is 10 years old, it can't boot from its USB 1.1 port. The easiest thing I was able to do was to make a boot floppy using DSL. I wish the rest of this lingering nightmare were so easy.

Well, the 10 year old notebook will boot from the USB pen drive with the aid of the boot floppy. I had to figure out that I had to use the cheatcode "dsl fromusb" to make that happen, but at least I got that working.

The FAT32 partition is recognized by Window$ and I've started loaded various Portable Apps for Window$ onto it. It's also got myDSL, of course. I set my GRUB boot command to include "restore=sda5 home=sda5 opt=sda5". I labeled the partition "FAT32 Data" when I formatted it with mkdosfs.

Then I got the bad news. I tried to boot a 3 year old machine from the pen drive. Here's what I get:

Can't find KNOPPIX filesystem, sorry.
Dropping you to a (very limited) shell.
Press reset button to quit.

I get this no matter which GRUB boot command I choose. They all say:

kernel /boot/linux24 root=/dev/sda2 . . . etc.

So I booted into wubi Ubuntu 9.04 to have a lookie-loo at the pen drive. 2 devices showed up mounted on my Ubuntu desktop: "2.5 GB Media" which is the Linux partition whose name I didn't choose, and "FAT32 Data" which is the 5.5 GB partition whose name I did choose.

The "2.5 GB Media" device contains 3 folders: boot, KNOPPIX and lost+found. The KNOPPIX folder contains the KNOPPIX file, which I assume is the compressed DSL image. Nautilus says I'm looking at /media/disk when I look at "2.5 GB Media".

If there's a syslinux.cfg file on the pen drive, Nautilus can't find it. I have no idea where it would be or if I need it, since the 10 year old notebook boots without it. (Maybe it's on the floppy?)

Anyway, as a noob, I'm about ready to say screw Linux. It's way too user-antagonistic. "Ease of use" is not in the Linux vocabulary, that's for sure.
 
Old 09-03-2009, 08:58 AM   #10
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Whoa brother
slow down a bit

don't get discouraged so early in the game

If needed I'm gonna help out, I'm off today and can help

Now, first, many times the "Knoppix fs can't be found"
is something small and fixed easy

also, this is bad
Quote:
sda5 5.5GB Logical Win95 FAT32 1st partition
sda2 2.5GB Boot Primary Linux 2nd partition

I think I made the Linux partition type 82 hex.
Problems:
I don't thinkl the win partition should be a Logical one...

the linux swap (82) partition is setup to be swap
so it's not a bootable partition

OK
you gotta re-partition the usb
first, completely wipe the stick using gparted or cfdisk
that is, delete all the partitions, in cfdisk do "write to disk"
after deleting

then, remove the usb wait 15-20 sec
stick it back in
and open gparted or cfdisk
and make your usb just like this

sda1 primary fat32 (boot flag on)
sda2 primary ext2 (type 83)

so, no logical partitions and make sure the boot flag is set for the fat32 partition.

Now, your gonna have to re-install syslinux to the fat32 partition
so, the easiest way to do that is boot into your Wubi ubuntu and
download thislink) its the newer syslinux and you can have a graphical
boot menu like here
http://multidistro.com/hammer/fluxboxp.html

so, LINK for syslinux pkg; unzip that and put in boot folder on usb

to install syslinux to your usb, in Ubuntu
open a terminal in ubuntu
have your usb fixed as above and make sure its mounted
transfer the contents of the dsl.iso to your usb fat32 partition
in ubuntu right-click the dsl.iso and select "extract here"

copy the KNOPPIX and boot folders to your usb
use copy/paste or cut/paste
right click the folders and choose copy/paste you know

paste those folders into the usb

Now, take that "syslinux" folder you downloaded above and place it in the boot folder on usb

also, cut/paste the dsl kernel and initrd (linux24, minirt24.gz)
up into the top of the usb
above the boot folder

your usb should look like this

KNOPPIX folder
boot folder (syslinux folder inside)
linux24
minirt24.gz

Now, back at the terminal
we're gonna install syslinux to the fat32 partition on usb

become root in ubuntu with "sudo su"
in the terminal, enter your passwrd

now, find out where the usb is mounted by issuing command "mount"

Code:
mount
heres mine in pmagic now

Code:
root@PartedMagic:~# mount
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/loop0 on /lib/unionfs/usr type squashfs (rw)
unionfs on /usr type unionfs (rw,dirs=/usr=rw:/lib/unionfs/usr=ro)
/dev/loop1 on /lib/unionfs/firmware type squashfs (rw)
unionfs on /lib/firmware type unionfs (rw,dirs=/lib/firmware=rw:/lib/unionfs/firmware=ro)
/dev/loop2 on /lib/unionfs/modules type squashfs (rw)
unionfs on /lib/modules type unionfs (rw,dirs=/lib/modules=rw:/lib/unionfs/modules=ro)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda6 on /media/hda6 type ext3 (rw)
/dev/hda3 on /media/hda3 type ext3 (rw)
/dev/hda7 on /media/hda7 type ext3 (rw)
/dev/hda4 on /media/hda4 type ext3 (rw)
/dev/sdb1 on /media/sdb1 type fat32 (rw)
see the usb, sdb1 ?

so, we gotta cd into the syslinux folder to install it to usb
assuming your usb is seen as sdb1 in ubuntu

Code:
cd /media/sdb1/boot/syslinux
and then install syslinux to usb
Code:
./syslinux -sf /dev/sdb1
bing
Now, unmount the usb and reboot
hopefully all is well...?
 
Old 09-03-2009, 10:26 AM   #11
Don_Nadie
Member
 
Registered: Aug 2009
Posts: 46

Original Poster
Rep: Reputation: 0
Not getting very far

Using cfdisk in Ubuntu, I made and wrote this partition table:

sdb1 Boot Primary W95 FAT32 4022.86
sdb2 Primary Linux ext2 4022.86

Last time I posted, I said I made the Linux partition type 82 hex, which is swap, but I made it 83 hex, just Linux. I did the same with sdb2 this time -- it's type 83 hex.

I can't go any further with your instructions because I can't mount the pen drive. After I wrote the above partition table, I shutdown my PC for a couple of minutes, then booted into Ubuntu again. I can see the above partition table using cfdisk in Ubuntu, but I can't mount the pen drive. Here's what mount shows:
_________________________

anonymous@ubuntu:~$ mount

/host/ubuntu/disks/root.disk on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /host type fuseblk (rw,nosuid,nodev,user_id=0,group_id=0,allow_other,blksize=4096)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.28-15-generic/volatile type tmpfs (rw,mode=755)
/host/ubuntu/disks/boot on /boot type none (rw,bind)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/anonymous/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=anonymous)
_________________________

Since the FAT32 partition is sdb1, I tried to mount it:

anonymous@ubuntu:~$ sudo mount /dev/sdb1
mount: can't find /dev/sdb1 in /etc/fstab or /etc/mtab

Not knowing anything about Linux, I also tried:

anonymous@ubuntu:~$ sudo mount /dev/sdb
mount: can't find /dev/sdb in /etc/fstab or /etc/mtab

The pen drive doesn't show up in Nautilus under computer:/// but my optical drive and hard drive do.

So I can't follow these instructions of yours:

to install syslinux to your usb, in Ubuntu
open a terminal in ubuntu
have your usb fixed as above and make sure its mounted


I guessed that the partitions needed to be formatted, so I used

sudo mkdosfs -F32 -v -n "FAT32" /dev/sdb1

and

sudo mke2fs /dev/sdb2

No joy. I can see the above partition table right now in cfdisk (sudo cfdisk /dev/sdb), but the pen drive is invisible. Cute.

Thanks for all your time so far. Next?
 
Old 09-03-2009, 11:58 AM   #12
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
My fault dude
I forgot to tell you to format it
der?!

now, no reaseon to label it unless you want to
also, once you cfdisk it
then format it
then remove the usb for 10-15 sec and then put it in PC and try to mount it

after you have formatted it and cfdisk'd it
and reinserted it
then try to install syslinux to it

gparteds much easier to format with
no wierd partitions though
basic fat32 and basic ext2

heres my usb in pmagic's gparted and cfdisk too
http://multidistro.com/pmagic/fat.png

http://multidistro.com/pmagic/cfdisk.png

NOTE that the ext2 partition is labeled "live-rw"
for my thorshammer grml persistent partition

so, please try again
try and use gparted if you prefer
delete the partitions again
use gparted to make 2 new ones
and format
then remove usb and re-insert
 
Old 09-03-2009, 01:15 PM   #13
Don_Nadie
Member
 
Registered: Aug 2009
Posts: 46

Original Poster
Rep: Reputation: 0
Progress??

I can't figure out how gparted works, so I didn't even try to use it. It usually fails after I click apply (sometimes it just silently closes after doing nothing) and I'm not sure about when to try to format a partition using gparted. I guess you have to have success creating partitions before you format them, and I don't have any luck creating partitions with gparted.

I also don't know how to label a partition using mke2fs.

Before I executed:

sudo ./syslinux -sf /dev/sdb1

in /media/sdb1/boot/syslinux, my FAT32 partition contained (in alphabetical order):

boot - a folder
KNOPPIX - a folder
linux24 - a program
minirt.gz - an archive

The boot folder contained 2 folders, isolinux and syslinux.

After I executed

sudo ./syslinux -sf /dev/sdb1

a 5th program called ldlinux.sys appeared along with the 4 items listed above.

When I try to boot my 3 year old machine off of the pen drive, I just get the grub> prompt; that's all. I didn't even try to boot off the pen drive on my 10 year old notebook with the assistance of the boot floppy.

Sorry, but I don't remember all the stuff that starts with something like kernel ... root= ... in order to give grub a valid boot command.

Oh, Window$ recognizes the FAT32 partition on the pen drive; I suppose that's someting.

Are you sure there's no easy way to do this? As per usual, thanks for your time.
 
Old 09-03-2009, 01:52 PM   #14
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Is gpparted failing cause you got the usb mounted?
is there a lock or key in thwe line that says your usb
like this
http://multidistro.com/pmagic/gp.png

you gotta unmount 1st

use right-click in gparted as I'm using there
right-click/unmount
right-click/format-to-fat32
etc

sounds like you got the syslinux installed
thats what ldlinux.sys is

you can label the ext2 partitionm
with

Code:
mke2fs -L name /dev/sdb2
or mkfs.ext2
whichever you have...

for my persistent grml partition
its
Code:
mkfs.ext2 -L live-rw /dev/sdb2
However, are you sure that computer can boot from usb??
thats the real question?
if it can't
you gotta use plop bootmanager
 
Old 09-03-2009, 04:12 PM   #15
Don_Nadie
Member
 
Registered: Aug 2009
Posts: 46

Original Poster
Rep: Reputation: 0
No doubt I can boot from USB pen drive

The proof's in the pudding. I went to this web site:

http://www.pendrivelinux.com/testing...compatibility/

and followed the instructions. Once I edited makeboot.bat so that syslinux.exe had a -f switch, my 3 year old box booted into Linux in the blink of an eye from my pen drive. It also started running memtest under Linux when I proceeded past the welcome screen.

Having to edit the .bat file is so typical of stuff that comes from Linux-land.

I have no idea how to mess around with the floppy in order to get my 10 year old notebook to boot into the pendrivelinux test, but the fact that I was able to boot into DSL from the pen drive using the floppy as an aide makes me think it's really not necessary.

It took me more than an hour to get my pen drive back to the state it was in when I bought it. Putting the grub boot loader on a device is like shooting it through the heart with a dum-dum bullet as far as Window$ is concerned. There was a long time when Window$ either recognized the pen drive as a USB device but not a drive or basically didn't recognize it at all.

I went through your whole exercise again a few more times and tried to use gparted. gparted died twice and accomplished nothing. When the pen drive has no partitions, it's called something like "USB Drive" in Ubuntu. When I right-clicked on the device in Nautilus, the context menu said "Mount" rather than "Unmount" so I think my problems with gparted weren't due to the pen drive being mounted.

I've literally got a headache from all this crap. I'm calling it a day. Tomorrow I'm going to try unetbootin for windows as a method of getting a bootable DSL on my pen drive.

Well, you've spent a lot of time on this. Thanks. I wish it had been time usefully spent.
 
  


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
cant boot usb stick created with portable linux katesfb Linux - Newbie 1 06-09-2009 08:51 PM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 05:56 PM
Linux on 2GB (or 4GB) external USB Flash Drive (Stick) [Bootable / Expandable] phi DamnSmallLinux 3 04-17-2007 02:27 AM
Linux distro to work with Windows Apps on 2 GB USB Stick Spaceduster Linux - Distributions 8 02-07-2007 02:44 AM
create bootable linux for usb memory stick mikequinlan Linux - Software 1 05-20-2006 08:38 AM


All times are GMT -5. The time now is 02:31 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