Debian :: Debootstrap To LVM - Booting But No Root
Nov 21, 2015
first time with debootstrap, i followed: [URL] the error i get on boot looks like this:
Code: Select all [URL]
they did not mention lvm speficically so i just installed lvm2 inside the chroot and created my fstab like this:
Code: Select all/dev/mapper/debian--unstable-root / ext4Â Â errors=remount-ro 0Â Â Â Â 1
/dev/mapper/debian--unstable-home /home ext4  defaults    0    2
/dev/mapper/debian--unstable-tmp /tmp    ext4  defaults    0    2
/dev/mapper/debian--unstable-var /var  ext4  defaults    0    2
Having one mounted from jessie looks like this:
Code: Select all/dev/mapper/debian--unstable-root on /home/julius/other-systems/debian-unstable type ext4 (rw,relatime,data=ordered)
So I guess the fstab is correct
I already tried to "refresh" the inittab with:
Code: Select allupdate-initramfs -u
command ran ok, but no change at boot.
View 1 Replies
ADVERTISEMENT
Feb 11, 2010
For my dissertation I created a debootstrap install of Lenny. When I boot this system I just can login with root without a password. When I want to ssh this machine with the debootstrap install I can't just login with root. I'm asked for a password which I don't have.
So I created one with passwd root and after that I can connect to the machine with ssh and the given password. But the machine still logs in with without a password.
View 3 Replies
View Related
Aug 26, 2010
Im currently installing debian on my old server, its a 64bit computer, so i've downloaded the amd64 for this project. But under the Basis Installation, of this cd image, im getting a debootstrap warning every time i want to continue the installation, the last warning i remember was something coreutils_6.10-6_amd64.deb (Something like that, not totaly sure), and im lost, can't find anything closely related to the subject.
View 11 Replies
View Related
Feb 26, 2011
I am installing Wheeze using netinstall.
After the partition step, the installation gives me the following error: Debootsrap Error.
Invalid Release file: no entry for main/binary-amd64/Packages
I have tried several iso's with several cd's but nothing is working.
View 11 Replies
View Related
Jul 19, 2011
I am trying to install Wheezy testing i386 using netinstall .iso disk.
After the disk partition stage and while in the 'Install the base system' stage I get the message;
Debootstrap error:
The following error occurred: The bzcat is not available on the system Check /var/log/syslog or see virtual console 4 the details.
I have over the past couple of months downloaded three daily builds of testing and the md5sums are good on all of them yet I have the same problem with each disk.
View 3 Replies
View Related
Feb 21, 2015
I'm trying to manually boot (from the GRUB console) into a system set up as follows: crypt partition -> LVM -> root LV, and I'm having some trouble figuring out how to do this from the GRUB console.
I have successfully manually booted a system which is set up as just LVM -> VG -> root LV. All I have to do is load the LVM module. In GRUB, that partition shows up as (hd0,gpt5). Once I load the GRUB LVM module, I can see the logical volume within the LVM as well. (My volume group name is "caesar", and the single logical volume is named "root".)
Code: Select allgrub> ls
... (hd0,gpt5) ...
grub> insmod lvm
grub> ls
... (lvm/caesar-root) ...
It's fairly simple to manually boot:
Code: Select allgrub> set root=(lvm/caesar-root)
grub> linux /vmlinuz root=/dev/mapper/caesar-root
grub> initrd /initrd.img
grub> boot
Where I am having difficulty is in trying to insert crypt before LVM. I can set up such a scheme, and put a minimal installation on it, without issues. It's booting into it upon reboot that I can't figure out. Once I load the GRUB crypto, cryptodisk and luks modules, I can mount the crypto partition:
Code: Select allgrub> ls
... (hd0,gpt5) ...
grub> insmod crypto
grub> insmod cryptodisk
grub> insmod luks
grub> cryptomount (hd0,gpt5)
Attempting to decrypt master key...
Enter passphrase for hd0,gpt5 (<long hex string here>): <type my password>
Slot 0 opened
grub> ls
... (crypto0) ...
At this point, GRUB sees the crypto partition as (crypto0). But the GRUB LVM module doesn't see "inside" of the crypto partition, so I don't see the root logical volume within the LVM listed; all I see is (crypto0).
Code: Select allgrub> insmod lvm
grub> ls
... (crypt0) ...
Setting it as root doesn't work:
Code: Select allgrub> set root=(crypto0)
grub> ls /
error: disk `crypto0' not found.
So, How do I get GRUB to "see" LVM inside the crypto partition?
View 0 Replies
View Related
Feb 21, 2011
I am trying to build a chroot to have 32bits application on a amd64 arch. but when I try the debootstrap command i get this error that I am unable to get through; here it is: debootstrap --verbose --arch=i386 sid /var/chroot/sid-ia32 I: Retrieving Release E: Invalid Release file, no entry for main/binary-i386/Packages
then i tried this solution: [URL] and i progressed but stopped again at one error: E: can't find checksum for packages file.
View 2 Replies
View Related
Sep 7, 2015
So I have installed Debian through debootstrap and it seemed to go off without a hitch, the problem came problem came about during the boot process. I am dual-booting with Arch and use Systemd-boot as my bootloader... it finds the kernal and initrd and starts to boot but I run into this problem where it gets to the options part for root and doesn't mount. have done this very same installation on virtualbox with ext4 filesystem and it worked without a hitch.. I know it has something to do with the btrfs subvolumes I'm so new to Debian I haven't made it past this installation process..
here is my lsblk
Code: Select all Â
sda    8:0   0  /My_Files
sdb    8:32  0  /home
sdc    8:48  0  Â
[code]....
I have installed btrfs-tools and I don't know what the following means... It seems to do the first two fine, vmlinuz and initrd.img but it doesn't find my root because maybe it doesn't recognize the 'rootflags' tag? or Debian doesn't automatically deal with btrfs-subvolumes nicely?
Code:
Select allBegin: checking root file system . . . fsck from util-linux 2.25.2
/sbin/fsck.btrfs: BTRFS file system
mount: mounting PARTUUID=................................................................ on /root failed
Target filesystem doesn't have requested /sbin/init
View 14 Replies
View Related
Aug 13, 2010
I just did a simple debootstrap lenny /opt/lenny-chroot http://fpt.de.debian.org/debian There is no vmlinuz or initramfs under /opt/lenny-chroot/boot. What would be the next minimalistic necessary step to get it there?
View 1 Replies
View Related
Aug 1, 2011
I am trying to run "sudo pbuilder create" where it runs debootstrap. Then it says:
Code:
I: Checking component main on http://bg.archive.ubuntu.com/ubuntu. Problem is that this is the old repo I've used. After installing pbuilder and the other dpkg essential packages I've run "sudo pbuilder create", noticed the message of the repo and since I am no longer in Bulgaria, interrupted the script, went to synaptic and changed the repo from there (now is http://archive.linux.duke.edu/ubuntu/). Even rebooted. Double-checked in synaptic the repo is still changed, grepped the files in /etc/apt for "bg" and all results were commented. I ran again "sudo pbuilder create" and it still reports the old repo.
So where does debootstrap reads the repo setting from and how to fix it?
View 3 Replies
View Related
Aug 7, 2010
I've been trying to install Ubuntu server 10.04 and I keep getting a Debootstrap warning. Warning: file:///cdrom/pool/main/p/plymouth/libplymouth2_0.8.2-2ubuntu2_i386.deb was corrupt. I am then presented with options to Continue or Go Back. Whichever option I choose, the installer keeps giving me Deboostrap warnings. I've tried to find solutions online and I've done the CD integrity test as well as a memory test. I've passed both. i am installing this on a Dell Dimension 8400 machine with 1 GB RAM and a 80 GB HDD.
View 1 Replies
View Related
Feb 9, 2010
At work they gave me the following task (and i need some help from you guys!):At work we have a normal PC running Ubuntu 9.10 (32-bit), which works good.We also have a LaCie Ethernet Disk Mini v2, which runs embedded Linux (RedHat), but is so trimmed down, you can't use the disk we would like to use it.The task is this: On the X86 machine, make a bootable image for the ARM architecture and write it to a harddisk (which fits the LaCie offc.) so it can boot off it.Now i have done some investigation, but don't know how to combine it all:
- I can use debootstrap to create a minimal Debian system, but there comes the problem, you can't chroot into a foreign created system (i.e. X86 cannot chroot into ARM system).
- I can use QEMU, which can emulate a ARM processor, but can i use the image that QEMU uses as a normal image for a harddisk, so it would boot off it (when using dd to write it to a real harddisk)?
- Current kernels support the LaCie hardware (Marvell chipset)
- I know how to use tools such as dd, so if the image is generated i can write it to disk and have the LaCie boot from it.
The LaCie box has the following: 1 ARM9 ARMv5TEJ (266 MHz) CPU with 64 Mb RAM, Gigabit network controller and 1 usb host port, internal there is a sata port obviously.The only thing i want at the moment is to have the LaCie boot Debian and i can SSH into it, from there the rest is easy as pie.Is someone willing to help me accomplish this task? It would seriously mean and help alot!If all goes well and if i get all things up and running i would like to make a Howto of it and place that here, maybe it will be of some use !
View 4 Replies
View Related
Sep 7, 2010
I'm running Karmic Desktop Live CD from a USB stick, and trying to install Ubuntu to a hard disk using debootstrap I get these errors:
$ sudo debootstrap karmic /dir file:///cdrom/
Quote:
I: Retrieving Release
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
W: Failure trying to run: chroot /dir mount -t proc proc /proc
[Code].....
I've read this bug report: [URL] basically, the discussion states that Desktop CD can not be used as package source for debootstrapping, I understand it is because of different file structure than the required for a repository, but would like to know more specific information about it, and if possible, how could I use the CD as package source for debootstrap?
View 1 Replies
View Related
Mar 19, 2011
I've installed Fedora 15 with Fedora 14 already installed in other partitions, but now I can't boot Fedora 14 as it prompts "no root device found", these are both grub.confQuote:
#boot=/dev/sda
default=0
timeout=120
[code]...
View 2 Replies
View Related
Mar 10, 2010
I have an etch-based Xen server that has several Xen domU's on it. All the domU's are etch or lenny based, but I'd like to install a karmic guest. I use xen-tools to install my domU's - e.g., xen-create-image --debootstrap <etc.>After much googling, I've found bits and pieces of info that have gotten me closer to the goal, but the debootstrap script I have is for hoary (I think etch came with this), and I'm pretty sure this won't work.
If you have been able to successfully install a Karmic guest on an etch or lenny host, I'd be very grateful for pointers.
View 1 Replies
View Related
Oct 23, 2010
I did search for this but could not easily find the answer I wanted. When I use update manager in 10.04 to upgrade to 10.10 I get an error that there is not enough free disk space. It seems the upgrade uses 19.9M and I only have 16M free from the 100M on my /boot. I am not sure if it is related but I have dual boot. And when rebooting, I have a lot more than just boot into windows or boot into ubuntu. The list shows something live five different linux boot options (ten if you count the recovery modes). It seems that there are five different 2.6.32 - xx - generic options. Are these taking up space and how do I remove the unneeded ones?If I should repartition /boot how big should I make it so this does not occur the next time? Here is the output from df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 9.7G 3.2G 6.0G 35% /
none 1002M 312K 1002M 1% /dev
[code]...
View 2 Replies
View Related
May 8, 2011
I have successfully migrated my linux install to a new /, /home, /boot partition on my ssd. Everything works fine, except that it won't make the root directory on the right disk. When I change the root=uuid=<drive id> to my new drive everything is fine, but I can't automate that... in other words I have manually typed the uuid of my root-partition for about 100 times now and I am fed up with that how I can save the uuid of my new drive in the startup parameters?
View 2 Replies
View Related
Jul 4, 2011
I just did a full install of Slackware64 on my netbook. Everything was sweet until I tried switching to the generic kernel. Even before this, I noticed when I ran the mount command it listed not sda3, which really is the root partition, but /dev/root as the root partition. This also appears in mtab, but not fstab. So yeah, here are the errors when I try booting into the generic kernel:
Code: mounting /dev/sda3 on /mnt failed: No such device No /sbin/init found on rootdev (or not mounted) bin/sh: cant access tty: job control turned off
I've tried rebuilding the mkinitrd_command_generator.sh script several times, as well as lilo.conf. But no success I've looked at some similar old threadss here but most of them are related to slackware 12 and older, so I don't know if these issues are related or not.
View 8 Replies
View Related
Jan 3, 2010
I recently recieved Ubuntu 9.04 Desktop Edition CD-ROM through snail-mail after requesting a copy online and I want to install it on my laptop, although I wish to keep Vista which is on it now.
My laptop has a 250GB hard drive. Although when in Vista this is represented as two separate drives each of 110GB, (C or ACER and (D or DATA.
Using the CD, I start the installation and everything is straightforward and self explanatory, until I get stuck at step 4...
Where I am told by the ubuntu installer: "This computer has several operating systems on it." (I'm confused now, I thought it had one, Vista.)
Beneath I am shown a bar representing my disk space which is divided between...
I am given the option to use the entire disk: 'SCSI1 (0,0,0)(sda) - 250.1GB ATA WDC WD2500BEVT - 2', (and from the mention of 250BG in the name I'm assuming this is one disk and not the two separate drives named C: & D: in Vista.) ...along with a warning - "This will delete Windows Vista (loader), Windows Vista (loader), Microsoft Windows XP Embedded and install Ubuntu 9.04". (The aforementioned "several operating systems" obviously.)
But I wish to keep Vista, so I select the option to "specify partitions manually" and am brought to a screen named 'Prepare Partitions', where there is a table somewhat like this:
I am then given the option for "New partition table", and if I select any of the bottom four devices I can 'edit partition' or 'delete partition'.
Selecting the device /dev/sda3 (because it is the one that I'm guessing has no operating system data on it, judging by the previous screen) and choosing 'edit partition', allows me the following options...to create a new partition size, to select what I want to use the partition as. (There are also two options for formating a partition, which is a checkbox, and Mount point. These are both greyed out.)
When I look at the 'Use as:' option, within 'edit partition', the drop down box allows me to use the partition in the following ways:
- do not use the partition
- swap area
- NTFS
- FAT 32 file system
- FAT16 file system
- XFS journaling file system
- ReiserFS journaling file system
- Ext2 file system
- Ext4 journaling file system
- Ext3 journaling file system
View 3 Replies
View Related
Feb 19, 2011
I was using the latest stable release of Debian, dual-booted alongside Windows Vista, with the GNOME desktop, installed via netinst, trying to build and install a library that I knew and trusted, when suddenly I couldn't open the Root Terminal. I clicked the link (in Applications->Accessories (I think, whatever the top one is)->Root Terminal), and in the taskbar I saw an item that said "Starting Root Terminal". A few seconds later, that went away, but the terminal still wasn't open. I tried the regular user terminal, to see the same thing happen. Unsure of what was happening, I tried restarting my computer, since that's always the first step you should take in computer problems.
When I restarted, GNOME wouldn't start. The screen would flash a bit for a few seconds, then a dialog box would appear over a background of static that said "The greeter application is crashing. Attempting another one...".t would then go back to the DOS-style kernel, wait a second, and then the same thing would happen. After several of that, I would get a blue screen which said something to the effect of "It has been detected that the desktop environment has crashed six times in the past 30 seconds.
Waiting two minutes before trying again." When it did that, I tried logging in as root to assess the problem. I gave it the correct password, but it said that it was an incorrect login. After several tries (to ensure I didn't mistype the password), I logged in as myself. Same problem. I tried the su command, with the correct password, and it said it couldn't authorise it.
After a lengthy conversation with a friend of mine who was very good with computers, he basically summarised that he had no clue, but that his best guess would be a virus. Upon running the Linux installer, I found the Repair option. Not being particularly familiar with Linux, I used it simply to backup my important files onto a flash drive. I then tried running the Install option, in an attempt to simply write over my existing Linux and make it new again. The installer, however, consistently froze up when trying to start the partitioner, on the "Checking disks..." stage. I figured it was a problem with my partition. In my naivete, I simply used the Windows tools to clear that partition... It destroyed GRUB too, so I couldn't run any OS. I figured my computer was pretty well screwed, and at that point just decided to bring it into the shop and have them completely wipe it.
my computer was backed up onto an external hard driven I brought it back, I reinstalled Windows. Upon restart, it said that it was still looking for GRUB, which made no sense to me. After messing around with it a bit, I decided to just reinstall Linux too. To my lack of surprise, that fixed the problem. Both OS' now ran just fine. The first thing I did on Debian was to install the Clam Anti-Virus, which I understood to be one of the best Linux anti-viruses. However, within about 10 hours, got the same problem as originally. I wasn't doing any of the same things, and between the lack of consistency in activities and the fact that I had an anti-virus running,figured it wasn't a virus. Not knowing what to do, I just left it and have been using Windows since.
View 8 Replies
View Related
May 14, 2015
I edited fstab to automatically mount my windows data partition on boot, but I screwed it up by not specifying the file system type, however that is not the problem, I was able to fix that easily. The problem was that when it failed to mount the partition, Debian automatically entered root and I guess that is to be expected in order for me to fix it, but I never configured a root password and it just gave me full root access without asking any password, not even my user password. I though that was strange so I set the root password and sure thing it asked me for the root password this time without automatically logging into root....
I then tried to lock the root account to see if it will ask me for a password or not, it did but of course I wasn't able to login as root because it was locked now and I was left with no way to access the system. I had to fix fstab from a live cd so that I can login normally as the user....
I didn't know what to search for or if that is the expected behavior if you don't set root password during installation, but it just seemed a bit strange to automatically enter root when you specifically disable root login during installation...
View 1 Replies
View Related
Apr 17, 2009
Being able to reset the root password by booting into single usermode by editing grub. This is a MAJOR flaw. I know it makes no real difference against internet bourne attacks, but even so I must say I found it shocking. The only way I've found to stop this is to encrypt the entire HDD, so noone could get into single user mode without first knowing the encryption key/password.
View 14 Replies
View Related
Jun 5, 2010
im a rookie at configuring linux and i have problem booting slackware 13.1 just installed. i get a message similar to this Kernel panic - not syncing: VFS: Unable to mount root fs on unknown- block(8,4) i got this one from another user who has a similar problem, they say i should fix lilo.conf and it actually was pointing to a wrong partition so i fixed it. i also fixed /etc/fstab to make it point to the right partition /dev/sda3. but after fixing the files, it still wants to load something in /dev/sda4, i dont know why so what should i do next, please explain with commands and not just words. edit this is my lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda3
[Code]...
View 12 Replies
View Related
Mar 6, 2010
I had (and still do) a working dual-boot XP/Karmic (GRUB version 1.97 beta4). I shrank the Ubuntu partition and set up partitions and installed Debian 5.04. When I got to the point of installing GRUB, I told Debian to install grub to MBR. On rebooting, Ubuntu was not an option on the NEW (looked different) grub menu.Maybe it was GRUB2? Could boot to either XP or Debian though.
Thought easiest thing was to reinstall Ubuntu since it seems to "see" other OS's more reliably. So I did, and installed GRUB again during its install to MBR. Then, all three were in the GRUB menu (version 1.97 beta4 again), but when tried booting to Debian, got an error (forget the wording), but think it was because the partitions got renumbered when installing Ubuntu.
SO, reinstalled Debian, reformatting the partitions but not deleting them first so the numbering stayed the same. When got to the part for installing GRUB, I told it to skip (I got some kind of error that said "Install failed. This is a fatal error. You will have to boot with an external device..."), hoping now the current GRUB would work.
Now, all three were on the GRUB menu, but when I tried to boot Debian, I got "no such device" and a list of numbers/letters after it. And "press any key to continue", which takes you back to the GRUB menu (version 1.97 beta4, by the way).
O.K., did sudo update-grub in ubuntu and rebooted. Now, Debian 5.04 shows as last entry in GRUB, and choosing it starts a boot, which hangs at "Begin: Waiting for root file system....".
Waiting long enough at the "Waiting for root file system..." hang results in a series of notifications:
WARNING bootdevice may be renamed. Try root=dev/hda3
Gave up waiting for root device. Common problems:
-Boot args (cat /proc/cmdline)
-Check rootdelay= (did the system wait long enough?)
-Check root= (did the sytem wait for the right device?)
-Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/sda3 does not exist. Dropping to a shell!
In Gparted, the partition with Debian root is hdc3, although on the GRUB menu it's listed as /dev/sda3. However, in Gparted the Windows partition is hdc1 and on GRUB it's /dev/sda1, and it boots fine.....
Is my Debian install just borked? Did telling it to skip installing a bootloader (I got some kind of error that said "Install failed. This is a fatal error. You will have to boot with an external device..." ruin it?
If skipping the bootloader install did ruin it, how do you install Debian without borking your current GRUB? That's what happened the first time.
View 5 Replies
View Related
Dec 31, 2010
I have bunch of partitions on my Debian server installation, so I was experimenting with partitions and saw that is one partition fails fsck on booting time, system waits for root password or CTRL+D key combination. The problem is that my Debian machine is headless and I use only SSH to it. So if fsck fails, I can't to login to SSH (off course, because it is not loaded at this time). So I need to go with monitor and keyboard to machine and press CTRL+D.One option is to disable disk checking at startup by changing fstab file. I don't like this option. Is there any possibility to auto continue booting Debian machine ?
View 2 Replies
View Related
Oct 10, 2010
I installed Ubuntu 10.10 inside Windows 7 today, Ubuntu 10.10 finished installing and all just fine
but when I try to boot into Ubuntu 10.10 from the boot menu I get this error
"gave up waiting for root device" while booting
and it mentions something about BusyBox
View 6 Replies
View Related
Sep 26, 2010
Ubuntu 10.04.1 to prepare a USB flash drive for use as installation media for a new computer that's on the way. When the Linux kernel tries booting up on the flash drive, I get an error saying VFS: Cannot open root device "<NULL>" or unknown-block(8,1).Here's how I got to this point...Created bootable partition on the thumb drive.Put the following files onto the flash drive: initrd.gz, vmlinuz, and ubuntu-10.04.1-server-amd64.iso fromhttp://archive.ubuntu.com/ubuntu/dis...ages/hd-media/Install Grub2 to the drive via grub-install.Put the following into boot/grub/grub.cfg:
Code:
set timeout=120
set default=0
[code]....
View 9 Replies
View Related
Mar 10, 2011
have been fiddling! moved my partitions around (without using any cd by installing grub2 to boot to an iso of gparted).I moved:
swap,ntfs,ext4(fedora13)
to:
swap,ext4(Fedora13),ext4,ntfs,unformated
[code]....
View 2 Replies
View Related
Mar 1, 2011
I installed 10.04 (clean install) on a 250G drive (partitioned to 107G for the system files). It was working fine, until I wanted to install Window$ for the use of Adobe stuff. I popped the Windows XP disc in, it loaded its files, then I tried to choose a partition for installation. There was an error saying that I can't do that, and needed to delete a partition blah blah. I thought it was too much trouble, so I quit and just wanted to use my 10.04. Booted, and it says "Error booting operating system" I WAS SHOCKED.
I tried to install grub (but don't need that right? I DO NOT want to dual boot now), but the usual method ( the sudo grub; root (hd0.0)...) doesn't work ,because something like "stage1" is missing. I tried many methods by still the same error. The reason I do not want a clean install is that I did many fixes on my 10.04 so that it would work with my EeePC 1001pxd, and I do not want to go through that again. I will be checking my email frequently on other computers if I have a chance.
View 1 Replies
View Related
Jun 16, 2010
How to enable Root login...i cant copy or move something on the HDD...I have administrator rights and password for root but i cant change permissions for the HDD without login on root and root login are not allowed .
View 10 Replies
View Related