LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-13-2006, 02:35 AM   #1
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Rep: Reputation: 15
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?
 
Old 07-13-2006, 02:51 AM   #2
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
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.
 
Old 07-13-2006, 10:37 AM   #3
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
having trouble mounting the partition, trying to use /mnt gives me permission denied, am I doing this wrong?
 
Old 07-13-2006, 10:45 AM   #4
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
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.
 
Old 07-13-2006, 10:54 AM   #5
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
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
 
Old 07-13-2006, 11:27 AM   #6
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
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 !
 
Old 07-13-2006, 11:30 AM   #7
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
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?
 
Old 07-13-2006, 11:53 AM   #8
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try fdisk -l it should list you partitions. of you could do a df -h
 
Old 07-13-2006, 11:56 AM   #9
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
thanks, that helped. Ok, it is hda1.
 
Old 07-13-2006, 12:06 PM   #10
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
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.)
 
Old 07-13-2006, 12:23 PM   #11
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
Sorry to be such a newb, but how would I check the file system type?
 
Old 07-13-2006, 12:38 PM   #12
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
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.
 
Old 07-13-2006, 01:13 PM   #13
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
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.

Last edited by Cyric; 07-13-2006 at 01:14 PM.
 
Old 07-13-2006, 01:18 PM   #14
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
What if I did a repair? Or tried to install Slackware over the top of my current installation?
 
Old 07-13-2006, 01:23 PM   #15
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
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).
 
  


Reply

Tags
fault, programs, segmentation fault


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
segmentation faults crash88 Linux - Software 3 07-03-2006 11:22 PM
Segmentation faults winterhunter Linux - Software 5 10-14-2005 04:06 AM
Segmentation Faults. Terroth Linux - Hardware 1 06-19-2005 06:16 AM
Segmentation Faults ryankask Mandriva 2 06-13-2005 08:10 PM
Problems installing fastcgi on Fedora Core 3/Apache segmentation 11 faults bax Linux - Software 3 05-29-2005 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration