Slackware This Forum is for the discussion of Slackware Linux.
|
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
07-13-2006, 02:35 AM
|
#1
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Rep:
|
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?
|
|
|
07-13-2006, 02:51 AM
|
#2
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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.
|
|
|
07-13-2006, 10:37 AM
|
#3
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
having trouble mounting the partition, trying to use /mnt gives me permission denied, am I doing this wrong?
|
|
|
07-13-2006, 10:45 AM
|
#4
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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.
|
|
|
07-13-2006, 10:54 AM
|
#5
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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
|
|
|
07-13-2006, 11:27 AM
|
#6
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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 !
|
|
|
07-13-2006, 11:30 AM
|
#7
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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?
|
|
|
07-13-2006, 11:53 AM
|
#8
|
Senior Member
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098
Rep: 
|
try fdisk -l it should list you partitions. of you could do a df -h
|
|
|
07-13-2006, 11:56 AM
|
#9
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
thanks, that helped. Ok, it is hda1.
|
|
|
07-13-2006, 12:06 PM
|
#10
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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:
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.)
|
|
|
07-13-2006, 12:23 PM
|
#11
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
Sorry to be such a newb, but how would I check the file system type?
|
|
|
07-13-2006, 12:38 PM
|
#12
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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.
|
|
|
07-13-2006, 01:13 PM
|
#13
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
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.
|
|
|
07-13-2006, 01:18 PM
|
#14
|
Member
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109
Original Poster
Rep:
|
What if I did a repair? Or tried to install Slackware over the top of my current installation?
|
|
|
07-13-2006, 01:23 PM
|
#15
|
Member
Registered: Nov 2003
Posts: 360
Rep:
|
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 03:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|