I´ve installed DSL 1.4 on a 1GB Kingston USB stick by useing the "install for USB-HDD Pendrive" script. So far everything is working fine.
Now I want to create a Directory to save my Documents, Downloads, etc. I´ve created a custom directory (data) as root and tried to give write permission for the user with chmod. But is seems whatever I do with chmod it does not have an effect.
How do I get a user writeable directory on the stick ?Chmod needs to be run as root for any file that was created as root. If the directory will be for user 'dsl' it's better to use chown to change ownership of the directory rather than changing permission. sudo chown dsl.staff directory/ Chown needs to be run as root regardless of who owns the file.
Also, if this directory is created within the regular DSL filesystem it will not be there when you reboot (pendrive install runs DSL from a compressed filesystem like the liveCD). You need to make sure it is located on a mountable drive so it will be persistent. You could create it on the pendrive itself, and use the 'frugal' or 'toram' boot option to allow writing of the drive, or put /home on another drive and use the 'home=' boot option. I'm not totally sure about that...never did a pendrive install.Hi mikshaw,
I´ve tried to change the owner but it always says "Operation not permitted". ( i´ve tried as root )
Hmm, the directory I created is persistet, I´ve booted several times and the directory is always there.Ok...so it's on the pendrive itself, apparently. Where do you see the diretory? If root can't chmod or chown, it means the directory is on a read-only filesystem. Try booting with the "frugal" boot option to make the pendrive read-write.
Then again, I'm assuming that the usb hdd install is essentially a frugal install...that's what the script looks like to me, anyway.
Quote
Where do you see the diretory?
I created the directory in the root of the USB stick. So atm it appears on /cdrom/data/ or /mnt/sda1/data/.
Quote
Try booting with the "frugal" boot option to make the pendrive read-write.
Hmm, I don´t have a frugal option when I look at the f2 boot option menu. When I enter "dsl frugal" at the bootprompt the "Operation not permitted" remains. :/Next Page...
original here.