Installing Debian GNU/Linux from a Unix/Linux System

Help with issues regarding installation of Debian

Installing Debian GNU/Linux from a Unix/Linux System

Postby reneviht » 2012-07-03 21:15

Hello, all.

I recently replaced a broken motherboard in my desktop, which necessitated installation of a new operating system to be compatible with the new hardware (I previously used Gentoo Linux, but abandoned it because I wasn't able to make things work consistently with it). I burned a Debian 6.0.5 CD so I could install it on my hard drives, only to discover that my system refused to boot off of an optical disc. It listed the drive as a bootable option in the boot menu, but when I selected it, I would get an error complaining that there was no bootable medium present. I know the disc was fine because I recently installed Debian on my laptop using the same disc. I also tried a SystemRescueCD with no success.

After a few misadventures, I ended up discovering that, if I connected my laptop's hard drive to my desktop's USB port with an adapter, I could boot off of that just fine. My laptop's Debian installation wouldn't do much with my desktop's hardware -- it couldn't detect the hard drives or the ethernet card -- but an Ubuntu installation I tried before I decided I disliked Ubuntu would boot properly and seemed to play well with all of the hardware. I found instructions for installing Debian through another Linux system in the installation guide and followed them as closely as I could.

The first problem I encountered was in section D.3.4.1, Create device files. The recommended method is to run the command MAKEDEV to create device files. However, at the point in the installation where this advice appears, I was chroot'ed into the new Debian system, and the new Debian system did not have MAKEDEV installed on it yet. I tried the third option, despite the fact that it was advised against, and continued.

I didn't have any additional problems until section D.3.6, Set up the Boot Loader. Some of the installation scripts complained about not being able to find /sys or something like that; since the bootloader seemed to work fine, I didn't bother to look up the exact error.

I was able to complete the installation process as given in the manual. When I rebooted off of the hard disk, the menu screen for GRUB came up just fine. After selecting something, however, the the terminal would display something like "Loading" for a few seconds, then give an error:
Code: Select all
Gave up waiting for root device. Common problems:
...
ALERT! /dev/disk/by-uuid/..................... does not exsit.
Dropping to a shell!

(I omitted the suggested problems and the uuid that the computer was looking for so as to save time.) I would then have access to a severely limited ash shell.

  1. What should I do about the MAKEDEV problem, and is it possible that this is the root of my difficulties? I think Ubuntu prefers to use uuid's to identify its disks, so maybe something got copied from the wrong source when I used the /dev directory from Ubuntu.
  2. Is there a faster or easier way to go about this installation? I've tried some USB drives, but so far I haven't found one that's bootable.
Thank you for your assistance.
User avatar
reneviht
 
Posts: 5
Joined: 2012-07-03 20:36

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby dzz » 2012-07-03 23:31

That installation guide is a bit dated. What works here (one line at a time):

Code: Select all
CHROOT=/path/to/chroot
# get the chroot's network up (opendns)
echo "nameserver 208.67.222.222" > $CHROOT/etc/resolv.conf
echo "nameserver 208.67.220.220" >> $CHROOT/etc/resolv.conf
cp /etc/hosts $CHROOT/etc

# do the bind mounts
mount -t proc proc $CHROOT/proc
mount -t sysfs none $CHROOT/sys
mount -o bind /dev/ $CHROOT/dev

# enter chroot, do what you want, adduser, set root passwd, install with apt-get, aptitude....
chroot $CHROOT

# close chroot
exit

# finally
chroot $CHROOT /bin/bash grub-install --recheck --no-floppy /dev/sdx


Replace sdx with the right device. Don't forget when done:

Code: Select all
umount $CHROOT/proc
umount $CHROOT/sys
umount $CHROOT/dev


Just reboot if umount gripes. There is a bit more to get a fully functional chroot but that might be enough get a bootable install sorted
dzz
 
Posts: 225
Joined: 2007-02-05 20:39
Location: Devon, England

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby reneviht » 2012-07-05 19:31

Thank you for your assistance, dzz.

Unfortunately, I wasn't able to get a working installation with your suggested changes. I assumed there was more to the process than just the content in your post, since (for example) you didn't seem to do anything with debootstrap or installing a kernel. However, I think I messed up the process when I tried to replace the steps in the guide with the steps you gave me.

The installation I ended up with had exactly the same problems as the previous installation.
User avatar
reneviht
 
Posts: 5
Joined: 2012-07-03 20:36

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby nadir » 2012-07-05 21:28

I hope i understood the procedure you describe right.

With that error message:
Gave up waiting for root device. Common problems:
...
ALERT! /dev/disk/by-uuid/..................... does not exsit.
Dropping to a shell!

i would assume that either /boot/grub/grub.cfg is wrong or that something with /boot/grub/device.map is wrong.
What i would do is (here is the part where i don't fully understand you. Adapt accordingly):
- connect the laptop's hard drive to the desktop's USB port with an adapter
- chroot to the desktops hard disk like described by dzz
- check the both files mentioned (grub.cfg and device map) and compare it with the output of:
blkid

and i would make sure that i choose the right hard disk when doing "grub-install /dev/sd***" (*** must be the right device, duh).

Might be i pointed out the obvious. If so: sorry.
I once did a debootstrap installation, and those are my notes:
Code: Select all
mount /dev/sda3 /media/disk
 debootstrap sid /media/disk
 LANG=C chroot /media/disk
 passwd
 touch /etc/mtab
 adapt /etc/fstab via copy and paste from host(and comparing with blkid)
 edit /etc/hosts via copy and paste from host (one line only)
 edit /etc/network/interfaces via copy and paste from host
 apt-get install linux-image-2.6.39-2-686
 adduser
 exit
 update-grub
 reboot

(mhhh... looks a bit too easy... i guess my main interest was this:)xnest
Code: Select all
Xnest -ac :2 -geometry 1024×768+0+0 &
 chroot /media/disk mount -t proc none /proc
 chroot /media/disk mount -t sysfs none /sys
 chroot /media/disk mount -t devpts none /dev/pts
 chroot /media/disk
 export LC_ALL=C
 su user_name
 env DISPLAY=”:2″ startfluxbox &

and i saved a couple of links for that "project":
http://wiki.debian.org/Debootstrap
http://www.debian-administration.org/articles/426
not really related for the actual thread:
http://www.debian-administration.org/articles/356
and the one you gave above.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5965
Joined: 2009-10-05 22:06
Location: away

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby dzz » 2012-07-06 13:16

you didn't seem to do anything with debootstrap or installing a kernel

I assumed that was already done and described only how I get apt working and setup grub in an existing bootstrapped chroot

I did forgot to mention, edit /etc/fstab!

Nadir's post is essentially correct, try that (xnest is more difficult)
dzz
 
Posts: 225
Joined: 2007-02-05 20:39
Location: Devon, England

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby reneviht » 2012-07-06 16:58

Thanks for your help, dzz and nadir. This is what I have in device.map:
Code: Select all
(hd0)   /dev/disk/by-id/ata-WDC_WD10EADS-00L5B1_WD-WCAU4A940180
(hd1)   /dev/disk/by-id/ata-MAXTOR_STM3500630AS_9QG62KN9
(hd2)   /dev/disk/by-id/ata-ST3500413AS_Z2A8W22C
(hd3)   /dev/disk/by-id/ata-ST3160812AS_5LS2DNNE

And this is what I have in grub.cfg:
Code: Select all
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd2,msdos1)'
   search --no-floppy --fs-uuid --set 43650ea2-809f-4a1e-a79c-cb87b0e22f35
   echo   'Loading Linux 2.6.32-5-amd64 ...'
   linux   /vmlinuz-2.6.32-5-amd64 root=/dev/sdb3 ro  quiet
   echo   'Loading initial ramdisk ...'
   initrd   /initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd2,msdos1)'
   search --no-floppy --fs-uuid --set 43650ea2-809f-4a1e-a79c-cb87b0e22f35
   echo   'Loading Linux 2.6.32-5-amd64 ...'
   linux   /vmlinuz-2.6.32-5-amd64 root=/dev/sdb3 ro single
   echo   'Loading initial ramdisk ...'
   initrd   /initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Finally, here's the output of blkid:
Code: Select all
/dev/sda2: UUID="eb5e79a5-4f44-4eec-9201-563f114a0e34" TYPE="swap"
/dev/sda3: LABEL="BigDisk" UUID="acc771c3-c8a4-4c00-b32f-505349bf8162" TYPE="ext4"
/dev/sdc1: LABEL="Boot_0" UUID="43650ea2-809f-4a1e-a79c-cb87b0e22f35" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc2: LABEL="Swap" UUID="54f4c9a0-0f85-4d4a-bb98-435726964873" TYPE="swap"
/dev/sdc3: LABEL="OS" UUID="fbe85ec1-e39a-476b-bc88-1d65f794c548" TYPE="ext4"
/dev/sdd3: LABEL="Seagate" UUID="43e72e14-411c-4d80-b533-40bb943c17e5" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb2: LABEL="New_MSI" UUID="5299b10e-9aad-40a2-b700-8767999da2f4" TYPE="ext4"
/dev/sdb3: LABEL="Debian" UUID="e36d276f-aaa3-4abc-bee0-2c8a27b60bb4" TYPE="ext4"
/dev/sde1: LABEL="SYSTEM" UUID="2AF89D27F89CF275" TYPE="ntfs"
/dev/sde2: UUID="E840A22E40A20382" TYPE="ntfs"
/dev/sde4: LABEL="HP_TOOLS" UUID="3D36-8A01" TYPE="vfat"
/dev/sde5: LABEL="Boot" UUID="c0d9b5f1-c565-4ba7-9a34-5ce13735fb79" TYPE="ext4"
/dev/sde6: UUID="d18fa7eb-e04e-4681-b22f-666fd476c6c5" TYPE="swap"
/dev/sde7: LABEL="FirstHardDrive" UUID="a0b8c407-a2e0-47fb-934e-be0afe9dc809" TYPE="ext4"
/dev/sde8: UUID="d4c9f251-efa9-42a1-bc9e-66f9a67479ab" TYPE="ext4"
/dev/sde9: UUID="3ecbe717-db4c-4a71-a7af-1385d632f57b" TYPE="ext4"


I didn't see anything wrong with the two files, but I may have skimmed by too quickly.

I thought I'd also post the output I get from my computer after GRUB tries to load the kernel:
Code: Select all
Loading, please wait...
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 system wait for the right device?)
 - Missing modules (cot /proc/modules; ls /dev)
Alert! /dev/sdb3 does not exist.  Dropping to a shell!


BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) _

I also thought it would be useful to post the output of the three commands it suggests:
Code: Select all
(initramfs) cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.32-5-amd64 root=/dev/sdb3 ro quiet

I may have made a mistake in copying down some of the codes in this one:
Code: Select all
(initramfs) cat /proc/modules
usbhid 33292 0 - Live 0xffffffffa00b1000
hid 63257 1 usbhid, Live 0xffffffffa0059000
ehci_hcd 32097 0 - Live 0xffffffffa00be000
ata_generic 3239 0 - Live 0xffffffffa002e000
fan 3346 0 - Live 0xffffffffa0028000
libata 133776 1 ata_generic, Live 0xffffffffa0088000
xhci 34041 0 - Live 0xffffffffa007d000
thermal 11674 0 - Live 0xgggggggga0074000
thermal_sys 11942 2 fan,thermal, Live 0xffffffffa006b000
scsi_mod 126725 1 libata, Live 0xffffffffa0038000
usbcore 123122 4 usbhid,ehci_hcd,xhci, Live 0xffffffffa0007000
nls_base 6377 1 usbcore, Live 0xffffffffa0000000

This one looks promising, because (I think) /dev should have sda#'s in it, but there are none listed:
Code: Select all
ls /dev
...
(There was more than could fit on one screen, but the part where the sda#'s would show up if they were there is shown. I wasn't sure how to get all of the text without access to a text editor.)
mcelog         tty25         tty57
mem         tty26         tty58
network_latency      tty27         tty59
network_throughput   tty28         tty6
null         tty29         tty60
port         tty3         tty61
psaux         tty30         tty62
ptmx         tty31         tty63
pts         tty32         tty7
random         tty33         tty8
rtc         tty34         tty9
rtc0         tty35         ttyS0
snapshot      tty36         ttyS1
stderr         tty37         ttyS2
stdin         tty38         ttyS3
stdout         tty39         urandom
tty         tty4         vcs
tty0         tty40         vcs1
tty10         tty42         vcsa
tty11         tty43         vcsa1
tty12         tty44         vga_arbiter
tty13         tty45         zero
tty14         tty46
...
Any suggestions would be helpful. I suspect I just need a way to make my hard drives appear in /dev during boot, but I'm not sure how to go about it.
User avatar
reneviht
 
Posts: 5
Joined: 2012-07-03 20:36

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby dzz » 2012-07-06 18:12

I wonder if, when you boot from the usb, the usb gets seen as the first bios drive, usually (but not always, thanks udev) /dev/sda. The fixed disks might then be in a different order booting with the usb out, i.e. sdb then becomes sda. That might cause a wrong grub.cfg entry

You might have done better in a chroot from a booted debian-live type session than an actual installation on usb (Refracta on usb is a very good live environment) But then, you can install Debian from a usb stick with the official iso (I always use the "business card").

You have also 4 disks (not clear if one is the usb or not), that can make things a bit harder.

Is your chroot on what is normally the first fixed disk?

Does the chroot work normally after the proc sys and dev are mounted?

Have you installed grub and a kernel to the chroot?

Now, Suspect No.1:

What is in the chroot's /etc/fstab? the correct uuid must be there as / (not /dev/sdxx)

"root=/dev/sdb3" doesn't look right, I thought that should be "root=UUID=the_correct_uuid"
dzz
 
Posts: 225
Joined: 2007-02-05 20:39
Location: Devon, England

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby kiyop » 2012-07-07 05:30

I also think that the root partition of debian is not correctly recognized, as nadir and dzz pointed out.

You should care that your /boot partition may be different from /(root) partition of the debian you want to boot.
I guees that UUID of your debian /boot partition may be 43650ea2-809f-4a1e-a79c-cb87b0e22f35 and that UUID of your debian root partition may be e36d276f-aaa3-4abc-bee0-2c8a27b60bb4, otherwise, that your /boot/grub/grub.cfg is wrongly configured possibly because of wrong chroot.
If /boot partition of debian is separately prepared from root parition, you should mount /boot partition correctly on /CHROOT-DIRECTORY/boot before chroot.
reneviht wrote:
Code: Select all
### BEGIN /etc/grub.d/00_header ###
(snip by kiyop)
set root='(hd1,msdos3)'
search --no-floppy --fs-uuid --set e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
if loadfont /usr/share/grub/unicode.pf2 ; then
(snip by kiyop)
### END /etc/grub.d/00_header ###
(snip by kiyop)
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd2,msdos1)'
   search --no-floppy --fs-uuid --set 43650ea2-809f-4a1e-a79c-cb87b0e22f35
   echo   'Loading Linux 2.6.32-5-amd64 ...'
   linux   /vmlinuz-2.6.32-5-amd64 root=/dev/sdb3 ro  quiet
(snip by kiyop)

(snip by kiyop)
Code: Select all
/dev/sdc1: LABEL="Boot_0" UUID="43650ea2-809f-4a1e-a79c-cb87b0e22f35" SEC_TYPE="ext2" TYPE="ext3"
(snip by kiyop)
/dev/sdb3: LABEL="Debian" UUID="e36d276f-aaa3-4abc-bee0-2c8a27b60bb4" TYPE="ext4"



Furthermore, there are HDDs which needs long time to be recognized. In such case, kernel option "rootdelay=SECONDS" may help.

To tell us deep information on your trouble, get some live linux (such as live debian: http://live.debian.net/ ) and execute boot info script, which can be downloaded at http://bootinfoscript.sourceforge.net/ , and post the contents of the generated RESULTS.txt.
Openbox: Wheezy, Sid, Arch / Win XP (on VirtualBox) and 7
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 2139
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby reneviht » 2012-07-07 17:11

dzz wrote:I wonder if, when you boot from the usb, the usb gets seen as the first bios drive, usually (but not always, thanks udev) /dev/sda. The fixed disks might then be in a different order booting with the usb out, i.e. sdb then becomes sda. That might cause a wrong grub.cfg entry
It's a good idea, but I can confirm that the laptop drive I'm booting from USB is registered as sde, the last of the four.

dzz wrote:You might have done better in a chroot from a booted debian-live type session than an actual installation on usb (Refracta on usb is a very good live environment) But then, you can install Debian from a usb stick with the official iso (I always use the "business card").
I would have, but none of the USB drives I own are bootable.

dzz wrote:You have also 4 disks (not clear if one is the usb or not), that can make things a bit harder.

Is your chroot on what is normally the first fixed disk?
No, my chroot is on the second fixed disk, sdb, and I'm trying to boot from the third disk, sdc.

dzz wrote:Does the chroot work normally after the proc sys and dev are mounted?
Indeed it does.

dzz wrote:Have you installed grub and a kernel to the chroot?
I have installed both GRUB and a kernel to their respective disks. In fact, when I tell my BIOS to boot off of the hard drive, GRUB appears to work perfectly fine. I get the console screen that says "Loading GRUB; Welcome to GRUB" that lasts about a second before going to the pretty outer-space graphics decorating GRUB's menu. It's only after I select one of the boot options than I get a problem.

dzz wrote:Now, Suspect No.1:

What is in the chroot's /etc/fstab? the correct uuid must be there as / (not /dev/sdxx)

"root=/dev/sdb3" doesn't look right, I thought that should be "root=UUID=the_correct_uuid"
This looked promising, but wasn't. It actually was "root=UUID=the_correct_uuid" when I first followed the installation instructions. I tried changing things in the configuration scripts to see if that was the problem, but it didn't help. I changed them back, in the hopes that some of the advice I got here had fixed the previous problem, but to no avail.

kiyop wrote:I also think that the root partition of debian is not correctly recognized, as nadir and dzz pointed out.

You should care that your /boot partition may be different from /(root) partition of the debian you want to boot.
I guees that UUID of your debian /boot partition may be 43650ea2-809f-4a1e-a79c-cb87b0e22f35 and that UUID of your debian root partition may be e36d276f-aaa3-4abc-bee0-2c8a27b60bb4, otherwise, that your /boot/grub/grub.cfg is wrongly configured possibly because of wrong chroot.
My root partition is /dev/sdb3, which GParted states has a UUID of e36d276f-aaa3-4abc-bee0-2c8a27b60bb4. My boot partition is /dev/sdc1, which GParted states has a UUID of 43650ea2-809f-4a1e-a79c-cb87b0e22f35.
kiyop wrote:If /boot partition of debian is separately prepared from root parition, you should mount /boot partition correctly on /CHROOT-DIRECTORY/boot before chroot.
I'm fairly certain I managed this successfully.
kiyop wrote:Furthermore, there are HDDs which needs long time to be recognized. In such case, kernel option "rootdelay=SECONDS" may help.
Where should I set this kernel option? /etc/default/grub has variables called "GRUB_DEFAULT" (currently set to 0) and "GRUB_TIMEOUT" (currently set to 5), as well as GRUB_CMDLINE_LINUX which is set to "".
kiyop wrote:To tell us deep information on your trouble, get some live linux (such as live debian: http://live.debian.net/ ) and execute boot info script, which can be downloaded at http://bootinfoscript.sourceforge.net/ , and post the contents of the generated RESULTS.txt.
If I could boot into a live CD, I would've just booted into the Debian installation CD. Fortunately, I was able to run bootinfoscript from my current environment:
Code: Select all
                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on boot
    drive #1 in partition #2 for /boot/grub/stage2 and /boot/grub/menu.lst.
 => Grub Legacy (v0.97) is installed in the MBR of /dev/sdb and looks on the
    same drive in partition #1 for /grub/stage2 and /grub/menu.lst.
 => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdc and looks at sector
    1 of the same hard drive for core.img. core.img is at this location and
    looks in partition 1 for (,msdos1)/grub.
 => Grub Legacy (v0.97) is installed in the MBR of /dev/sdd and looks on the
    same drive in partition #1 for /grub/stage2 and /grub/menu.lst.
 => Grub2 (v1.99) is installed in the MBR of /dev/sde and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    for (,msdos9)/boot/grub on this drive.

sda2: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System: 
    Boot files:       

sdb2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:   This is .()
    Boot files:        /grub.conf /etc/fstab

sdb3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Debian GNU/Linux 6.0
    Boot files:        /etc/fstab

sdc1: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  Grub2 (v1.97-1.98)
    Boot sector info:  Grub2 (v1.97-1.98) is installed in the boot sector of
                       sdc1 and looks at sector 280576 of the same hard drive
                       for core.img, but core.img can not be found at this
                       location.
    Operating System: 
    Boot files:       

sdc2: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:

sdc3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:   This is .()
    Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdd3: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info:
    Operating System: 
    Boot files:       

sde1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System: 
    Boot files:        /bootmgr /Boot/BCD

sde2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /boot/BCD /Windows/System32/winload.exe

sde3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info:

sde5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System: 
    Boot files:        /grub/menu.lst /boot/grub/menu.lst /grub/grub.conf
                       /boot/grub/grub.conf

sde6: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:

sde7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:   This is .()
    Boot files:        /etc/fstab

sde8: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Debian GNU/Linux 6.0
    Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sde9: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:  Ubuntu 12.04 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sde4: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 7: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System: 
    Boot files:       

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda2               2,048     8,460,287     8,458,240  82 Linux swap / Solaris
/dev/sda3           8,460,288 1,953,525,167 1,945,064,880  83 Linux


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb2         488,390,656   976,773,119   488,382,464  83 Linux
/dev/sdb3               2,048   488,390,655   488,388,608  83 Linux


Drive: sdc _____________________________________________________________________

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdc1    *          2,048    16,779,263    16,777,216  83 Linux
/dev/sdc2          16,779,264    50,333,695    33,554,432  82 Linux swap / Solaris
/dev/sdc3          50,333,696   976,773,119   926,439,424  83 Linux


Drive: sdd _____________________________________________________________________

Disk /dev/sdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdd3                  63   312,576,704   312,576,642  83 Linux


Drive: sde _____________________________________________________________________

Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sde1    *          2,048       409,599       407,552   7 NTFS / exFAT / HPFS
/dev/sde2             409,600   316,264,447   315,854,848   7 NTFS / exFAT / HPFS
/dev/sde3         316,266,494   976,560,127   660,293,634   5 Extended
/dev/sde5         316,266,496   316,397,567       131,072  83 Linux
/dev/sde6         316,399,616   324,788,223     8,388,608  82 Linux swap / Solaris
/dev/sde7         324,790,272   939,190,271   614,400,000  83 Linux
/dev/sde8         939,192,320   962,224,127    23,031,808  83 Linux
/dev/sde9         962,226,176   976,560,127    14,333,952  83 Linux
/dev/sde4         976,560,128   976,766,975       206,848   c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda2        eb5e79a5-4f44-4eec-9201-563f114a0e34   swap       
/dev/sda3        acc771c3-c8a4-4c00-b32f-505349bf8162   ext4       BigDisk
/dev/sdb2        5299b10e-9aad-40a2-b700-8767999da2f4   ext4       New_MSI
/dev/sdb3        e36d276f-aaa3-4abc-bee0-2c8a27b60bb4   ext4       Debian
/dev/sdc1        43650ea2-809f-4a1e-a79c-cb87b0e22f35   ext3       Boot_0
/dev/sdc2        54f4c9a0-0f85-4d4a-bb98-435726964873   swap       Swap
/dev/sdc3        fbe85ec1-e39a-476b-bc88-1d65f794c548   ext4       OS
/dev/sdd3        43e72e14-411c-4d80-b533-40bb943c17e5   ext3       Seagate
/dev/sde1        2AF89D27F89CF275                       ntfs       SYSTEM
/dev/sde2        E840A22E40A20382                       ntfs       
/dev/sde4        3D36-8A01                              vfat       HP_TOOLS
/dev/sde5        c0d9b5f1-c565-4ba7-9a34-5ce13735fb79   ext4       Boot
/dev/sde6        d18fa7eb-e04e-4681-b22f-666fd476c6c5   swap       
/dev/sde7        a0b8c407-a2e0-47fb-934e-be0afe9dc809   ext4       FirstHardDrive
/dev/sde8        d4c9f251-efa9-42a1-bc9e-66f9a67479ab   ext4       
/dev/sde9        3ecbe717-db4c-4a71-a7af-1385d632f57b   ext4       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sdb3        /home/jacob/chroot       ext4       (rw)
/dev/sdc1        /home/jacob/chroot/boot  ext3       (rw)
/dev/sde1        /media/SYSTEM            fuseblk    (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sde2        /media/E840A22E40A20382  fuseblk    (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sde4        /media/HP_TOOLS          vfat       (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
/dev/sde5        /media/Boot              ext4       (rw,nosuid,nodev,uhelper=udisks)
/dev/sde7        /media/FirstHardDrive    ext4       (rw,nosuid,nodev,uhelper=udisks)
/dev/sde8        /media/d4c9f251-efa9-42a1-bc9e-66f9a67479ab ext4       (rw,nosuid,nodev,uhelper=udisks)
/dev/sde9        /                        ext4       (rw,errors=remount-ro)


=============================== sdb2/grub.conf: ================================

--------------------------------------------------------------------------------
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 15
#splashimage=(hd2,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.38-r6
root (hd0,1)
kernel /boot/kernel-2.6.38-gentoo-r6 root=/dev/sda2

# vim:ft=conf:
--------------------------------------------------------------------------------

=============================== sdb2/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1      /boot         ext4      noauto,noatime      1 2
/dev/sda2      /            ext4      noatime            0 1
/dev/sdc2      none         swap      sw               0 0
/dev/cdrom      /mnt/cdrom      auto      noauto,ro         0 0
#/dev/fd0      /mnt/floppy      auto      noauto            0 0

/dev/sda3      /mnt/Sage      ext4      noatime,uid=jacob   0 2
/dev/sdb3      /mnt/Seagate   ext3      noatime,uid=jacob   0 2
/dev/ddc3      /mnt/BigDisk   ext4      noatime,uid=jacob   0 2
--------------------------------------------------------------------------------

=================== sdb2: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/stage2                               1
               =                grub.conf                                      1

=============================== sdb3/etc/fstab: ================================

--------------------------------------------------------------------------------
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/sdb3   /      ext4   defaults      0   1
/dev/sdc1   /boot      ext3   nosuid,nodev      0   2
/dev/sdc2   none      swap   sw         0   0
proc      /proc      proc   defaults      0   0

/dev/sda3   /mnt/BigDisk   ext4   rw,nosuid,nodev      0   2
/dev/sdb2   /mnt/New_MSI   ext4   rw,nosuid,nodev      0   2
/dev/sdc3   /mnt/OS      ext4   rw,nosuid,nodev      0   2
/dev/sdd3   /mnt/Seagate   ext3   rw,nosuid,nodev      0   2
--------------------------------------------------------------------------------

=================== sdb3: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                initrd.img                                     5
               =                vmlinuz                                        3

=========================== sdc3/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root fbe85ec1-e39a-476b-bc88-1d65f794c548
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
search --no-floppy --fs-uuid --set=root fbe85ec1-e39a-476b-bc88-1d65f794c548
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux, with Linux 2.6.39-gentoo-r3' --class gentoo --class gnu-linux --class gnu --class os {
   load_video
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos3)'
   search --no-floppy --fs-uuid --set=root fbe85ec1-e39a-476b-bc88-1d65f794c548
   echo   'Loading Linux 2.6.39-gentoo-r3 ...'
   linux   /boot/kernel-2.6.39-gentoo-r3 root=/dev/sda3 ro 
}
menuentry 'Gentoo GNU/Linux, with Linux 2.6.39-gentoo-r3 (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os {
   load_video
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos3)'
   search --no-floppy --fs-uuid --set=root fbe85ec1-e39a-476b-bc88-1d65f794c548
   echo   'Loading Linux 2.6.39-gentoo-r3 ...'
   linux   /boot/kernel-2.6.39-gentoo-r3 root=/dev/sda3 ro single
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sdc3/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1      /boot      ext4      noauto,noatime   1 2
/dev/sda3      /      ext4      noatime         0 1
/dev/sda2      none      swap      sw            0 0
/dev/sdb3      /mnt/Seagate   ext3   noatime,user,exec   0 2
/dev/sdc3      /mnt/BigDisk   ext4   noatime,user,exec   0 2
/dev/sdd3      /mnt/Sage   ext4      noatime,user,exec   0 2
/dev/sdd2      /mnt/New_MSI   ext4   noatime,user,exec   0 2
#/dev/cdrom      /mnt/cdrom   auto      noauto,ro,user   0 0
#/dev/fd0      /mnt/floppy   auto      noauto         0 0
--------------------------------------------------------------------------------

=================== sdc3: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/core.img                             1
               =                boot/grub/grub.cfg                             1

============================= sde5/grub/grub.conf: =============================

--------------------------------------------------------------------------------
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 20
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.2.12 First Try
root (hd0,4)
kernel /boot/kernel-3.2.12-gentoo root=/dev/sda7

title Gentoo Linux 3.1.6 First Try
root (hd0,4)
kernel /boot/kernel-3.1.6-gentoo root=/dev/sda7

title Gentoo Linux 2.6.37-gentoo-r4 With Sound
root (hd0,4)
kernel /boot/kernel-2.6.37-gentoo-r4-alsa root/dev/sda7

title Gentoo Linux 2.6.37-gentoo-r4
root (hd0,4)
kernel /boot/kernel-2.6.37-gentoo-r4 root=/dev/sda7

title Windows 7 Home Edition
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
--------------------------------------------------------------------------------

========================== sde5/boot/grub/grub.conf: ===========================

--------------------------------------------------------------------------------
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 20
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.2.12 First Try
root (hd0,4)
kernel /boot/kernel-3.2.12-gentoo root=/dev/sda7

title Gentoo Linux 3.1.6 First Try
root (hd0,4)
kernel /boot/kernel-3.1.6-gentoo root=/dev/sda7

title Gentoo Linux 2.6.37-gentoo-r4 With Sound
root (hd0,4)
kernel /boot/kernel-2.6.37-gentoo-r4-alsa root/dev/sda7

title Gentoo Linux 2.6.37-gentoo-r4
root (hd0,4)
kernel /boot/kernel-2.6.37-gentoo-r4 root=/dev/sda7

title Windows 7 Home Edition
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
--------------------------------------------------------------------------------

=================== sde5: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/grub.conf                            1
               =                boot/grub/menu.lst                             1
               =                boot/grub/stage2                               1
               =                grub/grub.conf                                 1
               =                grub/menu.lst                                  1
               =                grub/stage2                                    1

=============================== sde7/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda5      /boot      ext4      noauto,noatime   1 2
/dev/sda7      /      ext4      noatime      0 1
/dev/sda6      none      swap      sw      0 0
/dev/cdrom      /mnt/cdrom   auto      noauto,ro,user   0 0
/dev/sda2      /mnt/Windows ntfs-3g      users,uid=jacob   0 2
/dev/sdb1      /mnt/oldWindows   ntfs-3g      users,uid=jacob   0 2
/dev/sdb5      /mnt/oldDrive   ext3      users      0 2

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0
--------------------------------------------------------------------------------

=========================== sde8/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set d4c9f251-efa9-42a1-bc9e-66f9a67479ab
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set d4c9f251-efa9-42a1-bc9e-66f9a67479ab
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set d4c9f251-efa9-42a1-bc9e-66f9a67479ab
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos8)'
   search --no-floppy --fs-uuid --set d4c9f251-efa9-42a1-bc9e-66f9a67479ab
   echo   'Loading Linux 2.6.32-5-amd64 ...'
   linux   /boot/vmlinuz-2.6.32-5-amd64 root=UUID=d4c9f251-efa9-42a1-bc9e-66f9a67479ab ro  quiet
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos8)'
   search --no-floppy --fs-uuid --set d4c9f251-efa9-42a1-bc9e-66f9a67479ab
   echo   'Loading Linux 2.6.32-5-amd64 ...'
   linux   /boot/vmlinuz-2.6.32-5-amd64 root=UUID=d4c9f251-efa9-42a1-bc9e-66f9a67479ab ro single
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos1)'
   search --no-floppy --fs-uuid --set 2af89d27f89cf275
   chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda2)" {
   insmod part_msdos
   insmod ntfs
   set root='(hd0,msdos2)'
   search --no-floppy --fs-uuid --set e840a22e40a20382
   drivemap -s (hd0) ${root}
   chainloader +1
}
menuentry "Gentoo Linux 3.2.12 First Try (on /dev/sda7)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set c0d9b5f1-c565-4ba7-9a34-5ce13735fb79
   linux /boot/kernel-3.2.12-gentoo root=/dev/sda7
}
menuentry "Gentoo Linux 3.1.6 First Try (on /dev/sda7)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set c0d9b5f1-c565-4ba7-9a34-5ce13735fb79
   linux /boot/kernel-3.1.6-gentoo root=/dev/sda7
}
menuentry "Gentoo Linux 2.6.37-gentoo-r4 With Sound (on /dev/sda7)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set c0d9b5f1-c565-4ba7-9a34-5ce13735fb79
   linux /boot/kernel-2.6.37-gentoo-r4-alsa root/dev/sda7
}
menuentry "Gentoo Linux 2.6.37-gentoo-r4 (on /dev/sda7)" {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos5)'
   search --no-floppy --fs-uuid --set c0d9b5f1-c565-4ba7-9a34-5ce13735fb79
   linux /boot/kernel-2.6.37-gentoo-r4 root=/dev/sda7
}
menuentry "Windows Vista (loader) (on /dev/sdb1)" {
   insmod part_msdos
   insmod ntfs
   set root='(hd1,msdos1)'
   search --no-floppy --fs-uuid --set 38480589480546da
   chainloader +1
}
menuentry "Windows Vista (loader) (on /dev/sdb2)" {
   insmod part_msdos
   insmod ntfs
   set root='(hd1,msdos2)'
   search --no-floppy --fs-uuid --set a03ee67d3ee64bba
   chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sde8/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda8 during installation
UUID=d4c9f251-efa9-42a1-bc9e-66f9a67479ab /               ext4    errors=remount-ro 0       1
# / was on /dev/sda7 during installation
UUID=a0b8c407-a2e0-47fb-934e-be0afe9dc809 /mnt/FirstHardDrive ext4    errors=remount-ro 0       2
# swap was on /dev/sda6 during installation
UUID=d18fa7eb-e04e-4681-b22f-666fd476c6c5 none            swap    sw              0       0
# swap was on /dev/sdb6 during installation
UUID=c5fdca37-edfe-4f31-928b-970bd6696164 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
--------------------------------------------------------------------------------

=================== sde8: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/core.img                             1
               =                boot/grub/grub.cfg                             1
               =                boot/initrd.img-2.6.32-5-amd64                 2
               =                boot/vmlinuz-2.6.32-5-amd64                    1
               =                initrd.img                                     2
               =                vmlinuz                                        1

=========================== sde9/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd4,msdos9)'
search --no-floppy --fs-uuid --set=root 3ecbe717-db4c-4a71-a7af-1385d632f57b
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd4,msdos9)'
  search --no-floppy --fs-uuid --set=root 3ecbe717-db4c-4a71-a7af-1385d632f57b
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
   set gfxpayload="${1}"
   if [ "${1}" = "keep" ]; then
      set vt_handoff=vt.handoff=7
   else
      set vt_handoff=
   fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   gfxmode $linux_gfx_mode
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd4,msdos9)'
   search --no-floppy --fs-uuid --set=root 3ecbe717-db4c-4a71-a7af-1385d632f57b
   linux   /boot/vmlinuz-3.2.0-26-generic root=UUID=3ecbe717-db4c-4a71-a7af-1385d632f57b ro   quiet splash $vt_handoff
   initrd   /boot/initrd.img-3.2.0-26-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd4,msdos9)'
   search --no-floppy --fs-uuid --set=root 3ecbe717-db4c-4a71-a7af-1385d632f57b
   echo   'Loading Linux 3.2.0-26-generic ...'
   linux   /boot/vmlinuz-3.2.0-26-generic root=UUID=3ecbe717-db4c-4a71-a7af-1385d632f57b ro recovery nomodeset
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-3.2.0-26-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   gfxmode $linux_gfx_mode
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd4,msdos9)'
   search --no-floppy --fs-uuid --set=root 3ecbe717-db4c-4a71-a7af-1385d632f57b
   linux   /boot/vmlinuz-3.2.0-23-generic root=UUID=3ecbe717-db4c-4a71-a7af-1385d632f57b ro   quiet splash $vt_handoff
   initrd   /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
   recordfail
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='(hd4,msdos9)'
   search --no-floppy --fs-uuid --set=root 3ecbe717-db4c-4a71-a7af-1385d632f57b
   echo   'Loading Linux 3.2.0-23-generic ...'
   linux   /boot/vmlinuz-3.2.0-23-generic root=UUID=3ecbe717-db4c-4a71-a7af-1385d632f57b ro recovery nomodeset
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-3.2.0-23-generic
}
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
   insmod part_msdos
   insmod ext2
   set root='(hd4,msdos9)'
   search --no-floppy --fs-uuid --set=root 3ecbe717-db4c-4a71-a7af-1385d632f57b
   linux16   /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod part_msdos
   insmod ext2
   set root='(hd4,msdos9)'
   search --no-floppy --fs-uuid --set=root 3ecbe717-db4c-4a71-a7af-1385d632f57b
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux (6.0.5) (on /dev/sdb3)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd1,msdos3)'
   search --no-floppy --fs-uuid --set=root e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
   linux /boot/vmlinuz-2.6.32-5-amd64 root=/dev/sdb3
   initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry "Debian GNU/Linux (6.0.5) (on /dev/sdb3)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd1,msdos3)'
   search --no-floppy --fs-uuid --set=root e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
   linux /boot/kernel-2.6.39-gentoo-r3 root=/dev/sdb3
}
menuentry "Gentoo GNU/Linux, with Linux 2.6.39-gentoo-r3 (on /dev/sdc3)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd2,msdos3)'
   search --no-floppy --fs-uuid --set=root fbe85ec1-e39a-476b-bc88-1d65f794c548
   linux /boot/kernel-2.6.39-gentoo-r3 root=/dev/sda3 ro
}
menuentry "Gentoo GNU/Linux, with Linux 2.6.39-gentoo-r3 (recovery mode) (on /dev/sdc3)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd2,msdos3)'
   search --no-floppy --fs-uuid --set=root fbe85ec1-e39a-476b-bc88-1d65f794c548
   linux /boot/kernel-2.6.39-gentoo-r3 root=/dev/sda3 ro single
}
menuentry "Windows 7 (loader) (on /dev/sde1)" --class windows --class os {
   insmod part_msdos
   insmod ntfs
   set root='(hd4,msdos1)'
   search --no-floppy --fs-uuid --set=root 2AF89D27F89CF275
   chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sde2)" --class windows --class os {
   insmod part_msdos
   insmod ntfs
   set root='(hd4,msdos2)'
   search --no-floppy --fs-uuid --set=root E840A22E40A20382
   drivemap -s (hd0) ${root}
   chainloader +1
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/sde8)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd4,msdos8)'
   search --no-floppy --fs-uuid --set=root d4c9f251-efa9-42a1-bc9e-66f9a67479ab
   linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=d4c9f251-efa9-42a1-bc9e-66f9a67479ab ro quiet
   initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode) (on /dev/sde8)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd4,msdos8)'
   search --no-floppy --fs-uuid --set=root d4c9f251-efa9-42a1-bc9e-66f9a67479ab
   linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=d4c9f251-efa9-42a1-bc9e-66f9a67479ab ro single
   initrd /boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sde9/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda9 during installation
UUID=3ecbe717-db4c-4a71-a7af-1385d632f57b /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=d18fa7eb-e04e-4681-b22f-666fd476c6c5 none            swap    sw              0       0
# swap was on /dev/sdb6 during installation
UUID=c5fdca37-edfe-4f31-928b-970bd6696164 none            swap    sw              0       0
--------------------------------------------------------------------------------

=================== sde9: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/core.img                             1
               =                boot/grub/grub.cfg                             1
               =                boot/initrd.img-3.2.0-23-generic               2
               =                boot/initrd.img-3.2.0-26-generic               2
               =                boot/vmlinuz-3.2.0-23-generic                  1
               =                boot/vmlinuz-3.2.0-26-generic                  1
               =                initrd.img                                     2
               =                initrd.img.old                                 2
               =                vmlinuz                                        1
               =                vmlinuz.old                                    1

=============================== StdErr Messages: ===============================

xz: (stdin): Compressed data is corrupt
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
I think the problem is somewhere in the configuration files for GRUB, but I don't know for sure. Any advice?
User avatar
reneviht
 
Posts: 5
Joined: 2012-07-03 20:36

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby kiyop » 2012-07-07 23:17

Thanks for posting the contents of RESULTS.txt.

Your system has many boot (kernel) loaders.
I want to know which menu in which config file of which kernel loader is used when you want to boot debian.
Which device does the BIOS use to boot your debian?
In other words, what exact menu you tried to use to boot debian? What version of Grub (Grub legacy 0.9... or Grub 2, 1.9...) boots when you tries to boot debian?

I wonder if udev or something similar is not correctly installed in your debian.
You use ubuntu on USB-connected-Laptop-HDD to fix debian issue, do not you?
Please mount debian root partition and post the list of the names of the files in /etc/udev in the debian root partition.

And try to boot debian.
After the following is shown:
reneviht wrote:
Code: Select all
BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) _

execute the following and post the result
Code: Select all
blkid
ls /dev/?d*
mkdir /mnt
mount -t ext4 /dev/sd#3 /mnt

Change the above "#" to "a", "b", "c", "d" and "e".

I guess that you should chroot into debian and install udev or something relating to device file and then execute "update-initramfs -u" or mkinitramfs. But I am not familiar with generation of device files. I may be wrong.

By the way, there seems to be debian in your USB-connected-LAPTOP-HDD (/dev/sde8).
I sometimes copy all the directoies and the files in the root partition of debian to another partition by rsync, and modify /etc/fstab and kernel file like /boot/grub/grub.cfg or /boot/grub/menu.lst so that the copied debian correctly boots. It worked always, it never failed in my cases.

There is strange thing in /dev/sdb3.
The os-prober executed in the linux (Ubuntu 12.04?) installed in /dev/sde9 found gentoo kernel in /dev/sdb3.
reneviht wrote:
Code: Select all
=========================== sde9/boot/grub/grub.cfg: ===========================

(snip by kiyop)

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux (6.0.5) (on /dev/sdb3)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd1,msdos3)'
   search --no-floppy --fs-uuid --set=root e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
   linux /boot/vmlinuz-2.6.32-5-amd64 root=/dev/sdb3
   initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry "Debian GNU/Linux (6.0.5) (on /dev/sdb3)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd1,msdos3)'
   search --no-floppy --fs-uuid --set=root e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
   linux /boot/kernel-2.6.39-gentoo-r3 root=/dev/sdb3
}


I wonder if you installed debian on /dev/sdb3 without removing gentoo formerly installed on /dev/sdb3. Then, the gentoo settings and debian settings are mixed in /dev/sdb3.

reneviht wrote:
kiyop wrote:Furthermore, there are HDDs which needs long time to be recognized. In such case, kernel option "rootdelay=SECONDS" may help.
Where should I set this kernel option? /etc/default/grub has variables called "GRUB_DEFAULT" (currently set to 0) and "GRUB_TIMEOUT" (currently set to 5), as well as GRUB_CMDLINE_LINUX which is set to "".

reneviht wrote:I think the problem is somewhere in the configuration files for GRUB, but I don't know for sure. Any advice?

You can change kernel option and so on, by pressing "e" key at grub menu at boot time, and edit and then try to boot by pressing CTRL+"x".

Furthermore, in busybox or some tty environment, you may be able to view logs by pressing SHIFT+"PageUp". You may be able to go down by pressing SHIFT+"PageDown".
Openbox: Wheezy, Sid, Arch / Win XP (on VirtualBox) and 7
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 2139
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby reneviht » 2012-07-09 20:56

kiyop wrote:Thanks for posting the contents of RESULTS.txt.

Your system has many boot (kernel) loaders.
I want to know which menu in which config file of which kernel loader is used when you want to boot debian.
Which device does the BIOS use to boot your debian?
In other words, what exact menu you tried to use to boot debian? What version of Grub (Grub legacy 0.9... or Grub 2, 1.9...) boots when you tries to boot debian?
My computer tries to boot off of the boot loader I installed in sdc -- the one installed from Debian. I can tell because the others I installed under Gentoo, and I never bothered to set up pretty graphics for GRUB with them. The exact version is 1.98+20100804-14+squeeze1.

kiyop wrote:I wonder if udev or something similar is not correctly installed in your debian.
You use ubuntu on USB-connected-Laptop-HDD to fix debian issue, do not you?
Please mount debian root partition and post the list of the names of the files in /etc/udev in the debian root partition.

There are only three files and a directory in /etc/udev of the Debian installation:
Code: Select all
hdparm.rules links.conf rules.d udev.conf

The directory /etc/udev/rules.d contains just these two files:
Code: Select all
70-persistent-net.rules z60_hdparm.rules

kiyop wrote:And try to boot debian.
After the following is shown:
reneviht wrote:
Code: Select all
BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) _

execute the following and post the result
Code: Select all
blkid
ls /dev/?d*
mkdir /mnt
mount -t ext4 /dev/sd#3 /mnt

Change the above "#" to "a", "b", "c", "d" and "e".
I can skip everything after the first step, because blkid returns nothing whatsoever when I don't have the laptop drive attached via USB. When I attach the USB, it recognizes it quickly and registers it as sda, which is odd because Ubuntu registers it as sde when I boot into it.

kiyop wrote:I guess that you should chroot into debian and install udev or something relating to device file and then execute "update-initramfs -u" or mkinitramfs. But I am not familiar with generation of device files. I may be wrong.
Could be. I already have udev installed in Debian according to aptitude.

kiyop wrote:By the way, there seems to be debian in your USB-connected-LAPTOP-HDD (/dev/sde8).
I sometimes copy all the directoies and the files in the root partition of debian to another partition by rsync, and modify /etc/fstab and kernel file like /boot/grub/grub.cfg or /boot/grub/menu.lst so that the copied debian correctly boots. It worked always, it never failed in my cases.
Indeed there is. I use that installation whenever the hard drive's in my laptop. Unfortunately, when I try to boot my desktop into the Debian installation on my laptop, it fails to detect any of the hard drives, or my ethernet connection for that matter (my laptop's Debian installation works fine on the laptop). I assumed it was because Debian set its device files up statically during installation, whereas Ubuntu simply runs autodetection scripts every time it's booted. If I'm wrong about either of those, it could give us some clues.

For what it's worth, /boot/grub/grub.cfg says it shouldn't be edited because it's automatically generated, and /boot/grub/menu.lst doesn't exist.

kiyop wrote:There is strange thing in /dev/sdb3.
The os-prober executed in the linux (Ubuntu 12.04?) installed in /dev/sde9 found gentoo kernel in /dev/sdb3.
reneviht wrote:
Code: Select all
=========================== sde9/boot/grub/grub.cfg: ===========================

(snip by kiyop)

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Debian GNU/Linux (6.0.5) (on /dev/sdb3)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd1,msdos3)'
   search --no-floppy --fs-uuid --set=root e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
   linux /boot/vmlinuz-2.6.32-5-amd64 root=/dev/sdb3
   initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry "Debian GNU/Linux (6.0.5) (on /dev/sdb3)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd1,msdos3)'
   search --no-floppy --fs-uuid --set=root e36d276f-aaa3-4abc-bee0-2c8a27b60bb4
   linux /boot/kernel-2.6.39-gentoo-r3 root=/dev/sdb3
}


I wonder if you installed debian on /dev/sdb3 without removing gentoo formerly installed on /dev/sdb3. Then, the gentoo settings and debian settings are mixed in /dev/sdb3.
Interesting guess, but I never had an operating system installed on /dev/sdb3; it was always only used as storage. Besides, I reformatted it before installing Debian.

kiyop wrote:
reneviht wrote:
kiyop wrote:Furthermore, there are HDDs which needs long time to be recognized. In such case, kernel option "rootdelay=SECONDS" may help.
Where should I set this kernel option? /etc/default/grub has variables called "GRUB_DEFAULT" (currently set to 0) and "GRUB_TIMEOUT" (currently set to 5), as well as GRUB_CMDLINE_LINUX which is set to "".

reneviht wrote:I think the problem is somewhere in the configuration files for GRUB, but I don't know for sure. Any advice?

You can change kernel option and so on, by pressing "e" key at grub menu at boot time, and edit and then try to boot by pressing CTRL+"x".

Furthermore, in busybox or some tty environment, you may be able to view logs by pressing SHIFT+"PageUp". You may be able to go down by pressing SHIFT+"PageDown".
So, I can access the editor in GRUB, but I'm not sure where to add the "rootdelay=#" part. I guessed it was the same line that had the "root=UUID=..." in it. I added "rootdelay=120" to that line, and it did wait longer at the "Loading, please wait..." screen before giving up on waiting for root device.
User avatar
reneviht
 
Posts: 5
Joined: 2012-07-03 20:36

Re: Installing Debian GNU/Linux from a Unix/Linux System

Postby kiyop » 2012-07-09 21:50

In my system, /etc/udev has
hdparm.rules links.conf rules.d udev.conf
and /etc/udev/rules.d has
70-persistent-cd.rules 70-persistent-net.rules z60_hdparm.rules
The above is similar to those in your debian "/" partition.

If udev is correctly installed, your problem may be due to the lack of correct module for recognizing the internal HDDs.
As you said, ubuntu recognizes internal hdds.
So, boot with ubuntu and execute
Code: Select all
lsmod

The above command show the modules in use.
Memorize the modules in use.
Chroot to debian / partition and
Code: Select all
nano /etc/initramfs-tools/modules

and add the names of the modules used in ubuntu without the last ".ko" without the directory names each in one line.
You need not add names of all the modules used in "booted" ubuntu.
For example, like:
ext3
ext4
fuse
nls_base
ntfs
fat
vfat
loop
usb_storage
usbhid
hid
xhci
ext3
ext4
fuse
nls_base
ntfs
fat
vfat
loop
usb_storage
usbhid
hid
xhci

Some modules in debian have different name from those in Ubuntu.
You can check modules in /lib/modules/KERNEL_VERSION/kernel.
As you may know, the above KERNEL_VERSION should be replaced with kernel version (without "vmlinuz-"), which is shown by
Code: Select all
uname -r

or
Code: Select all
ls /boot/vmlinuz*

but you should care to use correct kernel in chroot circumstance.
After finish adding the modules names in /etc/initramfs-tools/modules, execute
Code: Select all
update-initramfs -u -k KERNEL_VERSION

But be careful to the KERNEL_VERSION. I am not familiar with the kernel version of chroot circumstance.

Good luck! :D
Openbox: Wheezy, Sid, Arch / Win XP (on VirtualBox) and 7
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 2139
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable