LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 01-27-2015, 12:37 PM   #1
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 50
Using debootstrap: haven't installed grub and can't complete installation


I have used debootstrap and installed Ubuntu onto /dev/sda3.
However, I have a slight problem.

I didn't use the OP's suggestion on modifying the command when installing the base system.
As a result, I simply used the following command:
Code:
root@host# debootstrap --arch amd64 saucy /mnt/deboot http://archive.ubuntu.com/ubuntu
As a result, I have not installed GRUB and configured it for the new install.
So when I reboot, Ubuntu on /dev/sda3 is not shown by the bootloader.

I also had a problem with putting the UUID of /dev/sda3 onto /etc/fstab.
I was uncertain whether to put the correct UUID (for sda3) into /etc/fstab of the host system I was in (i.e sda1), or to put the UUID into /etc/fstab which existed on /mnt/deboot. (At least, I think such a directory may exist - but as I say, I am uncertain).
I'd like to know how to sort out this particular issue.

After completing the tutorial, I ran:
Code:
osprober
update-grub
Both commands said they could see Ubuntu in sda3.
However when I reboot, GRUB will not offer sda3 as an option.

I think I may need to add sda3 into /etc/fstab of my host system (sda1) or possibly add GRUB into sda3 in some way.

OP has advised there will be an update to the debootstrap tutorial, and I will be looking forward to it.
But I wonder if someone can please say how I can activate this new install which I have on sda3?
I've started a new thread because I don't want to complicate the debootstrap tutorial thread.
 
Old 01-27-2015, 04:09 PM   #2
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by Higgsboson View Post
I have used debootstrap and installed Ubuntu onto /dev/sda3.
However, I have a slight problem.

I didn't use the OP's suggestion on modifying the command when installing the base system.
As a result, I simply used the following command:
Code:
root@host# debootstrap --arch amd64 saucy /mnt/deboot http://archive.ubuntu.com/ubuntu
As a result, I have not installed GRUB and configured it for the new install.
So when I reboot, Ubuntu on /dev/sda3 is not shown by the bootloader.

I also had a problem with putting the UUID of /dev/sda3 onto /etc/fstab.
I was uncertain whether to put the correct UUID (for sda3) into /etc/fstab of the host system I was in (i.e sda1), or to put the UUID into /etc/fstab which existed on /mnt/deboot. (At least, I think such a directory may exist - but as I say, I am uncertain).
I'd like to know how to sort out this particular issue.

After completing the tutorial, I ran:
Code:
osprober
update-grub
Both commands said they could see Ubuntu in sda3.
However when I reboot, GRUB will not offer sda3 as an option.

I think I may need to add sda3 into /etc/fstab of my host system (sda1) or possibly add GRUB into sda3 in some way.

OP has advised there will be an update to the debootstrap tutorial, and I will be looking forward to it.
But I wonder if someone can please say how I can activate this new install which I have on sda3?
I've started a new thread because I don't want to complicate the debootstrap tutorial thread.
It was updated a about a week ago. When you installed Ubuntu via debootstrap, did you install a kernel before exiting the install?
For the UUID of /dev/sda3:
Code:
blkid /dev/sda3
 
Old 01-27-2015, 06:45 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
you need to chroot back into the installation install a kernel as to step 6 of this http://www.thegeekstuff.com/2010/01/...-installation/
 
Old 01-28-2015, 01:53 AM   #4
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by replica9000 View Post
It was updated a about a week ago.
I see. That explains the additional information which I thought I had previously overlooked!
I've just noticed the update timestamp. That's good to see.

The tutorial says:
Code:
debootstrap can also be used to install Ubuntu (ex. Raring Ringtail):
root@host# debootstrap --arch amd64 raring /mnt/deboot http://archive.ubuntu.com/ubuntu
The system can't find 'Raring' on the ubuntu archive website. I think they've taken it off.

I found Debootstrap has script files or something in its directory (/usr/share/debootstrap/scripts).
For ubuntu, the script files seem to be identical.
So I copied the file for Raring and renamed it 'saucy'.
I then ran:
Code:
root@host# debootstrap --arch amd64 saucy /mnt/deboot http://archive.ubuntu.com/ubuntu
and the system was able to download all the files for saucy.

I didn't rename it 'utopic' for the latest ubuntu stable release because I wasn't sure if the correct script file for utopic had been amended in some way.

Quote:
When you installed Ubuntu via debootstrap, did you install a kernel before exiting the install?
No, I'm afraid I didn't. That's probably where I went wrong.
If I wanted to use debootstrap to install a stable version of Ubuntu saucy, would the command be:
Code:
root@host# debootstrap --include linux-image-amd64,grub-pc,locales --arch amd64 saucy /mnt/deboot http://archive.ubuntu.com/ubuntu
Also, if I wanted to install Ubuntu utopic, could I do this?:
Code:
root@host# cp /usr/share/debootstrap/scripts/raring /usr/share/debootstrap/scripts/utopic
root@host# debootstrap --include linux-image-amd64,grub-pc,locales --arch amd64 utopic /mnt/deboot http://archive.ubuntu.com/ubuntu
Finally, I think the link to the archives has changed from 'http://archive.ubuntu.com/ubuntu' to 'http://archive.ubuntu.com/ubuntu/dists'

Quote:
For the UUID of /dev/sda3:
blkid /dev/sda3
Yes, where is the /etc/fstab located for inputting the UUID?
I'm getting confused between the /etc/fstab of the host system, and the /etc/fstab presumably being created in the mounted 'deboot' directory.
 
Old 01-28-2015, 02:40 AM   #5
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by colorpurple21859 View Post
you need to chroot back into the installation install a kernel as to step 6 of this http://www.thegeekstuff.com/2010/01/...-installation/
I'm not sure how to chroot back into the installation.
I think everything was extracted into sda3.
I'm wondering if it's easier to delete everything on the sda3 partition and redo the install.
 
Old 01-28-2015, 05:08 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
from the howto you initially followed.
Quote:
Binding the virtual filesystems. Until your new install is booting on it's own, we'll borrow these from the host.
Code:

root@host# mount -o bind /dev /mnt/deboot/dev
root@host# mount -o bind /proc /mnt/deboot/proc
root@host# mount -o bind /sys /mnt/deboot/sys


Continuing the installation within chroot
Entering the chroot environment:
Code:

root@host# chroot /mnt/deboot /bin/bash

Last edited by colorpurple21859; 01-28-2015 at 05:11 AM.
 
Old 01-28-2015, 10:28 AM   #7
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by Higgsboson View Post
I see. That explains the additional information which I thought I had previously overlooked!
I've just noticed the update timestamp. That's good to see.

The tutorial says:
Code:
debootstrap can also be used to install Ubuntu (ex. Raring Ringtail):
root@host# debootstrap --arch amd64 raring /mnt/deboot http://archive.ubuntu.com/ubuntu
The system can't find 'Raring' on the ubuntu archive website. I think they've taken it off.

I found Debootstrap has script files or something in its directory (/usr/share/debootstrap/scripts).
For ubuntu, the script files seem to be identical.
So I copied the file for Raring and renamed it 'saucy'.
I then ran:
Code:
root@host# debootstrap --arch amd64 saucy /mnt/deboot http://archive.ubuntu.com/ubuntu
and the system was able to download all the files for saucy.

I didn't rename it 'utopic' for the latest ubuntu stable release because I wasn't sure if the correct script file for utopic had been amended in some way.
You shouldn't have to rename any of the scripts. Most of them are just symlinks to the gutsy script. I'm assuming that script should allow you to install any of the Ubuntu versions available at http://archive.ubuntu.com/ubuntu/. I haven't spent a lot of time using debootstrap to install Ubuntu. I know the latest version is utopic, and the latest LTS is trusty, soon to be vivid.

Quote:
Originally Posted by Higgsboson View Post
No, I'm afraid I didn't. That's probably where I went wrong.
If I wanted to use debootstrap to install a stable version of Ubuntu saucy, would the command be:
Code:
root@host# debootstrap --include linux-image-amd64,grub-pc,locales --arch amd64 saucy /mnt/deboot http://archive.ubuntu.com/ubuntu
Also, if I wanted to install Ubuntu utopic, could I do this?:
Code:
root@host# cp /usr/share/debootstrap/scripts/raring /usr/share/debootstrap/scripts/utopic
root@host# debootstrap --include linux-image-amd64,grub-pc,locales --arch amd64 utopic /mnt/deboot http://archive.ubuntu.com/ubuntu
Debian uses linux-image-amd64 as a meta-package name for it's latest kernel. Ubuntu uses linux-image-generic instead.

Quote:
Originally Posted by Higgsboson View Post
Finally, I think the link to the archives has changed from 'http://archive.ubuntu.com/ubuntu' to 'http://archive.ubuntu.com/ubuntu/dists'
You should always use http://archive.ubuntu.com/ubuntu as the repository for Ubuntu, at least for current releases. I'm not sure what Ubuntu does with older releases. With Debian, you can use branch names instead of code names. If you weren't sure if wheezy or jessie was Debian's current stable release, you could simply specify stable instead.

Quote:
Originally Posted by Higgsboson View Post
Yes, where is the /etc/fstab located for inputting the UUID?
I'm getting confused between the /etc/fstab of the host system, and the /etc/fstab presumably being created in the mounted 'deboot' directory.
Assuming you've mounted /dev/sda3 on /mnt/deboot, then you'll want to add the UUID of /dev/sda3 to /mnt/deboot/etc/fstab
 
Old 01-29-2015, 01:39 PM   #8
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by colorpurple21859 View Post
from the howto you initially followed.
Binding the virtual filesystems. Until your new install is booting on it's own, we'll borrow these from the host.
Code:
root@host# mount -o bind /dev /mnt/deboot/dev
root@host# mount -o bind /proc /mnt/deboot/proc
root@host# mount -o bind /sys /mnt/deboot/sys
Continuing the installation within chroot
Entering the chroot environment:
Code:
root@host# chroot /mnt/deboot /bin/bash
I'm going to do a re-install with the kernel included this time.
This way I can download the latest utopic version. Thank you.
 
Old 01-29-2015, 01:45 PM   #9
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by replica9000 View Post
You shouldn't have to rename any of the scripts. Most of them are just symlinks to the gutsy script. I'm assuming that script should allow you to install any of the Ubuntu versions available at http://archive.ubuntu.com/ubuntu/. I haven't spent a lot of time using debootstrap to install Ubuntu. I know the latest version is utopic, and the latest LTS is trusty, soon to be vivid.
Ok, in that case I'll try and install utopic using debootstrap.

Quote:
Debian uses linux-image-amd64 as a meta-package name for it's latest kernel. Ubuntu uses linux-image-generic instead.
Excellent. I'll try that.

Quote:
You should always use http://archive.ubuntu.com/ubuntu as the repository for Ubuntu, at least for current releases. I'm not sure what Ubuntu does with older releases. With Debian, you can use branch names instead of code names. If you weren't sure if wheezy or jessie was Debian's current stable release, you could simply specify stable instead.
I'll try the link as you say for the current release.

Quote:
Assuming you've mounted /dev/sda3 on /mnt/deboot, then you'll want to add the UUID of /dev/sda3 to /mnt/deboot/etc/fstab
That's exactly what I wanted to know. Thank you very much.
Will let you know how I get on!
 
Old 01-29-2015, 09:16 PM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The problem that you're eperiencing is due to the fact that you are trying to install packages that are from a different repo when you chroot into system it already has it's sources.list. You don't need to tell the system which repo to install from.
You can do
Quote:
apt-cache search linux-image
apt-get install linux-image
That command does depend on how ubuntu lists it's kernel.
 
  


Reply



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
create an install iso of debootstrap installation cccc Debian 2 06-12-2013 02:51 PM
Installation of kernel of a debootstrap Armane Debian 11 03-21-2007 09:25 AM
Want to get into Linux, haven't installed anything yet tsunamikitsune Linux - Newbie 12 06-22-2006 10:00 AM
I have 10.1 but haven't installed, should I get 10.2 instead? ReuvenNY Mandriva 3 08-19-2005 01:36 AM
direct installation from network?debootstrap? heleen Debian 1 04-28-2005 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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