<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debian post installation error: pivot_root: No such file, dev/console not found in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989108#M47375</link>
    <description>Installed with expert26 solved the problem.</description>
    <pubDate>Sun, 16 Jul 2006 13:48:25 GMT</pubDate>
    <dc:creator>shankarraju</dc:creator>
    <dc:date>2006-07-16T13:48:25Z</dc:date>
    <item>
      <title>Debian post installation error: pivot_root: No such file, dev/console not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989102#M47369</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;I have Fedora linux installed on my laptop on harddisk /dev/hda. Because of space issue I have bought another external hard disk and I am trying to install "debian sarge 3.1r2" on my new harddisk /dev/sda.&lt;BR /&gt;&lt;BR /&gt;After I install the debian from the DvD trying to boot and getting the following error:&lt;BR /&gt;&lt;BR /&gt;===============================&lt;BR /&gt;vesafb: probe of vesafb0 failed with error -6&lt;BR /&gt;SCSI susbsystem initialised&lt;BR /&gt;pivot_root: No such file or directory&lt;BR /&gt;/sbin/init : 432 : cannot open dev/console: NO such file&lt;BR /&gt;Kernel panic: Attempted to kill INIT!&lt;BR /&gt;===============================&lt;BR /&gt;&lt;BR /&gt;To have the option of booting either fedora / debian I have updated the /boot/grub/grub.conf (on /dev/hda) of fedora with debian's entry. Now I can select fedora/debian from the boot loader. &lt;BR /&gt;&lt;BR /&gt;Since I have two "/" label (one on /dev/hda and on /dev/sda) am getting this error? Because I cannot boot fedora while /dev/sda is connected to the system, I am getting duplicate entry present for "/" , "/boot" ... error. If this is the cause for all the confusion how can I install another linux distro on another harddisk?&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ssr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jul 2006 23:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989102#M47369</guid>
      <dc:creator>shankarraju</dc:creator>
      <dc:date>2006-07-05T23:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Debian post installation error: pivot_root: No such file, dev/console not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989103#M47370</link>
      <description>"vesafb: probe of vesafb0 failed with error -6" probably means that an attempt to switch the display to a higher-than-the-default-VGA display mode has failed. Normally, the system should just stay in the default 80x25 text mode if this happens.&lt;BR /&gt;&lt;BR /&gt;"pivot_root: No such file or directory" might mean that the system is getting the wrong root filesystem. This might be the primary problem.&lt;BR /&gt;&lt;BR /&gt;The message "cannot open dev/console: no such file" might be a consequence of the above.&lt;BR /&gt;&lt;BR /&gt;The problem is probably in how you've set up your grub.conf file: the two "/" labels are certainly a recipe for trouble. &lt;BR /&gt;&lt;BR /&gt;If I recall correctly, Fedora specifies the root filesystem in grub.conf like this:&lt;BR /&gt;  ... root=LABEL=/&lt;BR /&gt;When having two Linux installations on the same host, this needs to be changed so that each installation gets its own root filesystem.&lt;BR /&gt;&lt;BR /&gt;To give you more accurate instructions, I would really need to know how your system is partitioned; but basically, to dual-boot between two distributions, you have to make the filesystem mounts (both grub.conf for the root filesystem and /etc/fstab in each distribution for all other filesystems) refer explicitly to the correct devices instead of labels, so you can get your system up and running. &lt;BR /&gt;You could also use "tune2fs -L" to change the filesystem labels for one of the distributions to eliminate the problem of duplicate labels.&lt;BR /&gt;&lt;BR /&gt;If your Fedora root is /dev/hda1 and Debian root is /dev/sda1, you would change your Fedora boot entry in grub.conf to something like&lt;BR /&gt;  ... root=/dev/hda1&lt;BR /&gt;and the Debian boot entry to&lt;BR /&gt;  ... root=/dev/sda1&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jul 2006 03:29:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989103#M47370</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2006-07-06T03:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debian post installation error: pivot_root: No such file, dev/console not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989104#M47371</link>
      <description>I have tried your option of explicitly pointing the root partition in grub, but I am getting the same error while starting the debian. &lt;BR /&gt;&lt;BR /&gt;I will try by defining different labels for the partition in /dev/sda.&lt;BR /&gt;&lt;BR /&gt;Here's some more details about my settings:&lt;BR /&gt;==========================================&lt;BR /&gt;root:/root# df&lt;BR /&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/hda16             2616928   1680452    803540  68% /&lt;BR /&gt;/dev/hda6              1510032     42380   1390944   3% /boot&lt;BR /&gt;none                    582832         0    582832   0% /dev/shm&lt;BR /&gt;/dev/hda8              2008108    180944   1725156  10% /home&lt;BR /&gt;/dev/hda9              1510032     35068   1398256   3% /jfs&lt;BR /&gt;/dev/hda14              609232    304776    304456  51% /opt&lt;BR /&gt;/dev/hda12              798476     36992    720924   5% /tmp&lt;BR /&gt;/dev/hda7              7052464   5168012   1526208  78% /usr&lt;BR /&gt;/dev/hda17             2197888    415232   1671008  20% /usr/local&lt;BR /&gt;=========================&lt;BR /&gt;root:/root# ll /dev/sda*&lt;BR /&gt;brw-rw----  1 root disk 8,  0 Jul  6 13:06 /dev/sda&lt;BR /&gt;brw-rw----  1 root disk 8,  1 Jul  6 13:06 /dev/sda1&lt;BR /&gt;brw-rw----  1 root disk 8, 10 Jul  6 13:06 /dev/sda10&lt;BR /&gt;brw-rw----  1 root disk 8, 11 Jul  6 13:06 /dev/sda11&lt;BR /&gt;brw-rw----  1 root disk 8, 12 Jul  6 13:06 /dev/sda12  ( /usr for debian)&lt;BR /&gt;brw-rw----  1 root disk 8, 13 Jul  6 13:06 /dev/sda13  ( /usr/local for debian)&lt;BR /&gt;brw-rw----  1 root disk 8, 14 Jul  6 13:06 /dev/sda14 ( /var for debian)&lt;BR /&gt;brw-rw----  1 root disk 8, 15 Jul  6 13:06 /dev/sda15 ( /home for debian)&lt;BR /&gt;brw-rw----  1 root disk 8,  2 Jul  6 13:06 /dev/sda2&lt;BR /&gt;brw-rw----  1 root disk 8,  3 Jul  6 13:06 /dev/sda3&lt;BR /&gt;brw-rw----  1 root disk 8,  4 Jul  6 13:06 /dev/sda4&lt;BR /&gt;brw-rw----  1 root disk 8,  5 Jul  6 13:06 /dev/sda5   ( / for debian)&lt;BR /&gt;brw-rw----  1 root disk 8,  6 Jul  6 13:06 /dev/sda6   ( /tmp for debian)&lt;BR /&gt;brw-rw----  1 root disk 8,  7 Jul  6 13:06 /dev/sda7   ( /boot for debian)&lt;BR /&gt;brw-rw----  1 root disk 8,  8 Jul  6 13:06 /dev/sda8   ( /opt for debian)&lt;BR /&gt;brw-rw----  1 root disk 8,  9 Jul  6 13:06 /dev/sda9&lt;BR /&gt;=========================================&lt;BR /&gt;root:/boot/grub# more grub.conf&lt;BR /&gt;default=0&lt;BR /&gt;timeout=15&lt;BR /&gt;&lt;BR /&gt;title           Debian GNU/Linux, kernel 2.6.8-2-386&lt;BR /&gt;root            (hd1,6)&lt;BR /&gt;kernel          /vmlinuz-2.6.8-2-686 root=/dev/sda5 ro&lt;BR /&gt;initrd          /initrd.img-2.6.8-2-686&lt;BR /&gt;savedefault&lt;BR /&gt;boot&lt;BR /&gt;&lt;BR /&gt;title           Debian GNU/Linux, kernel 2.6.8-2-686 (recovery mode)&lt;BR /&gt;root            (hd1,6)&lt;BR /&gt;kernel          /vmlinuz-2.6.8-2-686 root=LABEL=/dev/sda5 ro single&lt;BR /&gt;initrd          /initrd.img-2.6.8-2-686&lt;BR /&gt;savedefault&lt;BR /&gt;boot&lt;BR /&gt;### END DEBIAN AUTOMAGIC KERNELS LIST&lt;BR /&gt;&lt;BR /&gt;# This is a divider, added to separate the menu items below from the Debian&lt;BR /&gt;# ones.&lt;BR /&gt;title           Other operating systems:&lt;BR /&gt;root&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# This entry automatically added by the Debian installer for a non-linux OS&lt;BR /&gt;# on /dev/hda1&lt;BR /&gt;title           Microsoft Windows XP Home Edition&lt;BR /&gt;root            (hd0,0)&lt;BR /&gt;savedefault&lt;BR /&gt;chainloader     +1&lt;BR /&gt;&lt;BR /&gt;####################### Fedora GRUB CONTENTS INSERTED manually #####################&lt;BR /&gt;&lt;BR /&gt;# grub.conf generated by anaconda&lt;BR /&gt;#&lt;BR /&gt;# Note that you do not have to rerun grub after making changes to this file&lt;BR /&gt;# NOTICE:  You have a /boot partition.  This means that&lt;BR /&gt;#          all kernel and initrd paths are relative to /boot/, eg.&lt;BR /&gt;#          root (hd0,5)&lt;BR /&gt;#          all kernel and initrd paths are relative to /boot/, eg.&lt;BR /&gt;#          root (hd0,5)&lt;BR /&gt;#          kernel /vmlinuz-version ro root=/dev/hda16&lt;BR /&gt;#          initrd /initrd-version.img&lt;BR /&gt;#boot=/dev/hda&lt;BR /&gt;#default=0&lt;BR /&gt;#timeout=5&lt;BR /&gt;#splashimage=(hd0,5)/grub/splash.xpm.gz&lt;BR /&gt;#hiddenmenu&lt;BR /&gt;title Fedora Core 3 (2.6.16)&lt;BR /&gt;        root (hd0,5)&lt;BR /&gt;        kernel /vmlinuz-2.6.16 ro root=/dev/hda16 rhgb quiet&lt;BR /&gt;        initrd /initrd-2.6.16.img&lt;BR /&gt;title Fedora Core 3 (2.6.9-1.667)&lt;BR /&gt;        root (hd0,5)&lt;BR /&gt;        kernel /vmlinuz-2.6.9-1.667 ro root=/dev/hda16 rhgb quiet&lt;BR /&gt;        initrd /initrd-2.6.9-1.667.img&lt;BR /&gt;title Fedora Core 3 (2.6.9)&lt;BR /&gt;        root (hd0,5)&lt;BR /&gt;        kernel /vmlinuz-2.6.9 ro root=/dev/hda16 rhgb quiet&lt;BR /&gt;        initrd /initrd-2.6.9.img&lt;BR /&gt;title Other&lt;BR /&gt;        rootnoverify (hd0,0)&lt;BR /&gt;        chainloader +1&lt;BR /&gt;===========================================</description>
      <pubDate>Thu, 06 Jul 2006 14:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989104#M47371</guid>
      <dc:creator>shankarraju</dc:creator>
      <dc:date>2006-07-06T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Debian post installation error: pivot_root: No such file, dev/console not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989105#M47372</link>
      <description>I have explicitly mentioned the partition name instead of label-name in the /etc/fstab on both /dev/hda and /dev/sda. Also I gave different volume-label name for the debian partition. But still I am getting the same pivot_root error !!&lt;BR /&gt;&lt;BR /&gt;But after I have done the above changes there are some improvements:&lt;BR /&gt;&lt;BR /&gt;1. I can boot fedora as usual without switching off my /dev/sda harddisk .&lt;BR /&gt;2. vesafb error got disappeared.&lt;BR /&gt;&lt;BR /&gt;From the pivot_root man page I think the initrd is trying to do something like following :&lt;BR /&gt;&lt;BR /&gt;pivot_root / .  =&amp;gt; No such file or directory&lt;BR /&gt;open dev/console  =&amp;gt; because of pivot_root error dev/console could not be located.&lt;BR /&gt;&lt;BR /&gt;I tried with different kernel version but no use, something I am missing but don't know what it is !! Is there anyway to see/create detail log messages?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ssr</description>
      <pubDate>Thu, 06 Jul 2006 22:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989105#M47372</guid>
      <dc:creator>shankarraju</dc:creator>
      <dc:date>2006-07-06T22:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Debian post installation error: pivot_root: No such file, dev/console not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989106#M47373</link>
      <description>The "pivot_root" switches mountpoints around so that the "preliminary root filesystem" can be unmounted.&lt;BR /&gt;&lt;BR /&gt;Debian uses it to switch the "temporary root filesystem" from initrd to /initrd as the kernel mounts the real root filesystem. There must be an empty directory named /initrd on the Debian root filesystem for this to succeed. Please ensure that the /initrd directory exists.&lt;BR /&gt;&lt;BR /&gt;... Uh oh. After rereading your first post, I noticed this is an external disk on a laptop. That means it's probably an USB storage device, right?&lt;BR /&gt;&lt;BR /&gt;If you haven't omitted any messages in between the error messages you listed in your first post, I think I see the problem. If the external disk was detected correctly, there should be a message starting with "SCSI device sda" listing the disk's size, and then one or more lines starting with just "sda:". One of those lines should list the partitions on your /dev/sda device. In your case it should look somewhat like:&lt;BR /&gt; sda: sda1 sda2 sda3 sda4 &lt;SDA5 sda6="" sda7="" sda8="" sda9="" sda10="" sda11="" sda12="" sda13="" sda14="" sda15=""&gt;&lt;BR /&gt;&lt;BR /&gt;If this line does not appear during the boot sequence, the disk is not yet readable by the Linux kernel - probably because the USB drivers haven't been loaded yet. The bootloader can use the disk because it uses the BIOS routines to do that - but when the Linux kernel starts running, the BIOS is discarded.&lt;BR /&gt;&lt;BR /&gt;To get the USB disk to work, you'd have to make the initrd load at least the following modules: usbcore, usb_storage and at least one of the *hci_hcd modules.&lt;BR /&gt;&lt;BR /&gt;The Debian initrd file is a "cramfs" type filesystem image: you should be able to mount it with a command like "mount -o loop,rw -t cramfs /some/where/initrd.img-2.6.8-3-686 /mnt".&lt;BR /&gt;&lt;BR /&gt;The initrd is used as a preliminary root filesystem, but there are a few things you need to know. When using initrd, the very first "userspace" action of the kernel is to execute the /linuxrc file. After that, the kernel looks for /sbin/init and starts it... but in Debian's initrd, /sbin/init is a script. That is actually the place where most of the early boot-time "magic" happens. The /sbin/init script reads /loadmodules, which seems to be a list of modprobe commands to load all the modules that may be necessary to boot the system. The first of them seems to be vesafb... which matches the beginning of your list of error messages.&lt;BR /&gt;&lt;BR /&gt;Looks like Debian's standard initrd does not include the USB storage modules by default. You would have to add those modules I listed earlier to the initrd image's /lib/modules/&lt;KERNEL-VERSION&gt; directory hierarchy, and then add the modprobe commands to load them to /loadmodules file (check out the /loadmodules file for examples).&lt;BR /&gt;&lt;BR /&gt;I think the need to edit the initrd image could have been avoided by picking the correct "extra" choices in the Debian installation program, but unfortunately I don't have a spare computer available to verify that.&lt;/KERNEL-VERSION&gt;&lt;/SDA5&gt;</description>
      <pubDate>Sat, 08 Jul 2006 00:36:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989106#M47373</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2006-07-08T00:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Debian post installation error: pivot_root: No such file, dev/console not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989107#M47374</link>
      <description>Atlast it worked, thanks "Matti Kurkela". I re-installed debian in expert26 mode and it worked. But now my Xserver is not starting up, I am looking into it.</description>
      <pubDate>Sun, 09 Jul 2006 00:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989107#M47374</guid>
      <dc:creator>shankarraju</dc:creator>
      <dc:date>2006-07-09T00:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debian post installation error: pivot_root: No such file, dev/console not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989108#M47375</link>
      <description>Installed with expert26 solved the problem.</description>
      <pubDate>Sun, 16 Jul 2006 13:48:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/debian-post-installation-error-pivot-root-no-such-file-dev/m-p/4989108#M47375</guid>
      <dc:creator>shankarraju</dc:creator>
      <dc:date>2006-07-16T13:48:25Z</dc:date>
    </item>
  </channel>
</rss>

