[SOLVED] O.S. Crashed as a result of messing up with / permissions
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
O.S. Crashed as a result of messing up with / permissions
Hey everyone,
I am stuck in a serious situation. I use sabayon 8 distribution and i changed the permissions of / like this
Code:
chmod 044 /
, Suddenly bash started rejecting every command, all the windows closed, i was luckily able to restart. I can start sabayon in recovery mode where a terminal is appearing. Any chances of recovery through that command line? Kindly help. Thanks...
Well i have 3 choices in my grub2. The first is sabayon 8, the second sabayon8 recovery mode and the third is win7. In recovery mode i just get a shell prompt. No interface. After i execute chmod 755 /, and the output of ls -l / is rwxr-xr-x, which is fine. After i reboot and start my sabayon, All i get is a blank black screen and it gets stuck there.
Well i have 3 choices in my grub2. The first is sabayon 8, the second sabayon8 recovery mode and the third is win7. In recovery mode i just get a shell prompt.
Ok.
Quote:
After i execute chmod 755 /, and the output of ls -l / is rwxr-xr-x, which is fine.
Yes but what about before running "chmod 755 /" Can you confirm that it is really 044? If it is not then you are probably trying to chmod the wrong parition. Ie "/" in "recovery mode" is not your normal "/". In this case you need to mount your normal "/" somewhere and run chmod on it (this is what acid_kewpie is talking about).
I got it! But I do not have access to my normal "/" through recovery mode. How do i get to know the mounted filesystem through recovery. That would probably solve the problem.
mount: Wrong fs type, bad option, bad superblock on /dev/sda1 missing codepage or helper program or other error. In some cases useful info is found in syslog. Try dmesg | tail.
And i tried
Quote:
dmesg tail
this is the output
Quote:
EXT3-fs :error: can't find ext3 filesystem on /dev/sda1
EXT3-fs :error: can't find ext3 filesystem on /dev/sda2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.