WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: mkdir can't create directory /home/tc/.local permission denied  (Read 26198 times)

Offline nassausky

  • Newbie
  • *
  • Posts: 28
mkdir can't create directory /home/tc/.local permission denied
« on: October 09, 2013, 02:49:50 PM »
Hi All...

I'm getting the following error which is delaying my boot by about a minute:
     mkdir can't create directory /home/tc/.local permission denied

This was after I made a change to the 2 files:
/mnt/sda1/opt/bootlocal.sh  by adding a single line sudo /usr/local/etc/init.d/cups start
and
/mnt/sda1/tce/boot/extlinux/extlinux.conf by adding to the APPEND line opt=sda1 home=sda1 norestore

Thanks for any input
 
« Last Edit: October 09, 2013, 09:04:21 PM by nassausky »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #1 on: October 09, 2013, 02:57:18 PM »
Don't use sudo in bootlocal.sh.  It is already running as root.
Check your permissions on /mnt/sda1/home/tc .

Offline nassausky

  • Newbie
  • *
  • Posts: 28
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #2 on: October 09, 2013, 03:39:32 PM »
OK I removed everything from the bootlocal.sh file so it doesn't seem to be the problem. 

Am I supposed to be looking at the permissions of the tc folder itself which is:
drwxrwxr-x

I tried changing it to 777 (drwxrwxrwx) to see if that helped but it didn't.  Does this mean I have to go inside the folder and change permissions of something?

Thanks for the quick response.

Offline nassausky

  • Newbie
  • *
  • Posts: 28
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #3 on: October 09, 2013, 04:03:23 PM »
EDIT: OK I thought I got it. 
After removing norestore boot option and changing the permissions to 777, it seemed to boot fine but it wasn't changing the permissions alone since I had to remove the norestore option. 

I tried a fresh install this time on a virtualbox and this time during the install I added those boot options like the wiki instructs to create a kiosk.  Again when booting after the initial install to the virtualbox hdd it gave the same error.  /home/tc/.local permission denied so I tried the same steps.  I dropped permissions to the tc folder and rebooted with norestore off (removed from boot args) and then I restored permissions to 775 and i boots now without the error but takes about a minute or 2 to display the GUI xwindow.

So something else is up.  Has anyone tried a tinycore install on a virtualbox with those 3 boot options opt=sda1 home=sda1 norestore and rebooted without an issue?
« Last Edit: October 09, 2013, 09:09:56 PM by nassausky »

Offline nassausky

  • Newbie
  • *
  • Posts: 28
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #4 on: October 09, 2013, 10:16:33 PM »
OK still working on it.  This time I reinstalled tc with the same frugal install on the virtualbox drive and used no boot options.  It started fine.  As soon as I added opt=sda1 home=sda1 norestore, it gave the permission error.  To solve it I changed /mnt/sda1/home/tc to 777 and rebooted with norestore off. I rebooted twice (for sanity) and it booted fine.  Then I changed the permissions back to 775 for the tc folder and added norestore back as a boot argument. 

This seems like a bug or a problem with the wiki (http://wiki.tinycorelinux.net/wiki:install_hd) under the section "Run The Installer" where it says
Boot options. Type:
opt=sda1 home=sda1 norestore

Let me know if anyone tries this and has the same issue.
Thanks.


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #5 on: October 09, 2013, 10:33:44 PM »
I don't agree with everything in that article.
The boot options opt= and home= are advanced options.
These require changes to /opt/filetool.lst.
The norestore option breaks anything that requires config files not in /opt.
Removing the waitusb option saves NO time when it includes LABEL or UUID.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #6 on: October 10, 2013, 04:51:20 AM »
Another bug by the home code reorg. Thanks for reporting.
The only barriers that can stop you are the ones you create yourself.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
mkdir can't create directory /home/tc/.local permission denied
« Reply #7 on: October 10, 2013, 12:08:43 PM »
So something else is up.  Has anyone tried a tinycore install on a virtualbox with those 3 boot options opt=sda1 home=sda1 norestore and rebooted without an issue?
Yes, I use virtualbox will multiple versions of tinycore with opt, home, & tce persistence and occasionally run with norestore for testing without issue
« Last Edit: October 10, 2013, 12:38:15 PM by coreplayer2 »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #8 on: October 10, 2013, 01:02:08 PM »
Found and fixed for soon to be 5.0.2.
10+ Years Contributing to Linux Open Source Projects.

Offline nassausky

  • Newbie
  • *
  • Posts: 28
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #9 on: October 10, 2013, 02:39:17 PM »
Thanks for using the bug swatter so swiftly!

Offline ticorel

  • Newbie
  • *
  • Posts: 2
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #10 on: October 28, 2013, 02:51:25 PM »
I am really new to Tiny Core.  Just installed from the 12 M iso and got this error upon reboot.  Tried again on another installation on another hard drive and got the same error.  Anyway for a newbie to correct this or should I try to do another install?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #11 on: October 28, 2013, 03:54:48 PM »
Please make sure you have 5.0.2 and not an older version.

The md5 is
1dd1935bd9f813926d3fba39d760255c  TinyCore-5.0.2.iso
The only barriers that can stop you are the ones you create yourself.

Offline ticorel

  • Newbie
  • *
  • Posts: 2
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #12 on: October 29, 2013, 10:41:27 AM »
Thank you for your input. 5.0.2 worked well. I erred when I wrote the version of the iso I had used was 12MB. I had used 5.0.1. Thanks again for getting me up and running.

Offline memartin

  • Newbie
  • *
  • Posts: 5
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #13 on: November 07, 2013, 09:22:55 AM »
I am booting 5.0.2 via PXE and get the same error nevertheless.  Boot params 'base' and/or 'norestore' (via APPEND) do not seem to help.

I can also not install Apps rightaway, because /tmp/tce and /tmp/tce/optional are root-writable only (which might be a different problem at all).

Any ideas or hints? Thanks a lot!

Cheerz, Martin

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: mkdir can't create directory /home/tc/.local permission denied
« Reply #14 on: November 07, 2013, 09:29:57 AM »
Where did you get the initrd? How you boot makes no difference.
Show the output of 'showbootcodes'.