You are not logged in.

#1 2009-10-10 07:39:37

Soumyadeep
Member
From: kolkata,India
Registered: 2009-09-09
Posts: 218

[SOLVED]cannot boot after chmod 1777 /tmp

today when i was booting arch while starting gdm it said that "a greeter application appears to be crashing Attempting to use a different one" and  it never started gdm. so i searched google with links and found a post in this forum about changing tmp folder permission by "chmod 1777 /tmp". I did that and after rebooting arch is unable to startup . while starting network it says something about cannot write to temp file , device full, and the same while starting other daemons.
I cannot log into any tty.
pls help me guys...............

Last edited by Soumyadeep (2009-10-10 14:28:48)

Offline

#2 2009-10-10 07:50:14

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [SOLVED]cannot boot after chmod 1777 /tmp

~ $ ll / # its an alias for ls -l and some other nice options
total 104K
drwxr-xr-x   2 root  4,0K 08/Out/2009 bin
drwxr-xr-x   3 root  4,0K 10/Set/2009 boot
drwxr-xr-x  14 root  5,6K 10/Out/2009 dev
drwxr-xr-x  86 root   12K 10/Out/2009 etc
drwxr-xr-x   5 root  4,0K 10/Ago/2009 home
drwxr-xr-x  10 root  4,0K 04/Out/2009 lib
drwx------   2 root   16K 18/Set/2008 lost+found
drwxr-xr-x   9 root  4,0K 10/Out/2009 media
drwxr-xr-x   5 root  4,0K 24/Set/2009 mnt
drwxr-xr-x   5 quarkup 4,0K 09/Out/2009 opt
dr-xr-xr-x 119 root     0 10/Out/2009 proc
drwxr-x---  30 root  4,0K 18/Set/2009 root
drwxr-xr-x   2 root   12K 09/Out/2009 sbin
drwxr-xr-x   4 quarkup 4,0K 20/Jul/2009 srv
drwxr-xr-x  12 root     0 10/Out/2009 sys
drwxrwxrwt  10 root   20K 10/Out/2009 tmp
drwxr-xr-x  13 root  4,0K 08/Out/2009 usr
drwxr-xr-x  17 root  4,0K 27/Set/2009 var

actually
drwxrwxrwt  10 root   20K 10/Out/2009 tmp
is the same as

has the permissions 1777 plus the sticky bit "t"
the user is root


actually the safest option (and it will work anyway)
is to enter the archlinux cd-rom and mount your linux installation (you can then chroot it if you need to try if it's fine).

mount your linux partition somewhere ( mkdir /mnt/recovery && mount "partition device" /mnt/recovery -> u must do this as root)

note: /dev/sdaX (X is the actual partition of the instalation)
could be /dev/hdaX instead, or there are few other alternatives to this device-name.


try to do something as:

su -c chmod +rwxt /tmp
su -c chmod 777 /tmp



finally, if you want to chroot (probably you won't need this step), you must check the man-pages or the WIKI.
"man chroot" should give you enought info


good luck

Last edited by quarkup (2009-10-10 08:01:04)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#3 2009-10-10 08:34:43

Soumyadeep
Member
From: kolkata,India
Registered: 2009-09-09
Posts: 218

Re: [SOLVED]cannot boot after chmod 1777 /tmp

well after rebooting now it seems i can log in a tty , but i cant succesfully write a file into any directory other than  my home directory, it will create a file but wont let me write and save anything to it.

Offline

#4 2009-10-10 08:47:31

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED]cannot boot after chmod 1777 /tmp

Check the permissions on "/" as shown above and post the results.  There will actually be quite a few directories that you cannot write files to as a normal user.  Is anything not working now?  Are you getting errors trying to run apps etc?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2009-10-10 09:23:15

Soumyadeep
Member
From: kolkata,India
Registered: 2009-09-09
Posts: 218

Re: [SOLVED]cannot boot after chmod 1777 /tmp

here's my ls -l o/p(i had to manuall type it in):
total 105
-rwxr-xr-x 1 root root 29580 babai
drwxr-xr-x 2 root root 4096 bin
drwxr-xr-x 4 root root 1024 boot
drwxr-xr-x 15 root root 5720 dev
drwxr-xr-x 63 root root 4096 etc
drwxr-xr-x 6 root root 4096 home
drwxr-xr-x 9 root root 4096 lib
drwx------ 2 root root 16384 lost+found
drwxr-xr-x 7 root root 4096 media
drwxr-xr-x 2 root root 4096 mnt
drwxr-xr-x 2 root root 4096 opt
dr-xr-xr-x 75 root root 0 proc
drwxr-x--- 16 root root 4096 root
drwxr-xr-x 2 root root 4096 sbin
drwxr-xr-x 4 root root 4096 srv
drwxr-xr-x 12 root root 0 sys
drwxrwxrwt 4 root root 4096 tmp
drwxr-xr-x 6 root root 4096 user
drwxr-xr-x 10 root root 4096 usr
drwxr-xr-x 15 root root 4096 var

and no nothings working, hal,dbus,gdm,network nothing wont start saying disk out of space while creating files

Offline

#6 2009-10-10 09:25:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED]cannot boot after chmod 1777 /tmp

Post the output of "df -h".

Offline

#7 2009-10-10 10:20:02

Soumyadeep
Member
From: kolkata,India
Registered: 2009-09-09
Posts: 218

Re: [SOLVED]cannot boot after chmod 1777 /tmp

here it goes:

Filesystem    Size    Used     Avail    Use%   Mounted on
none            442M   128k    442M     1%       /dev
none            442M    0        442M     0%       /dev/shm
/dev/sda1     99M     11M     83M      12%     /boot
/dev/sda4     66G     26G     37G      41%     /home

Offline

#8 2009-10-10 10:32:18

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [SOLVED]cannot boot after chmod 1777 /tmp

my "df -h" output

~ $ /bin/df -h
Sist.fichs            Tama  Ocup Livre Uso% Montado em
/dev/sda2              14G  9,4G  4,0G  71% /
none                 1013M  164K 1013M   1% /dev
none                 1013M  284K 1013M   1% /dev/shm
/dev/sda3              40G   29G   12G  73% /media/winXP

shouldn't you have the root partition ???

you just have /boot and /home, but the rest of / ????

/dev/sda2              14G  9,4G  4,0G  71% /

I'm not that sure, but guess u will need to install arch again


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#9 2009-10-10 10:57:44

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED]cannot boot after chmod 1777 /tmp

What does "sudo fdisk -l" show?  Are you doing this from a live CD or are you logged in to your PC?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#10 2009-10-10 13:26:34

Soumyadeep
Member
From: kolkata,India
Registered: 2009-09-09
Posts: 218

Re: [SOLVED]cannot boot after chmod 1777 /tmp

my "fdisk -l" is like this (i am logged into my pc)

Disk /dev/sda:80.8 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units=cylinders of 160657512=8225280 bytes
Disk identifier:0x0c299128

Device    Boot   Start   End    Block        Id    System
/dev/sda1  *      1       13      104422     83   linux
/dev/sda2          14     46      265072+   82   linux swap/solaris
/dev/sda3          47     1003 7687102+ 83  linux
/dev/sda4          1004  9729 70091595  83   linux

So why is that the root partition is not showing in "df -h" ?

Last edited by Soumyadeep (2009-10-10 13:27:45)

Offline

#11 2009-10-10 13:54:47

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED]cannot boot after chmod 1777 /tmp

I do not know why it doesn't show.  Does the mount command show it mounted on /dev/sda3?  Also try "du -hs /var" and "du -hs /tmp" to see if they are filling up the disk.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#12 2009-10-10 14:28:11

Soumyadeep
Member
From: kolkata,India
Registered: 2009-09-09
Posts: 218

Re: [SOLVED]cannot boot after chmod 1777 /tmp

got it fixed guys!!!!! a "du -hs /var" showed a huge 4.5 gigs
it seems that a pacman update got crashed(probably due to internet connection probs) and created huge part files of xulrunner(1.5gb) and qt2(2gb), removing them got it fixed
now everythings working.
Thanks everyone!!!!!!!!!!!!!!!!!!!!!!

Offline

#13 2009-10-10 15:04:11

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED]cannot boot after chmod 1777 /tmp

Soumyadeep wrote:

got it fixed guys!!!!! a "du -hs /var" showed a huge 4.5 gigs
it seems that a pacman update got crashed(probably due to internet connection probs) and created huge part files of xulrunner(1.5gb) and qt2(2gb), removing them got it fixed
now everythings working.
Thanks everyone!!!!!!!!!!!!!!!!!!!!!!

Known bug, fixed in the latest pacman version.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB