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: Writeable custom user directory ?< Next Oldest | Next Newest >
crew Offline





Group: Members
Posts: 18
Joined: July 2005
Posted: Aug. 24 2005,11:15 QUOTE

Hi,

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 ?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 24 2005,13:55 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
crew Offline





Group: Members
Posts: 18
Joined: July 2005
Posted: Aug. 24 2005,14:47 QUOTE

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.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 24 2005,17:54 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
crew Offline





Group: Members
Posts: 18
Joined: July 2005
Posted: Aug. 25 2005,12:01 QUOTE

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. :/
Back to top
Profile PM 
15 replies since Aug. 24 2005,11:15 < 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: Writeable custom user directory ?

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