LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 09-16-2012, 01:09 AM   #1
coltson
LQ Newbie
 
Registered: Oct 2010
Posts: 12

Rep: Reputation: 0
Installing from a hard drive partition using grub.


I read an article to install linux directly from the hard drive, where it says:
Quote:
From the terminal enter these commands

sudo mkdir /distro
sudo chmod `whoami`:`whoami`
cp MYLINUX.iso /distro/distro.iso

Now extract Linux_kernel & Ram_disk to /distro#

Open /boot/grub/menu.lst

#ADD NEW ENTRY#
title Install Linux
root (hdX,X)
kernel /distro/Linux_kernel
initrd /distro/Ram_disk

Reboot and select "Install Linux" from grub.
So, I decided to use it to install the latest Slackware.
Copied the kernel from kernels/huge.s/bzImage and the ramdisk from isolinux/initrd.img

However,when I rebooted,I received this:
Quote:
Booting Install Linux
root (hd0,6)
Filesystem Type unknow, partition type 0X82
kernel /abaco/distro/bzImage

Error 17: Cannot mount selected partition
So what I am doing wrong?

Thanks for the help
 
Old 09-16-2012, 03:19 AM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,114

Rep: Reputation: 127Reputation: 127
Are you sure that your grub supports isos? I think that this wasn't supported in the past.
 
Old 09-17-2012, 11:17 PM   #3
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Try using unetbootin it is supposed to be able to support booting from hdd. Its intertwined in Installation & Screenshots.
http://unetbootin.sourceforge.net/
 
Old 09-18-2012, 12:55 PM   #4
coltson
LQ Newbie
 
Registered: Oct 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yooy View Post
Are you sure that your grub supports isos? I think that this wasn't supported in the past.
Well, that it is what the article says

Quote:
Try using unetbootin it is supposed to be able to support booting from hdd. Its intertwined in Installation & Screenshots.
And Unetbootin doesn't work on my system.
 
Old 09-21-2012, 12:49 AM   #5
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
I was wonderinfg do you have a bootable system, I just installed debian from a working os using debootstrap, was wondering if you wanted to try that.
 
Old 09-21-2012, 06:16 PM   #6
coltson
LQ Newbie
 
Registered: Oct 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
I just installed debian from a working os using debootstrap, was wondering if you wanted to try that.
Can you give me more details? Never heard about it before.

Quote:
I was wonderinfg do you have a bootable system
Yes, in my case Unetbootin doesn't work because I don't have libstdc++.so.6

Now I am almost certain that the problem is due to what yooy said: old grub that doesn't support ISO booting. I will try to install grub 2 and see how things go on.
 
Old 09-21-2012, 06:19 PM   #7
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
http://www.linuxquestions.org/questi...st-4175428305/
 
Old 09-22-2012, 03:35 AM   #8
coltson
LQ Newbie
 
Registered: Oct 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I am following the guide that you mentioned in http://www.debian.org/releases/stable/i386/apds03.html but I found a problem during the
Quote:
D.3.3. Run debootstrap
stage
Quote:
I: Extracting xz-utils...
I: Extracting zlib1g...
W: Failure trying to run: chroot /abaco mount -t proc proc /proc
W: See /abaco/debootstrap/debootstrap.log for details
In the debootstrap.log file I saw this:
Quote:
/usr/sbin/debootstrap: line 903: chroot: command not found
I have chroot on my system and also there is the newer version that debootstrap did install

What I should do now?

Last edited by coltson; 09-22-2012 at 03:51 AM.
 
Old 09-22-2012, 11:42 AM   #9
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Are you running commands as root?
This post has all of the mounts with the exception of devpts
http://daemonkeeper.net/668/how-to-b...-linux-system/
You have to configure devpts the same way that you do inpost above this line
http://sdn.vlsm.org/share/LDP/lfs/chapter06/proc.html
Iused a combination of the 3 links to get working.
 
Old 09-22-2012, 01:01 PM   #10
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,342

Rep: Reputation: 184Reputation: 184
You might have a corrupt slackware iso file.
you did extract and copy initrd.img from slackware/isolinux and bzImage, System.map.gz from slackware/kernels
your grub entry did look like this?
Code:
title Install Linux
root (hdX,X)
kernel /path to linuxkernel/bzImage
initrd /path to initrd/initrd.img

Last edited by colorpurple21859; 09-22-2012 at 01:21 PM.
 
Old 09-22-2012, 03:53 PM   #11
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
http://wiki.debian.org/Debootstrap
 
Old 09-22-2012, 04:00 PM   #12
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 3,074
Blog Entries: 4

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by yooy View Post
Are you sure that your grub supports isos? I think that this wasn't supported in the past.
grub2...can do it I think from what I've read.
 
Old 09-24-2012, 02:58 AM   #13
coltson
LQ Newbie
 
Registered: Oct 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, the problem was with chroot outside the path. After putting its directory in path (and also ldconfig) I was able to successfully install the base system.



However:
Quote:
MAKEDEV generic

bash: MAKEDEV: command not found
this came up. I searched the internet and found this:

http://www.mail-archive.com/debian-b...msg135436.html

So, the bug was supossed to be fixed by now? Should I reopen it?

And what about these options?

Quote:
bind mount /dev from your host system on top of /dev in the target system; note that the postinst scripts of some packages may try to create device files, so this option should only be used with care
Debian warns about this option, but the guy from the blog used it:

http://daemonkeeper.net/668/how-to-b...-linux-system/

Linux from scratch first recomends:

Quote:
mount devpts /dev/pts -t devpts
and if doesn't work, then this
Quote:
mount -t devfs devfs /dev
 
Old 09-24-2012, 06:10 AM   #14
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,089

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
MAKEDEV command is not there udev takes care of it. You just have to mount proc sys dev devpts accordingly.

This 1 works.
Quote:
mount devpts /dev/pts -t devpts
It appears that you are doing well.
Like I said I used all 3 of those posts to get a working system.
While Daemonkeeper.net helped me with mount commands, D3. help me get locales & everything else configured.
Glad to know you have atleast gotten base system in.
Oh btw when you've finished & have your system configured don't forget that you still have everything sitting in /mnt just taking up space. You can remove it.

Last edited by EDDY1; 09-24-2012 at 06:20 AM.
 
  


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
install fedora on second hard drive partition, when booting-no grub-boots win XP pro vspellen Linux - Software 7 01-27-2009 08:23 PM
Third hard drive prevents grub from installing BACTRATE Ubuntu 4 06-09-2008 06:52 AM
Help: hard drive install slackware 12 from FAT32 partition using GRUB olin Slackware - Installation 1 09-19-2007 10:12 AM
Installing Ubuntu from hard drive partition icronk Linux - Newbie 2 08-08-2007 07:57 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM


All times are GMT -5. The time now is 04:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration