LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-16-2011, 09:16 AM   #1
Bertical
Member
 
Registered: Oct 2008
Location: Kingdom of Mercia
Distribution: Slackware
Posts: 83

Rep: Reputation: 14
mount command gone in current


Used slackpkg to upgrade my box to current today and the mount and umount commands have disappeared ! The box hangs at boot time as it cannot mount any partitions. I had to boot off a rescue cd and manually extract the util-linux package from slackware/a , copy the commands across and set up links to sbin and /usr/bin. What did I do wrong ?
 
Old 02-16-2011, 09:24 AM   #2
Bertical
Member
 
Registered: Oct 2008
Location: Kingdom of Mercia
Distribution: Slackware
Posts: 83

Original Poster
Rep: Reputation: 14
Ooops ! As this box is a server I usually skip all the stuff in slackpkg install-new. I've just spotted the util-linux package in there. Panic over !
 
Old 02-16-2011, 09:53 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,905

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
Yes. util-linux-ng was renamed to util-linux by upstream a short while back, and that change has just filtered into slackware current. I get the feeling this will catch a few current-followers out.
 
Old 02-16-2011, 10:01 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
a quick note: you first have to install the new util-linux and then remove util-linux-ng.
util-linux-ng (and util-linux too) contains the command /usr/bin/rev, that is needed for installpkg.
that means that in normal conditions, if you remove util-linux-ng to install after util-linux, you get
Code:
# installpkg util-linux-2.19-x86_64-1.txz
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
Cannot install util-linux-2.19-x86_64-1.txz:  file does not end in .tgz, .tbz, .tlz, or .txz

Last edited by ponce; 02-16-2011 at 10:04 AM.
 
1 members found this post helpful.
Old 02-16-2011, 10:09 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,905

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
Good point, ponce. That's another nice gotcha.

The following worked for me:
Code:
upgradepkg util-linux-ng%util-linux-2.19-x86_64-1.txz
 
3 members found this post helpful.
Old 02-16-2011, 10:28 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,109

Rep: Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179Reputation: 4179
nice, that's a new trick for me!
 
Old 02-16-2011, 11:39 AM   #7
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
I got smacked by it. I had to take an old one form a slack dvd and manually install and create the symlinks from another partition. And that's why I have two installs of Slackware. I'm back in my regular partition now after a successful reboot. I just installed the new utils package and have everything back to normal. I'll know better the next time.
 
Old 02-16-2011, 03:08 PM   #8
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
Upgradepkg accepts an input format of ' upgradepkg oldpkgname%newpkgname '. Achieving the same thing only in one step.

ppd
 
Old 02-16-2011, 04:14 PM   #9
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,129

Rep: Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298
Quote:
Originally Posted by ponce View Post
a quick note: you first have to install the new util-linux and then remove util-linux-ng.
util-linux-ng (and util-linux too) contains the command /usr/bin/rev, that is needed for installpkg.
that means that in normal conditions, if you remove util-linux-ng to install after util-linux, you get
Code:
# installpkg util-linux-2.19-x86_64-1.txz
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
/sbin/installpkg: line 59: rev: command not found
Cannot install util-linux-2.19-x86_64-1.txz:  file does not end in .tgz, .tbz, .tlz, or .txz
Oops! Too late. I removed util-linux-ng first and now cannot install util-linux. Tried
upgradepkg oldfilename%newfilename
but that didn't work. Tried upgradepkg --reinstall --install-new, but that didn't work.

Make the mistake of re-booting and now I can't get back into Slackware.
During the boot up process it halts and says it can't find, libblkid.so.1. It gives me the option to log in as a single user with the root password to fix the problem, but when I enter the password nothing happens. It says to type, control-d
to continue with a normal log on. That doesn't work either.
Any suggestions would be greatly appreciated.
Thanks.
 
Old 02-16-2011, 04:39 PM   #10
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
Download the util-linux package from a mirror, copy it to a USB stick, boot with the installation CD/DVD, mount the root partition somewhere and run installpkg -root /mount/point util-linux-package.txz.
 
1 members found this post helpful.
Old 02-16-2011, 07:14 PM   #11
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,129

Rep: Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298
Quote:
Originally Posted by rg3 View Post
Download the util-linux package from a mirror, copy it to a USB stick, boot with the installation CD/DVD, mount the root partition somewhere and run installpkg -root /mount/point util-linux-package.txz.
Thanks! It took a couple of tries, but I finally got it right.
 
Old 02-16-2011, 07:40 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,367

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Thanks for the heads-up. I usually do upgrade-all first. I came across this post before updating, so I did install-new first and was able to update without any problems.
 
Old 02-16-2011, 08:41 PM   #13
el_jauzaa
Member
 
Registered: Jun 2010
Location: indonesia
Distribution: Slackware 14.1
Posts: 101

Rep: Reputation: 17
----solved---
sorry

Last edited by el_jauzaa; 02-16-2011 at 10:51 PM.
 
Old 02-16-2011, 11:26 PM   #14
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Unfortunately this morning while upgrading I did a "slackpkg clean-system" before "slackpkg install-new" and got caught by the util-linux package name change. I printed out this page before rebooting the system and followed Alien Bob's suggested fix.

http://www.linuxquestions.org/questi...urrent-807996/

Another learning opportunity for me and another way to recover when util-linux needs to be reinstalled.
 
Old 02-17-2011, 08:44 AM   #15
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
Thank you very, very much. I have two headless machines running current and this post prevented a lot of pain =]
 
  


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
How to allow any user to mount disks with the mount command Windows to Linux Linux - Software 6 11-29-2010 06:21 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM
I'm working with symlinks with mount command to mount remote shares lhorace Linux - Newbie 1 11-21-2009 04:05 PM
Execute command on mount and integrate with gnome-mount / umount Peter Rhone Linux - Newbie 4 11-18-2008 05:28 AM
Can't mount current version Rod Linux - General 2 11-08-2000 01:46 AM

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

All times are GMT -5. The time now is 01:19 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