[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making a Debian Bootable USB Pen Drive

On Tue, Oct 03, 2006 at 12:49:46PM -0500, Mike McCarty wrote:
> Andrew Sackville-West wrote:
> >On Tue, Oct 03, 2006 at 07:33:23AM -0700, Ottavio Caruso wrote:
> >
> >>Nuno Miguel dos Santos Baeta wrote:
> >>
> >>
> >>>Hi!
> >>>
> >>>I want to install Debian in a USB pen drive. 
> >>
> >>Don't! Nothing should be installed on a flash drive. A traditional
> >>install was meant for hard drives, not flash drives. Browser cache,
> >>/tmp, syslog and so on will damage the device.
> >
> >
> >I have only loosely been following this thread, but am curious about
> >this sort of thing in general. so what if you mount /tmp on tmpfs
> >(thus putting it in memory or swap dependingon memory loads) and I
> >wonder, can you change where syslog puts its logs (like into tmp) and
> >then build some script to save it off when you shutdown? I assume you
> >are trying to avoid the damage caused by longterm heavy writing which
> >"wears out" flash memory, right? Likewise, what about putting together
> This is certainly one reason. But if you put any *NIX style file
> system on there, one which tracks access times, then that will cause
> wearout, as well. How many times a day do you access /bin/ls?

as little as possible! hehe. 

seriously though, can't you mount everything noatime. 

Don't get me wrong, I'm not advocating one way or the other, just
playing with ideas about how to do it... Surely there is a way in
linux to make it work.

> >a file on whatever harddrive exists (a la knoppix and dsl use of a
> >swapfile) as a place to mount /var and /tmp while running the system
> >and again, copy it off to the usb drive during shutdown so that the
> >info is archived, but the writes to flash are minimized.
> It should not be necessary to save anything in /tmp.

true. but if you used some system to keep the heavy-write portions of
the filesystem OFF the flash while the system was running, you'd
certainly want to grab parts of it (/var particularly) and put it back
on the flash at the end of the session.


Attachment: signature.asc
Description: Digital signature

Reply to: