PDA

View Full Version : [ubuntu] Feasibility of Ubuntu on USB stick (Not the live CD)



ItsJweed
October 30th, 2008, 09:12 PM
Hey,

I would really like to actually install linux on a flash drive rather than just have the live cd bootable from a flash drive. I know that flash drives have a limited number of writes so I wasn't planning on having a swap partition on the drive. (Most computers I would boot it from would already have a swap partition anyway.) I also understand that with file system journaling I could use up the 10,000 writes fairly quickly.

I have four questions.


If I use fat32 on the drive so there is no journaling, wouldn't I avoid burning out my drive in a short period of time?
What size drive minimum would I need? I've heard ubuntu needs 2.3 gigs so I'm guessing a 4 gig drive would cut it?
I know that some types of memory have to be re-written every time they are read. Are flash drives like this?
Is there any other reason I haven't thought of that would make this a bad idea or otherwise unreasonable/infeasible?


Thanks,

J

snowpine
October 30th, 2008, 09:17 PM
A full install to USB stick works very well. The only slightly tricky part is when you get to the final step of the installer, you need to click Advanced and make sure Grub is written to the flash drive and not your computer's internal hard drive! I would not be too concerned about wearing out the flash media, what with the extremely low price of a 4gb stick (the minimum I would recommend) these days.

C.S.Cameron
October 31st, 2008, 01:43 AM
I agree with snowpine.
I have been using a full install to one flash drive for over a year.
I find it much better than a persistent install, It is just like booting from hard disk, and not much slower if you format "/" and "/home" partitions as reiserfs.

the.weavster
October 31st, 2008, 01:03 PM
Can I put a live Ubuntu CD in the CD drive of my laptop, a USB stick in the USB port and do an install from one to the other?

And once I've done that I'll be able to boot my laptop from the USB stick?

snowpine
October 31st, 2008, 02:40 PM
Can I put a live Ubuntu CD in the CD drive of my laptop, a USB stick in the USB port and do an install from one to the other?

And once I've done that I'll be able to boot my laptop from the USB stick?

Yes, exactly. But as I mentioned in my previous post, make sure to install Grub to the USB stick, not your hard drive.

I also recommend not putting a swap partition on the USB stick, if your computer has enough RAM that you can do without (or an existing swap partition on your hard drive).

Good luck!

the.weavster
October 31st, 2008, 04:48 PM
That's cool!

Thanks alot, I'm off to get a new USB stick.:)

meganox
October 31st, 2008, 04:50 PM
Don't use FAT! Use ext2, it's a proper Linux filesystem but without journaling.

ItsJweed
November 3rd, 2008, 03:34 AM
Don't use FAT! Use ext2, it's a proper Linux filesystem but without journaling.

I was thinking about that but I wasn't sure if my computer would be able to boot from the device if it couldn't read the file system. Thinking about it now though, the computer would boot into the grub bootloader on the flash-drive and it is grub that would support reading from the ext2 file system, no?

C.S.Cameron
November 3rd, 2008, 04:36 AM
I have been doing manual partitioning, formating "/" and "/home" partitions using the reiserfs file system.
This seems to help the speed running from a flash drive.

blazercist
November 3rd, 2008, 04:56 AM
What about the limited write/read cycles on flash media? Don't you need to be worried the drive will fail with regular use?

ItsJweed
November 21st, 2008, 11:57 PM
What about the limited write/read cycles on flash media? Don't you need to be worried the drive will fail with regular use?

Without swap on the device, and with a non-journaling file system it shouldn't be much of an issue. Even if it does ultimately cause the drive to fail, they are extremely cheap nowadays.