LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian Squeeze grub 2 issues boots from my installation USB SOLVED (https://www.linuxquestions.org/questions/linux-newbie-8/debian-squeeze-grub-2-issues-boots-from-my-installation-usb-solved-4175449066/)

toli 02-07-2013 04:03 PM

Debian Squeeze grub 2 issues boots from my installation USB SOLVED
 
Hello,

I've looking around to solve my problem, but I can't and hope here you can help :)

I have installed netinstall of debian from USB and the grub have been installed on the USB key. I tried a lot of things and finally arrived to boot from my first HDD but only grub>
From grub I tried the following:
Code:

root (hd0,0)
kernel /boot/vmlinuz-2.6.32-5-686 root=/dev/sda11
initrd /boot/initrd.img-2.6.32-5-686
boot

After this I get some different kind of shell says :
Code:

/bin/sh: can't access tty: job control turned off
If I reboot and use the USB I can still boot normal, but not without it...

Here is fdisk -l
Code:

root@music:~# fdisk -l

Disk /dev/sda: 4001 MB, 4001292288 bytes
255 heads, 63 sectors/track, 486 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000deb10

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        460    3693568  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2            461        487      210945    5  Extended
Partition 2 does not end on cylinder boundary.
/dev/sda5            461        487      210944  82  Linux swap / Solaris

Disk /dev/sdb: 16.0 GB, 16026435072 bytes
255 heads, 63 sectors/track, 1948 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000330de

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        1949    15648768    c  W95 FAT32 (LBA)

Here is my fstab:
Code:

oot@music:~# cat /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/sdc1 during installation
UUID=891bac5e-a242-4f5b-819d-b92050bf228a /              ext3    errors=remount-ro 0      1
# swap was on /dev/sdc5 during installation
UUID=1cc869d2-75a6-4c62-93d8-da16cf38dff8 none            swap    sw              0      0
/dev/scd0      /media/cdrom0  udf,iso9660 user,noauto    0      0
/dev/sda1      /media/usb0    auto    rw,user,noauto  0      0
/dev/sdc2        /home/toli/.mpd/music        auto        rw,user,auto

Thank you

Toli

toli 02-07-2013 07:17 PM

Just solved the problem used:

Code:

grub-mkconfig
update-grub
grub-install /dev/sda

Voila

Thanks


All times are GMT -5. The time now is 11:22 AM.