DebianThis forum is for the discussion of Debian Linux.
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.
The iso can be loaded to the hdd using unetbootin, but I don't believe it can be an iso already loade & bootable from the usb. What would work is a system that was loade by Wubi in a wins environment.
In the test I did yesterday, I used Mint 17.1. The /etc/network/interfaces file doesn't included entries for eth0. I'll have to update the OP later since copying that file won't be a reliable option.
Won't work if the host system is Slackware either.
I'm glad you're not giving up so easily, but using debootstrap is more for someone experienced building up a system with minimal tools included. Be glad you didn't try the variant=minbase option.
In the test I did yesterday, I used Mint 17.1. The /etc/network/interfaces file doesn't included entries for eth0. I'll have to update the OP later since copying that file won't be a reliable option.
It may be /etc/resolv.conf & /etc/interfaces which maybe listed under /mnt or /media which might need the uuid
To help Higgsboson out I continued over on the ops other thread. This installs the full gnome desktop with working internet after installing the base system. What it doesn't do is install grub, add-users, set time zone, and set locales. http://www.linuxquestions.org/questi...5/#post5296741
Last edited by colorpurple21859; 01-06-2015 at 10:59 PM.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
I have had success with debootstrap in installing a debian stable release onto a hard disk partition without installing from cd-rom!
I now have dvd-rw discs to make a normall installation, but the optical drive is writing too fast. Also, for some reason my debian OS doesn't have debian-installer.
So rather than spending days finding out how to remedy the problem, I'd like to use debootstrap again.
I have the commands to use debootstrap set out below. It's the OP's original 'HOW-TO' modified for my situation. I don't really understand the commands but have a vague idea what it's doing. Can anyone please look through the source and advise if it's correct and in the right order? Many thanks.
2. Mount target partition to a mount point. The target partition (sda2) is already in ext4 format.
Code:
root@host# mkdir /mnt/deboot
root@host# mount /dev/sda2 /mnt/deboot
3. Install base system, kernel and bootloader. I'll be using a UK mirror site. Unfortunately, I have a Radeon 4200 sound card - so I'll need 'contrib' and 'non-free' versions of debian.
It would be good here to know commands for different GUIs.
10.'Clean the package cache':
Code:
root@chroot# apt-get clean
root@chroot# exit
So now I should have a debian installation on sda2. I already have a distro on sda1 with GRUB bootloader.
So now I'm hoping GRUB will allow me to boot from sda2 so the new installation can begin.
Can anyone please say if the above is ok for a new install?
3. Install base system, kernel and bootloader. I'll be using a UK mirror site. Unfortunately, I have a Radeon 4200 sound card - so I'll need 'contrib' and 'non-free' versions of debian.
6. Copy correct file onto install for network access. I needed to do this after the install but I'm not sure when to put in the command:
Code:
cp /etc/resolv.conf /mnt/etc/resolv.conf
I'll be updating this soon. I'll probably leave an example of /etc/network/interfaces since copying it from the host may not work in a lot of cases. Using that file should work, but there could be other options of achieving the same result. For instance, you're installing stable, which is still using Sys-V init. Unstable should be installing systemd init by default. The host I used for the test the other day was using upstart init. Each might have it's own method of configuring network interfaces.
Quote:
Originally Posted by Higgsboson
9. 'Install a display manager and a window manager':
It would be good here to know commands for different GUIs.
Can anyone please say if the above is ok for a new install?
When I update it, I could add a couple more examples of installing desktop managers. Since you're interested in Gnome, this should get you a basic Gnome desktop. Also, this will install network-manager, which should configure your network for you.
Code:
apt-get install gdm3 gnome-shell gnome-terminal
Last edited by replica9000; 01-10-2015 at 11:39 AM.
Reason: Additional info
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
Quote:
Originally Posted by replica9000
I'll be updating this soon. I'll probably leave an example of /etc/network/interfaces since copying it from the host may not work in a lot of cases. Using that file should work, but there could be other options of achieving the same result. For instance, you're installing stable, which is still using Sys-V init. Unstable should be installing systemd init by default. The host I used for the test the other day was using upstart init. Each might have it's own method of configuring network interfaces.
Wow, thanks for looking throught it, dude!
To make my target partition (sda2) bootable for GRUB, I've used Gparted and flagged it as a 'boot' partition.
To make my target partition (sda2) bootable for GRUB, I've used Gparted and flagged it as a 'boot' partition.
It doesn't matter about boot flag if you just do "grub-install /dev/sda" it will install grub to the / partition but also make entry to MBR to point to your grub.
Depending on your system you may want to create a swap partition.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
Quote:
Originally Posted by EDDY1
It doesn't matter about boot flag if you just do "grub-install /dev/sda" it will install grub to the / partition but also make entry to MBR to point to your grub.
Depending on your system you may want to create a swap partition.
Thanks dude. That's good to know. I read somewhere that it's easier just to have GRUB on each linux OS.
Swap files and swap partitions are certainly a good idea. I'm gonna have to find out a bit more and decide where to put them.
It's easier to have only 1 grub & let it control everything.
Once you have grub installed any other OS can be added to debian's grub by running "update-grub"
For a complete desktop run one of the following depending on the preferred desktop:
tasksel --new-install install kde-desktop
tasksel --new-install install xfce-desktop
taslsel --new-install install gnome-desktop
tasksel --new-install install lxde-desktop
The network setup will take care of it's self when installing a full desktop.
Last edited by colorpurple21859; 01-10-2015 at 07:40 PM.
I've been playing around with it some. Firmware has to be install if needed and the tasksel command for a full install with the best results is something similar to this after doing apt-get update:
Code:
tasksel --new-install install standard laptop gnome-desktop
Last edited by colorpurple21859; 01-10-2015 at 10:45 PM.
I've been playing around with it some. Firmware has to be install if needed and the tasksel command for a full install with the best results is something similar to this after doing apt-get update:
Code:
tasksel --new-install install standard laptop gnome-desktop
Thanks for the info. I'll probably add it when I update the OP.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
I have completed the install to my sda2 partition using debootstrap.
The install was successful and a debian OS is running- but there is a problem.
Originally, the GRUB boot menu would offer options to boot debian from sda1 and Windows from a seperate hdd in sdb1.
But now that I've installed a new debian distro in sda2 - I get a new GRUB menu which only offers the option to boot from sda2.
The options for sda1 and sdb1 have disappeared.
I tried update-grub and the output is:
Code:
update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
done
But the GRUB boot menu is unchanged and only sda2 can be accessed.
I used a live USB and removed the boot flag on sda2.
I then added a boot flag to sda1.
However, this has had no effect.
Does anyone know why GRUB isn't seeing the 2 distros on sda and the Windows on sdb?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.