LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2008, 04:13 AM   #1
jerf
Member
 
Registered: Sep 2007
Posts: 46

Rep: Reputation: 15
slackware install troubles


Hi all,

Having some trouble installing Slackware and I could use some assistance.

Scenario: I had ubuntu 7.10 running on the system that I want to put slackware onto. The cd's I made for slackware boot fine but it's in setup that I'm having trouble. I had my ubuntu and swap partitions on the second half of my drive and the first half was blank so I made a new partition on the first half of the drive for slackware. During the setup I accidently chose my ubuntu partition as the target for root and all the software was installed there, rendering ubuntu useless.

Ok so no big deal, didnt have anything worth mentioning on the drive so I blasted the partitions and started over. Made a partition for slackware, one for swap and one for ubuntu if I decide to reinstall. This time I chose the right partition as the target for root (i think) and installed the software packages again. At the end of setup it tells me that I have no password set for root but when I go to set the password, I get

chroot cannot execute /usr/bin/passwd: no such file or directory

I tried making the directory and trying again but I keep getting the same message about /usr/bin/passwd.

So I skip past the step and go through the configure step of setup, creating a new fstab and then rebooting, but the computer is unable to boot and GRUB bootloader returns an error. As I understand slackware prefers LILO but I'm not sure how to replace GRUB or whether I can use it to load slackware.

So 2 questions I guess. How do I set a password from slackware's setup, and more importantly, how do I get GRUB to recognize slackware so that it will boot? I dont care whether I'm using GRUB or LILO, I just want my system to boot.

Help?

Thanks guys.
 
Old 03-07-2008, 04:36 AM   #2
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 35
I'm not quite sure about what you did when prompted for the root password - you should just get a prompt where you enter the password two times and that's it. No need to do something special here. What exactly did you do here?

For the GRUB thing install LILO to the MBR. This should overwrite GRUB which sits there from the Ubuntu install.
 
Old 03-07-2008, 05:50 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,641
Blog Entries: 56

Rep: Reputation: Disabled
Might be better to start afresh. Check out this page for loads of info about Slackware, including installation:

http://wiki.linuxquestions.org/wiki/Slackware-Links

Good Luck.
 
Old 03-07-2008, 04:48 PM   #4
jerf
Member
 
Registered: Sep 2007
Posts: 46

Original Poster
Rep: Reputation: 15
slackware trouble

The password problem went like this; setup was going as normal and I was just following the prompts without issue. Then setup prompted me to set a password for root with 'WOULD YOU LIKE TO SET A PASSWORD NOW? YES/NO' I simply selected yes and at the bottom of the screen in the terminal an error was returned, chroot unable to execute /usr/bin/passwd: no such file or directory. If I hit enter again it asks me again if Id like to set a password to which if I reply yes it returns the same above said error and if I choose no it tells me setup is finished and I can reboot.

As for putting LILO in the MBR I have a few questions.

1. Do I even need to replace GRUB with LILO? Shouldnt GRUB be able to boot whatever kernel I tell it to boot? If so, how do I instruct GRUB to boot the correct kernel?

2. If I do decide to install LILO, I'm not sure how to do this as there is no prompt in setup mentioning the boot loader and I'm a noob so I'm not sure how this is done. If LILO is included in the setup discs, where would I find it and then how to install it to MBR?

I'll continue to read the docs but thanks again for all help.
 
Old 03-08-2008, 03:41 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,897
Blog Entries: 27

Rep: Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185
Quote:
Originally Posted by jerf View Post
The password problem went like this; setup was going as normal and I was just following the prompts without issue. Then setup prompted me to set a password for root with 'WOULD YOU LIKE TO SET A PASSWORD NOW? YES/NO' I simply selected yes and at the bottom of the screen in the terminal an error was returned, chroot unable to execute /usr/bin/passwd: no such file or directory. If I hit enter again it asks me again if Id like to set a password to which if I reply yes it returns the same above said error and if I choose no it tells me setup is finished and I can reboot.

As for putting LILO in the MBR I have a few questions.

1. Do I even need to replace GRUB with LILO? Shouldnt GRUB be able to boot whatever kernel I tell it to boot? If so, how do I instruct GRUB to boot the correct kernel?

2. If I do decide to install LILO, I'm not sure how to do this as there is no prompt in setup mentioning the boot loader and I'm a noob so I'm not sure how this is done. If LILO is included in the setup discs, where would I find it and then how to install it to MBR?

I'll continue to read the docs but thanks again for all help.
It does sound like you have a install cd problem. Did you check your md5sum for the iso if it was downloaded? Did you check the burnt iso image md5? You don't have everything loaded if you are getting a 'chroot unable to execute /usr/bin/passwd: no such file or directory'. You need to get this corrected.
 
Old 03-12-2008, 01:49 AM   #6
jerf
Member
 
Registered: Sep 2007
Posts: 46

Original Poster
Rep: Reputation: 15
getting better

just to follow up on this thread. the iso checked out ok so i thought maybe i just needed the third installation iso, perhaps my installation attempts were just incomplete. so i burned the third iso (not knowing what was supposed to be on the disc) and went through the installation process again. this time the first install disc went through a whole series of software installs including LILO (i had selected full install each time) that it had not gone through before. the first few times i tried the install, after choosing which software packs i wanted, I was immediately prompted for the second disc.

im not sure why the software on the first disc was not installed the first two times i tried. its a strange problem that resolved itself for no reason apparent to me. any ideas as to what might have happened would be great, but bottom line is that the install worked fine the third time and im a happy slackware newbie.

i am having a problem in xfce however. i have online courses for school that require adobe flash player but after downloading the tar files and unzipping them, when i attempt to install from x my system hangs and I have to do a hard shutdown.

ill post a new thread on this topic.

thanks all.
 
Old 03-12-2008, 02:19 AM   #7
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
hello there.. make sure you have also installed shadow.. it's in the group 'a' of the packages.
 
Old 03-12-2008, 07:13 PM   #8
jerf
Member
 
Registered: Sep 2007
Posts: 46

Original Poster
Rep: Reputation: 15
since you mentioned it, what is shadow? why do i want it? ill look it up.
 
Old 03-12-2008, 08:56 PM   #9
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
it simply contains the *passwd commands:

(slackware 11.0)
a/shadow-4.0.3-i486-13.tgz: usr/bin/gpasswd
a/shadow-4.0.3-i486-13.tgz: usr/bin/passwd
a/shadow-4.0.3-i486-13.tgz: usr/sbin/chpasswd
a/shadow-4.0.3-i486-13.tgz: usr/sbin/dpasswd
a/shadow-4.0.3-i486-13.tgz: usr/sbin/mkpasswd
 
Old 03-13-2008, 02:38 AM   #10
jerf
Member
 
Registered: Sep 2007
Posts: 46

Original Poster
Rep: Reputation: 15
thanks :^)
 
  


Reply


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
Wireless troubles in slackware 11 $Linuxnoob Slackware 18 06-25-2007 02:27 PM
Slackware 11.0 install troubles chris26 Slackware 14 11-30-2006 03:27 PM
Having Network Troubles with Slackware :( AtomicBanana Linux - Hardware 4 06-23-2004 08:47 AM
sound troubles in slackware Mr.Mounsey Linux - Hardware 1 11-25-2003 08:25 PM
Mouse troubles in Slackware 9 Kyuzo Slackware 2 06-25-2003 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration