Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ [1] 2 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Storing files on USB< Next Oldest | Next Newest >
takowl Offline





Group: Members
Posts: 6
Joined: April 2008
Posted: April 09 2008,13:26 QUOTE

It strikes me that using DSL, and indeed certain other distros, on a USB stick is a bit...strained, since they're designed for the rather limited environment of a CD. Specifically, what I'd like to do is to store the files natively, on the USB stick, rather than using the backup/restore features. Key advantages to this:
1. No need to play with backing things up and restoring them--just boot off the stick, and your files are there.
2. When in a different OS, the files can be accessed simply by mounting the memory stick and selecting a folder.

To this end, I would like to change the /home symlink (which is by default to /ramdisk/home) to point to a location on the USB stick, mounted as /cdrom, it seems (so /home -> /cdrom/cargo), and to make the relevant directory writeable as a normal user. I have verified that it is possible to write to files in this location (by becoming superuser). But it does not seem to be possible to give the directory to "dsl" using chown.

I have found how to uncompress the KNOPPIX image, but I cannot see where the symlinks are set up. How might I go about changing the symlink, and giving the default user write permissions?

Thanks in advance.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 09 2008,13:44 QUOTE

It sounds like you're looking for the "persistant home" feature of dsl - the details are in the wiki.

Alternately, you could leave your configuration files (torsmorc, .gimp-1.2/, etc) in the backup and save other files (docs, photos, mp3, etc)  directly to a folder/partition on the usb stick - something like /mnt/sda1/docs
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: April 09 2008,17:31 QUOTE

Quote
Specifically, what I'd like to do is to store the files natively, on the USB stick, rather than using the backup/restore features.
However, that's the recommended option to reduce io operations on the flash device, since it would wear it out much faster afaik. (just a tip - but they are getting cheaper)
Back to top
Profile PM 
takowl Offline





Group: Members
Posts: 6
Joined: April 2008
Posted: April 09 2008,18:04 QUOTE

Thanks, I think persistent home was what I was looking for.

Experimentation has suggested that the USB disk is a different device depending on what computer it's booted on (and different again if booted on qemu). Will the method on the wiki work for a location on /cdrom? And will that automatically set the permissions appropriately (I will experiment with this later, I'm just putting the questions here as well).

@thehatsrule: I understand, but flash drives are designed to have files written to them, so I think I'll live. In any case, storing it as a backup could, I think, potentially cause more writes (as it's compressed, so changing one file could potentially change the whole backup file (as I understand it)).
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: April 09 2008,18:10 QUOTE

Quote (takowl @ April 09 2008,14:04)
@thehatsrule: I understand, but flash drives are designed to have files written to them, so I think I'll live. In any case, storing it as a backup could, I think, potentially cause more writes (as it's compressed, so changing one file could potentially change the whole backup file (as I understand it)).
I believe it is the many operations done that wears it out, rather than doing one batch operation at the end.  Most applications have their own profile directory in ~, such web browsers by default, etc. That being said, if you were planning on having a huge ~ for whatever reason, I guess it would take too much time.
Back to top
Profile PM 
15 replies since April 09 2008,13:26 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ [1] 2 3 4 >/
reply to topic new topic new poll
Quick Reply: Storing files on USB

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code