install o/s by command line
in ignorance,
I have a h.drive with several linux o/s's on and have partitioned and formated another partition using fdisk how do I install another os using a cd (or other) via the command line? I know there are easier ways but is there a command line event and what is the 'code'. Roy. |
If it's Linux, boot the install media and it should ask you which partition(s) to use.
|
install os (linux) using cml
sorry, I have not made myself clear. It seems a disappointment after struggling with the fdisk to revert to ease of use. Is there an install command to install an os and then choose your media? Or define your media pre-insert,etc then go ahead otherwise there seems little point in the fdisk as a new 'version' exists on modern installation disks. If that is not too contradictory.
Fred. |
If your os in in form of rpm (redhat ) or in tar format there there may be way to install it, there is no need of special command This is what my logic says.
|
If you are using RH or CentOS, then you can boot from first disk, and then use the askmethod option to choose from the method.
If you want to use text mode, you can use text option to install directly from media using text mode. |
Quote:
H drive is terminology used by some other OS and is not meaningful here. Quote:
If you want to do this from a usb device, it will need to be on a computer that has 'boot from usb' as a bios option. Quote:
Quote:
AFAICT this seems irrelevant to the question, but my misunderstanding may just have greater depth than I thought. Quote:
I think you may be asking something very, very easy. Here are the instructions: Boot the install media. Use the install program. Use its partitioning/formatting options. Let the install proceed. Now, what else were you asking? |
It would seem that the OP's original question is "Can I install a new OS from the command line of an existing OS without having to boot to the install media?" (If I'm wrong, please disregard this post.)
To my knowledge, the new OS installer works when you boot from the install media (in this case, the CD.) However, if you use a virtual machine (VMWare and the like) you can install an image of the new OS to use in a virtual environment without having to boot to the install the media. Other than that, I think you need to install the OS by restarting the computer with the CD in the drive and boot from it instead of the OS that is currently installed on your hard drive. |
If the OP wants to install a new OS from scratch from inside an existing OS, using the command line, then he might want to take a look at Linux From Scratch. It goes through how to do exactly that. In principle, any Linux distro can be installed "from scratch" inside another, just by performing the same commands that the install routine would perform.
|
chiatanya
No I'm not on Red Hat, or even Fedora, but I get your drift. What is the text, writing, to start and install an o/s on a pre-prepared disk (unmounted),eg, sda or hda 5 on any bash line be it Debian or R/H?
Fred. p.s. Please excuse my ignorance. |
Hi,
Quote:
As for the prepared partition you can use that as your install partition when you boot an installer for the GNU/Linux Distribution of choice as long as there is enough space for the filesystem. Once booted you would direct the installer to that partition. Each Distribution handles the install differently but generally you will need to use the installer for the distribution you choose. As an example with Slackware you can use the 'USB & PXE' install method other than the cd/dvd but you still need to prepare the USB for the installer then you redirect after the boot of the USB either to boot PXE or USB install. Generalized explanation but most installers must take control of your install machine to continue with any install. Now if your speaking of upgrading or package installs then that another method entirely for most distributions. |
install
Dear Onebuck,
what you say makes sense,especially, about the 'installation' taking control of the system but I take it you cannot issue a string of 'commands' to set up the install of an o/s. Fred. |
Hi,
Quote:
|
Each Linux distro has a different installation method, some of then can be invoked or faked easily from an already installed system, however you will always need some understanding about how partitioning works, about how the bootloaders can be configured, and about some other things.
Gentoo or LFS are typical examples of Linuxes that can be installed from the commands line of an already working Linux that you have installed. In fact you could be installing Gentoo using an xterm in your Fedora desktop while surfing the net or killing some aliens. But they are not the only ones, for example, the process is well documented for Debian: http://www.debian.org/releases/stabl...apds03.html.en Knoppix has an installer that can also be launched from the command line, so I guess that you should be able to mount the knoppix cd or squashfs image and then just launch it. I am sure that you could find instructions for some other Linuxes as well. There's no standard way to just put any arbitrary Linux cd on the tray and just launch a single command to install it, since the process and the very format of the disk can vary from distro to distro. That's why most people just reboot into a livecd or an usb image and use that. |
All times are GMT -5. The time now is 12:47 AM. |