LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2012, 04:40 PM   #1
furry-penguin
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Rep: Reputation: 0
How do i install linux from bootstrap CD/ISO?


Hello,

sorry for the newb question, but here it goes :-)

I have an ISO with Debian Squeeze bootstrap - it boots up fine. I then fdisk and mount my physical drive - no problems, i can create files, etc.

But my question is, now do i install on this base linux onto that drive and make it bootable? The instructions on the site say 'Install to Disk' but I dont have that option when i boot up - even if i did i would like to know how to do it.

So far ive just fdisk and created ext4 filesystem - how do i know get it bootable with a minimal linux version (pref just like the iso/cd im using)

Thanks in advance
 
Old 10-17-2012, 05:54 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,872
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
Which CD are you using? Why not just use an install CD?
But anyways, if you have debootstrap on the disk you can use it to install a minimum system on the mounted partition.
After that you have to chroot into the partition and install a kernel and a bootloader.
But just using a proper install disk would be the simplest option.
 
Old 10-17-2012, 06:49 PM   #3
furry-penguin
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Which CD are you using? Why not just use an install CD?
But anyways, if you have debootstrap on the disk you can use it to install a minimum system on the mounted partition.
After that you have to chroot into the partition and install a kernel and a bootloader.
But just using a proper install disk would be the simplest option.
Thank you for the reply:

I'm crazy and like pain so i don't want to use the easy option of an install disk :-) I want to know how to do it w/o (just for knowledge) -- so my question then is: I have created the partition, how do i go about installing a kernel and bootloader? I know that may sound goofy but I really want to do this.

Oh, im using turnkey-bootstrap-12.0-squeeze-x86.iso --
thanks again :-)
 
Old 10-17-2012, 08:00 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,872
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
Sorry, I don't know anything about those turnkey things. Get a Debian Live CD, it can be used to bootstrap a really minimal system (although the results will be the same as using the install disk and deselct everything when asked what to install.
Basically you do it it this way:
1. Boot from the live CD, mount your partition.
2. Use debootstrap to install a minimal system to that partition. See
Code:
man debootstrap
for more information.
3. Bind-mount /dev, /proc and /sys on the new install, copy over your /etc/resolv.conf so that you have network access and chroot into the new system.
Info for that with
Code:
man mount
man chroot
4. Create the /etc/apt/sources.list file, pointing to a valid mirror.
5. Use apt-get to install a kernel and the bootloader of your choice and other software you want to have installed, like a text editor.
6. Exit from the chroot, remove all mounts and reboot into the new system.

Last edited by TobiSGD; 10-17-2012 at 08:01 PM.
 
Old 10-19-2012, 04:33 PM   #5
furry-penguin
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Sorry, I don't know anything about those turnkey things. Get a Debian Live CD, it can be used to bootstrap a really minimal system (although the results will be the same as using the install disk and deselct everything when asked what to install.
Basically you do it it this way:
1. Boot from the live CD, mount your partition.
2. Use debootstrap to install a minimal system to that partition. See
Code:
man debootstrap
for more information.
3. Bind-mount /dev, /proc and /sys on the new install, copy over your /etc/resolv.conf so that you have network access and chroot into the new system.
Info for that with
Code:
man mount
man chroot
4. Create the /etc/apt/sources.list file, pointing to a valid mirror.
5. Use apt-get to install a kernel and the bootloader of your choice and other software you want to have installed, like a text editor.
6. Exit from the chroot, remove all mounts and reboot into the new system.
Thank you for the response. I may end up doing this if i cannot figure out how to dot it simply from a live cd / terminal access and a mounted/formatted blank disk :-) I'll let you know what i end up doing - thanks.
 
Old 10-20-2012, 12:24 PM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,057

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Another thing you could do if you want to start out a bit simpler but not with a full install disk is to use the netinstall disk.

That will install a kernel and all the APT stuff you need but not much more if you don't let it at the end of the install where it asks if you want to install a DE and so forth.

This will boot to a black screen and a log in prompt. You can install from there the rest of what you want.

A lot of us use that to install testing or sid. You can have just the Squeeze base and upgrade to testing and then on to Sid without adding anything to it. Then install the rest of the system.

I would highly recommend installing on 2 partitions rather than 1 (/ and /home).

If you continue on in your debootstrap install keep us informed. Have never fooled with it either and would be interested.

I don't know if you have seen this;
http://www.debian-administration.org/articles/426

May be of some help in your exercise in self flagilation. Have FUN.
 
Old 10-20-2012, 01:01 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,872
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
Quote:
Originally Posted by widget View Post
A lot of us use that to install testing or sid. You can have just the Squeeze base and upgrade to testing and then on to Sid without adding anything to it. Then install the rest of the system.
Why so complicated? Choose the expert installation option, this way you can just choose which version you want to install.
 
Old 10-20-2012, 05:29 PM   #8
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,057

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Quote:
Originally Posted by TobiSGD View Post
Why so complicated? Choose the expert installation option, this way you can just choose which version you want to install.
Will have to look at that.

Probably just do it from habit.
 
  


Reply

Tags
debian, install


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Weekend Project: Bootstrap Your Site with Bootstrap LXer Syndicated Linux News 0 09-02-2011 11:30 PM
How do I install to a local directory? How with bootstrap? golmschenk Linux - Newbie 2 11-03-2010 07:34 PM
Linux iso install? wered Linux - Newbie 8 05-28-2010 12:49 AM
linux /boot not booting from bootstrap texasone Linux - General 2 02-22-2009 12:10 PM
LVM and Stage3 / Bootstrap / Rpmstrap Install Issues TheOracle Linux - General 2 02-08-2007 03:06 AM


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