LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   major problems, everything segmentation faults! (https://www.linuxquestions.org/questions/slackware-14/major-problems-everything-segmentation-faults-463544/)

Cyric 07-13-2006 01:35 AM

major problems, everything segmentation faults!
 
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?

nykey 07-13-2006 01:51 AM

Try booting from the Slackware CD 1 or any other Live CD, mount your partition and chmod the dir back, it may work that way.

Cyric 07-13-2006 09:37 AM

having trouble mounting the partition, trying to use /mnt gives me permission denied, am I doing this wrong?

nykey 07-13-2006 09:45 AM

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
Code:

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
Code:

chmod 644 /mnt/slackware/usr/bin
if you know that was the permission before you changed it. Check that and let us know.

Cyric 07-13-2006 09:54 AM

ok, I got this when I tried to mount the drive:

mount: wrong fstype, bad option, bad superblock on /dev/hda1, or too many mounted file systems

nykey 07-13-2006 10:27 AM

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 !

Cyric 07-13-2006 10:30 AM

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?

jstephens84 07-13-2006 10:53 AM

try fdisk -l it should list you partitions. of you could do a df -h

Cyric 07-13-2006 10:56 AM

thanks, that helped. Ok, it is hda1.

nykey 07-13-2006 11:06 AM

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:
Quote:

mkdir /mnt/slackware
Quote:

mount -t yourFStype /dev/hda /mnt/slackware
Quote:

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.)

Cyric 07-13-2006 11:23 AM

Sorry to be such a newb, but how would I check the file system type?

nykey 07-13-2006 11:38 AM

Well, when booted into the Slackware system you could do a
Quote:

cat /etc/fstab
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:
Quote:

cfdisk /dev/hda
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.

Cyric 07-13-2006 12:13 PM

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.

Cyric 07-13-2006 12:18 PM

What if I did a repair? Or tried to install Slackware over the top of my current installation?

nykey 07-13-2006 12:23 PM

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).


All times are GMT -5. The time now is 01:21 PM.