Results 1 to 7 of 7
Thread: /tmp create/write LINUX
-
06-21-2009, 04:36 PM #1WHT Addict
- Join Date
- May 2009
- Posts
- 108
/tmp create/write LINUX
when i am trying to use php my admin i am getting
#1 - Can't create/write to file '/tmp/#sql_bba_0.MYI' (Errcode: 30)
when i am trying to delete a file from /tmp i am getting
rm: cannot remove `sess_***': Read-only file system
--
i have Linux box with cpanel,
can some one help me to solve this issue ?
-
06-21-2009, 06:41 PM #2Web Hosting Master
- Join Date
- Jul 2005
- Location
- New Jersey, US
- Posts
- 1,597
That is a problem with the drive or tmp mount. Without checking it there's not much that anyone can tell you. Sometimes rebooting resolves it but it should be checked by your datacenter first in case there is a more serious underlying problem.
PlatinumServerManagement (also known as PSM)
The OLDEST and LARGEST and MOST TRUSTED server management provider in the USA, with 15+ employees and growing!
Providing quality support for OVER 21 years! Currently supporting over 3,000+ servers monthly!
www.PlatinumServerManagement.com Proud member of the NJ BBB & Chamber of Commerce & Authorized cPanel Partner.
-
06-21-2009, 08:02 PM #3Junior Guru
- Join Date
- Mar 2009
- Location
- Chicago, IL
- Posts
- 219
A read only filesystem is usually indicative of errors within the filesystem itself. You'll see busier webhosting machines put fs's into read only mode after enough dirty writes and general bad-mojo. This is the filesystems way of protecting itself from further corruption.
Now there's a chance that this may just be the tmp directory that's messed up like this. You can always try creating your own tmp directory in your homedir and referencing that in your scripts.
You might also attempt to upload a small file to your account. If that fails with the same error, you're going to need to fsck the affected partitions in order to correct it.
Also since this is your personal machine, you can always just try to unmount /tmp/ and remount it and see if that clears it up.
from a root shell...
Code:umount /tmp && mount /tmp
Keep in mind after you do this you may need to restart MySQL as well in order for it to recreate it's socket (may and/or may not be in /tmp/).
-
06-22-2009, 01:11 AM #4Newbie
- Join Date
- Jun 2009
- Posts
- 13
check your fstab and make sure your /tmp is rw
-
06-22-2009, 02:55 AM #5Junior Guru Wannabe
- Join Date
- Mar 2009
- Location
- Near You..
- Posts
- 81
Try umount /tmp and then mount /tmp from root shell and if it doesn't fix try running fsck /tmp partition after umounting and mount it again.
-
06-22-2009, 05:08 AM #6Junior Guru Wannabe
- Join Date
- Mar 2009
- Posts
- 75
Try to run:
Code:mount -o remount,rw /tmp
-
06-22-2009, 03:08 PM #7WHT Addict
- Join Date
- Apr 2009
- Location
- Islamabad , pakistan
- Posts
- 128
You can check following link with respect to error you are facing.
http://linuxchunks.ittweaks.com/2009...goes-readonly/
Similar Threads
-
cannot create email in cpanel, failed disk write
By UnrealSilence in forum Hosting Security and TechnologyReplies: 5Last Post: 04-05-2006, 05:58 AM -
Create a linux live CD?
By scottg111 in forum Dedicated ServerReplies: 2Last Post: 06-23-2005, 10:10 PM -
Can't create/write to file '/tmp!
By Jackus in forum Hosting Security and TechnologyReplies: 5Last Post: 01-09-2005, 05:05 PM -
Write Linux Distro & software reviews - earn $$$.
By jasonlambert in forum Other Offers & RequestsReplies: 0Last Post: 08-12-2004, 07:59 PM -
How not to write your TOS or one more reason to have a real lawyer write yours!
By taoofbean in forum Web HostingReplies: 13Last Post: 08-26-2002, 02:38 PM