SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
ok, I did something really, really stupid. I was having trouble accessing some programs, so I chmodded the usr/bin folder to 755. I got a few more error in what I was trying to do, so I tried to chmod it back to 644. That didnt work, so I modded it to 777, now everything segmentation faults!! I cant connect to the internet, I cant remotely connect to the computer, I cant do anything!! I cant use any commands, chmod, chown, everything faults when i try to use it. Is there any hope, or am I just screwed?
Do you get permission denied when trying to mount the partition from a bootable CD or are you tring to mount it while you are booted in the broken system ? You should be booted with a rescue cd or smth, like Slax, Slackware CD 1, Knoppix, etc... and make sure the directory where you want to mount the partition exists. Lets say you want to mount /dev/hda1 (presuming this is your slackware / partition, you can just change hda1 to hda2, or hdc1 etc.. whatever your / partition is) on /mnt/slackware ( maybe you're trying to mount it straight on /mnt ? i don't think that's possible and maybe that's why u get permission denied). So make sure you have /mnt/slackware (mkdir /mnt/slackware). Now mount the partition with the command
mount -t reiserfs /dev/hda1 /mnt/slackware
. Just change hda1 to whatever your drive and partition number is, reiserfs to your filesystem ( ext2, ext3, whatever). If it works, just
chmod 644 /mnt/slackware/usr/bin
if you know that was the permission before you changed it. Check that and let us know.
Is /dev/hda1 your Slackware / partition ?
Did you use the right FS type ?
Do you already had it mounted when you tried ?
Did you really used a BOOT CD ? And if so what did you use ? Please give more details, maybe step by step of everything you do untill you get that error !
ok, I used my Slackware cd1, it booted up on the cd just fine. I made the /mnt/slackware directory, then changed to that directory. I typed mount -t reiserfs /dev/hda1 /mnt/slackware. I am almost sure it is hda1, it is possible I am wrong, how would I check to be sure?
Is the file system type (fs type) reiserfs ? Are you sure ? Did you cd to /mnt/slackware before mounting it ? Maybe that could affect the mounting process. Just boot into the Slack CD 1, login as root, and do the following:
mount -t yourFStype /dev/hda /mnt/slackware
chmod 644 /mnt/slackware/usr/bin
Change yourFStype with the exact file system type you have on /dev/hda1 (e.g. reiserfs, ext2, ext3 - you probablly have one of these 3). Follow those exact steps, if you get no error, just reboot, take out your Slack CD 1, boot into the Slackware system and check if everything is alright (permissions on /usr/bin , commands work properly, you have access to them and no seg fault, etc.)
Well, when booted into the Slackware system you could do a
and check what fs is used for /dev/hda1 or even better post the output of that command here. Or when booted with the Slackware CD 1 type:
it will give you a somewhat graphical version of fdisk. You will there see all your partitions on your Primary Master hard drive as well as their Flags (Boot should be on hda1) ... Part Type ( Primary or Extended) then FS Type (Linux ReiserFS , Linux Ext2 or Linux Ext3), then Label and Size. I've told you everything because it's good to have a full idea. So after you see what's your FS Type for hda1 choose Quit and press Enter (you can navigate with your arrows up-down-right-left). Then replace the fstype in the command I gaved you above with your FS Type and issue the command. GL.
ok, it was ext2, everything seemed to work out as far as that step goes. I rebooted, but I am still getting segmentation fault when I type chmod, chown, ls, and who know what else. Perhaps those files had different permissions? or maybe the bin folder itself had one permission set, while the files had another? I know the files were 644, cause I tried changing a few of them seperately to see if that was causing the original problem I had, which was not being able to run some of the files in bin. Also, I still cannot connect to the computer, so I guess we are back at square one. Thanks for the help so far, though.
Well... it looks like you did a chmod -R on the directory ? Well, yeah I think now it's the time to actually reinstall the system over the one you have, without formatting the partitions, if that doesn't work either, be sure to save your personal data, configuration files you may want to keep, etc.. you know what you need for a backup, reinstall the system and format the partitions ( if you have a separate /home partition mount it do not format it, just the others should be formatted).