LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-19-2019, 01:11 PM   #16
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by xor_ebx_ebx View Post
Hm, well my best guess is that either an update was interrupted or some misbehaving software or user has accidentally (or intentionally) deleted some of your symlinks

Does installpkg hang with other packages or just Firefox?
It hangs with every package I've tried. No one else uses this computer.

Thanks
 
Old 03-19-2019, 06:13 PM   #17
xor_ebx_ebx
Member
 
Registered: Mar 2019
Location: USA
Distribution: Slackware
Posts: 44

Rep: Reputation: Disabled
Did you try rebooting and running fsck like Pat and Bob suggested? If I'm not mistaken, you can force fsck to run on the next reboot by running `touch /etc/forcefsck` or you can go into single-user mode and do it from there

Other than that, I'm out of ideas
 
Old 03-19-2019, 06:35 PM   #18
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
No I haven't had time, didn't want to risk a reboot while working, and didn't have the install disk. Dropping into user level 1 wouldn't allow me to check the root filesystem if I'm not mistaken. Also are you sure the forcefsck file should go in /etc? I thought it should be in the root directory.
 
Old 03-19-2019, 06:52 PM   #19
xor_ebx_ebx
Member
 
Registered: Mar 2019
Location: USA
Distribution: Slackware
Posts: 44

Rep: Reputation: Disabled
From /etc/rc.d/rc.S:
Code:
if [ -r /etc/forcefsck ]; then
  FORCEFSCK="-f"
fi
So, yes, it's /etc/forcefsck

And you can indeed run fsck from single-user mode, but you'll probably have to remount your / partition read-only first
 
2 members found this post helpful.
Old 03-19-2019, 09:49 PM   #20
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
My usual method with unexpected hangs in shell scripts to add a lot of debugging lines with echo to find where its getting stuck in the script. It should be much easier to understand what is going wrong if we can see how far its getting. Or you could try using "bash -x /path/to/script" which will produce more noisy output while more or less achieving the same.

Last edited by orbea; 03-19-2019 at 09:51 PM.
 
Old 03-19-2019, 10:17 PM   #21
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by BCarey View Post
No I haven't had time, didn't want to risk a reboot while working, and didn't have the install disk. Dropping into user level 1 wouldn't allow me to check the root filesystem if I'm not mistaken. Also are you sure the forcefsck file should go in /etc? I thought it should be in the root directory.
If /etc isn't in the same file system as /, you will have lots of problems at boot.
 
Old 03-20-2019, 12:08 AM   #22
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by xor_ebx_ebx View Post
From /etc/rc.d/rc.S:
Code:
if [ -r /etc/forcefsck ]; then
  FORCEFSCK="-f"
fi
So, yes, it's /etc/forcefsck

And you can indeed run fsck from single-user mode, but you'll probably have to remount your / partition read-only first
That's good to know! Pretty much everything online states it should be in the root directory, but when I tried that on one of my machines a few months ago, it didn't work. It must be distro specific (or maybe init specific).
 
Old 03-22-2019, 10:42 AM   #23
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
OK, back at it.

So I did run the fsck via /etc/forcefsck and it did identify disk errors. I told it to fix the errors. I then reran fsck before rebooting and it declared the disk clean. But after rebooting it ran the check again (I thought forecefsck was supposed to be automatically deleted) and came up with the same errors. So even though it showed everything fixed before reboot it seems that nothing was.
 
Old 03-23-2019, 12:30 PM   #24
xor_ebx_ebx
Member
 
Registered: Mar 2019
Location: USA
Distribution: Slackware
Posts: 44

Rep: Reputation: Disabled
That's starting to look like a bad disk. You should look into smartctl and see if your disk has logged any errors. Something like `smartctl -a /dev/sda`
 
  


Reply



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
installpkg: where's the install??? synaptical Slackware 7 08-06-2003 09:51 PM
XF86Config and .tgz/installpkg causticmtl Slackware 2 06-01-2003 05:05 AM
Installpkg question BittaBrotha Slackware 3 05-28-2003 12:57 AM
Installing glibc-2.3 with installpkg Wynd Slackware 2 04-01-2003 07:13 PM
Slackware 8.1: "installpkg" command not working? tigerflag Slackware 5 10-12-2002 02:44 PM

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

All times are GMT -5. The time now is 09:41 AM.

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