LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2005, 02:34 AM   #1
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Rep: Reputation: 15
How do you install linux manually to mounted drive?


Hi there,
Im trying to install linux to a dedicated server I have with 1and1. They provide a rescue tool so that has a basic version of linux on it with some tools. This can see the drives on my server. I can mount the drive and, cfdisk than format it. The question is how do I manually install Slackware on this. Basically what I am trying to do is install linux on a mounted drive using linux. Like if you were to temporarily add a second drive to your linux computer and install linux on to it using your linux on that computer. I know with slackware I have to find a way to unpack all the packages on to this drive and set up the bootstrap including lilo. Does anyone have any ideas where I can get information how to do this? I have been searching all night with no luck.

Thanks
MarleyGPN
 
Old 12-06-2005, 02:56 AM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Do you mean using the loop device to use and install an ISO file from within another linux already installed?

If so then try this, but you would need to have the loop device added in the kernel. I think newer distros already have it included.

mount -t iso9660 /tmp/slack102.iso /mnt/slack102 -o loop

You will have to created your device node, /mnt/newmountpoint. Once mounted you will be able to view the files like any other mounted drive. But I'm not sure how you use it to install using it.

Hope this helps anyway.
 
Old 12-06-2005, 03:39 AM   #3
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Original Poster
Rep: Reputation: 15
Hi there I got the iso mounted. I also figured out where the disc boots from there was a file called initrd.img which i managed to mount. from there I have all the folders as if I were to boot from the cd. for example bin lib etc its all there. The problem is I dont know what do do from here. If you have any ideas please let me know

Thanks,
MarleyGPN
 
Old 12-06-2005, 06:57 AM   #4
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Original Poster
Rep: Reputation: 15
Is there anyway to load initrd so I can install slackware. I can't get chroot to work on the directry I extracted it in to.
 
Old 12-06-2005, 07:33 AM   #5
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Maybe first loop mount the install rootdisk, copy the entire directory tree within it to a new directory (let's call it fakeroot), then mount the install-iso to the fakeroot's mnt sub directory, chroot into fakeroot, tell the setup program to install from the pre-mounted directory, then install slackware as usual.

install root disk
 
Old 12-06-2005, 08:07 AM   #6
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Original Poster
Rep: Reputation: 15
I tried that, when I try to chroot I get this

i: applet not found

I tried finding a solution for this but havent found one yet.
 
Old 12-06-2005, 09:14 AM   #7
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Original Poster
Rep: Reputation: 15
Fixed the problem with the chroot. Im going to try your suggestions again. By the way are you sure its just one of the root disks and not both?

I think this needs access to /proc how do I link that with the chroot?

Last edited by MarleyGPN; 12-06-2005 at 09:23 AM.
 
Old 12-06-2005, 10:05 AM   #8
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Original Poster
Rep: Reputation: 15
It does need /proc for it to work

I tried may ways of linking them.

Do you have any ideas?

Thanks,
MarleyGPN
 
Old 12-06-2005, 11:48 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
To get /proc, you must mount a filesystem of type procfs in a directory you have created. I believe that you must be root on the host system to do that.

I suggest that you review the installation guides of distributions like Linux from Scratch and Gentoo for specific examples of this sort of procedure...
 
Old 12-07-2005, 07:09 PM   #10
MarleyGPN
Member
 
Registered: Apr 2003
Location: Vail, CO
Posts: 73

Original Poster
Rep: Reputation: 15
Hi there,

I got it working yesterday. I will post the procedure once I get it organized.

Thanks for your help.


MarleyGPN
 
  


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
Linux having trouble reading mounted Windows drive trentr Linux - General 1 11-11-2005 05:49 AM
New Ubuntu install hasn't mounted windows hd or usb drive trempel Ubuntu 7 05-26-2005 04:58 PM
Manually remounting cd-rom drive stinks... vi0lat0r Linux - General 2 04-07-2004 07:30 AM
manually entering drive geometry artofluke Slackware 1 12-08-2003 02:06 AM
External Hard Drive Not Mounted during Install chazdg Mandriva 5 10-30-2003 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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