How do you install linux manually to mounted drive?
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800
Rep:
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.
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
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.