LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mount command gone in current (https://www.linuxquestions.org/questions/slackware-14/mount-command-gone-in-current-863060/)

Bertical 02-16-2011 09:16 AM

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 ?

Bertical 02-16-2011 09:24 AM

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 !

GazL 02-16-2011 09:53 AM

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.

ponce 02-16-2011 10:01 AM

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


GazL 02-16-2011 10:09 AM

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

ponce 02-16-2011 10:28 AM

nice, that's a new trick for me! :)

mlangdn 02-16-2011 11:39 AM

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

PDock 02-16-2011 03:08 PM

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

ppd

cwizardone 02-16-2011 04:14 PM

Quote:

Originally Posted by ponce (Post 4260367)
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.

rg3 02-16-2011 04:39 PM

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.

cwizardone 02-16-2011 07:14 PM

Quote:

Originally Posted by rg3 (Post 4260797)
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.
:)

colorpurple21859 02-16-2011 07:40 PM

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.

el_jauzaa 02-16-2011 08:41 PM

----solved---
sorry

Chuck56 02-16-2011 11:26 PM

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.

BrZ 02-17-2011 08:44 AM

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


All times are GMT -5. The time now is 03:25 AM.