LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2011, 04:02 PM   #16
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply


Wait. What this has to do with Slackware boot? You didnt mention anything related to dual boot in the beginning. Tell me exactly what you are trying to do?
 
Old 10-11-2011, 04:09 PM   #17
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
I installed slackware about a week ago and I can't get it to boot up unless I use a USB thumb drive. Originally I was trying to get LILO to work, but I've given up on that. I got to the point where I get a grub splash screen with options to boot either Ubuntu or Slackware. Ubuntu works fine, but when I try to boot slackware, I get error messages.

One more thing- why do my device names keep swapping. It happened again. I think that's part of the problem. Remember when you had me do fdisk -l. I ran it again, look at this output and compare it to the last output:

Quote:
Disk /dev/sda: 120.1 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 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: 0x00005599

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13120 105386368+ 83 Linux
/dev/sda2 13121 14597 11860128 82 Linux swap / Solaris

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 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: 0x000af1e6

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9328 74920960 83 Linux
/dev/sdb2 9328 9730 3227649 5 Extended
/dev/sdb5 9328 9730 3227648 82 Linux swap / Solaris
 
Old 10-11-2011, 04:47 PM   #18
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

You issue seems to be similar to what has been posted here: http://ubuntuforums.org/showthread.php?t=419118

Read the post made by Mann1ers

The way that I know of to avoid this is to use UUID which we have already done. Appears to be some setting in BIOS which might be causing this.

As far as dual boot is concerned I have never worked on Slackware. I am not sure how Ubuntu + Slackware dual boot works. I can give it a try though if you could paste the output of:

Code:
cat /boot/grub/grub.cfg
 
Old 10-11-2011, 04:53 PM   #19
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
Is it still considered a dual boot if I have slackware and ubuntu on different hard drives?

Quote:
#
# 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 part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
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,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-30-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
linux /boot/vmlinuz-2.6.35-30-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro quiet splash
initrd /boot/initrd.img-2.6.35-30-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
echo 'Loading Linux 2.6.35-30-generic ...'
linux /boot/vmlinuz-2.6.35-30-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-30-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Linux (on /dev/sdb1)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 54915623-8ff7-4b43-8c41-94485063590f
linux /boot/vmlinuz root=/dev/root ro vt.default_utf8=0 vga = normal
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
menuentry "Slackware on sdb1" {
set root=(hd1,1)
insmod chain
chainloader +1
}
# 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 ###

Last edited by DMTspice; 10-11-2011 at 04:56 PM.
 
Old 10-11-2011, 05:18 PM   #20
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

You could try running the following commands:

Code:
sudo os-prober
then

Code:
sudo update-grub
and see if that helps.

Make sure that you take backup of /boot/grub/grub.cfg file before running above commands.
 
Old 10-11-2011, 05:26 PM   #21
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
*sigh* same results.
 
Old 10-11-2011, 05:57 PM   #22
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
I don't know if this information helps but this is the fstab file in my slackware kernel:

Code:
/dev/sdb1        /                ext4        defaults         1   1
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
 
Old 10-11-2011, 06:16 PM   #23
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
Originally I was trying to get LILO to work
Where did you install Lilo, the root partition for Slackware, sdb1?
What's on the usb you say you can boot Slackware with?

Quote:
*sigh* same results.
That's not much help. The os-prober and update-grub will give some output. What did you get? We know you still can't boot Slackware but it might help if you indicated whether you got errors from the commands or it indicated success and you still can't boot.

You can get much more detailed information to post by running the bootinfoscript. Just google it, go to the site, read the documentatio on using it, download it and run it.
 
Old 10-11-2011, 07:03 PM   #24
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
The USB is a bootable thumbdrive that I created when installing slackware. If it weren't for that I'd never be able to get into slackware period.

Here's the boot info script:

Code:
                  Boot Info Script 0.60    from 17 May 2011


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

 => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda 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)/boot/grub.
 => Lilo is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  LILO
    Boot sector info:   LILO is installed in boot sector of /dev/sdb1 and 
                       looks at sector 142942454 of /dev/sdb for the "map" 
                       file, and the "map" file was found at this location.
    Operating System:  Slackware 13.37.0
    Boot files:        /etc/fstab /etc/lilo.conf /boot/map

sdb2: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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/sda1    *          2,048   149,843,967   149,841,920  83 Linux
/dev/sda2         149,846,014   156,301,311     6,455,298   5 Extended
/dev/sda5         149,846,016   156,301,311     6,455,296  82 Linux swap / Solaris


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 120.1 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders, total 234493056 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/sdb1    *             63   210,772,799   210,772,737  83 Linux
/dev/sdb2         210,772,800   234,493,055    23,720,256  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        a97e6722-7e13-4f56-a96f-e46a841a29c6   ext4       
/dev/sda5        12c0222b-4b77-45f6-a894-a7c9acf868ff   swap       
/dev/sdb1        54915623-8ff7-4b43-8c41-94485063590f   ext4       LinuxSlack
/dev/sdb2        63d34583-5a18-4273-b786-eb3d2ab4a833   swap       

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

Device           Mount_Point              Type       Options

/dev/sda1        /                        ext4       (rw,errors=remount-ro,commit=0)
/dev/sdb1        /media                   ext4       (rw,commit=0)


=========================== sda1/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 part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
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,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-30-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	linux	/boot/vmlinuz-2.6.35-30-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro   quiet splash
	initrd	/boot/initrd.img-2.6.35-30-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	echo	'Loading Linux 2.6.35-30-generic ...'
	linux	/boot/vmlinuz-2.6.35-30-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-30-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro   quiet splash
	initrd	/boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	echo	'Loading Linux 2.6.35-22-generic ...'
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-22-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='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Linux (on /dev/sdb1)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set 54915623-8ff7-4b43-8c41-94485063590f
	linux /boot/vmlinuz root=/dev/root ro  vt.default_utf8=0 vga = normal
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
menuentry "Slackware on sdb1" {
    set root=(hd1,1)
    insmod chain
    chainloader +1 
}
# 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 ###
--------------------------------------------------------------------------------

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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/sda1 during installation
UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=3ee6628e-c69e-4925-8adf-3c4804acd33b none            swap    sw              0       0
# linuxSlack on /dev/sdb1
UUID=54915623-8ff7-4b43-8c41-94485063590f	/media	ext4	defaults	0	0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

  48.151115417 = 51.701866496   boot/grub/core.img                             1
   6.677894592 = 7.170334720    boot/grub/grub.cfg                             1
   1.149414062 = 1.234173952    boot/initrd.img-2.6.35-22-generic              2
   9.773399353 = 10.494107648   boot/initrd.img-2.6.35-30-generic              2
  48.140518188 = 51.690487808   boot/vmlinuz-2.6.35-22-generic                 1
  48.453193665 = 52.026220544   boot/vmlinuz-2.6.35-30-generic                 1
   9.773399353 = 10.494107648   initrd.img                                     2
   1.149414062 = 1.234173952    initrd.img.old                                 2
  48.453193665 = 52.026220544   vmlinuz                                        1
  48.140518188 = 51.690487808   vmlinuz.old                                    1

=============================== sdb1/etc/fstab: ================================

--------------------------------------------------------------------------------
/dev/sdb1        /                ext4        defaults         1   1
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
--------------------------------------------------------------------------------

============================= sdb1/etc/lilo.conf: ==============================

--------------------------------------------------------------------------------
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and 
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
#vga=791
# VESA framebuffer console @ 1024x768x32k
#vga=790
# VESA framebuffer console @ 1024x768x256
#vga=773
# VESA framebuffer console @ 800x600x64k
#vga=788
# VESA framebuffer console @ 800x600x32k
#vga=787
# VESA framebuffer console @ 800x600x256
#vga=771
# VESA framebuffer console @ 640x480x64k
#vga=785
# VESA framebuffer console @ 640x480x32k
#vga=784
# VESA framebuffer console @ 640x480x256
#vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/root
  label = Linux
  read-only
# Linux bootable partition config ends
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

  54.135020733 = 58.127035904   boot/vmlinuz                                   1
  54.129554272 = 58.121166336   boot/vmlinuz-generic-2.6.37.6                  1
  54.135020733 = 58.127035904   boot/vmlinuz-huge-2.6.37.6                     1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda2

00000000  80 7b d0 fb a0 47 96 59  30 17 7a 88 80 4b 8d b0  |.{...G.Y0.z..K..|
00000010  45 13 f4 bb 45 21 19 91  d0 b8 fd c8 e9 f0 5c b9  |E...E!........\.|
00000020  d0 7f f5 5c 4a ba 00 22  e9 93 36 54 0a 17 ed 00  |...\J.."..6T....|
00000030  1b af 0d 90 ff c5 c8 af  00 72 b3 95 bc 9d ae dc  |.........r......|
00000040  b3 00 1b b7 15 b7 d6 6f  6a 74 00 fd 04 31 8a 9a  |.......ojt...1..|
00000050  dc ec 1b 00 e7 25 90 b8  e6 c8 af 79 00 f3 95 bc  |.....%.....y....|
00000060  dd af dd b3 1a 00 2c de  bc 80 7b fd 73 23 00 98  |......,...{.s#..|
00000070  fa 8b 96 df ec 1a af 80  00 90 b8 ed d9 af 79 00  |..............y.|
00000080  7a 04 dd ae 00 3c b6 16  b7 4c a4 00 25 a8 22 98  |z....<...L..%.".|
00000090  fb 8a 96 dc 00 76 d0 a4  c1 4f 24 26 c9 02 a2 00  |.....v...O$&....|
000000a0  3c be dd ae dc b2 1a 80  b6 15 f3 5c a4 61 b9 00  |<..........\.a..|
000000b0  7a 00 11 5d d7 20 c4 33  c6 91 a0 bb fd d8 af 7a  |z..]. .3.......z|
000000c0  00 3d df 00 7b 00 5a b6  15 b7 4c a5 61 b8 4e 22  |.=..{.Z...L.a.N"|
000000d0  01 5c 00 7b 00 9a b8 e9  00 7b b4 01 00 7b ee dc  |.\.{.....{...{..|
000000e0  b3 1a b7 14 b7 00 4c 3e  aa b3 ee 47 66 40 40 97  |......L>...Gf@@.|
000000f0  db ec 1b af 08 00 7b c3  0f 04 7b 02 5c 00 7b 05  |......{...{.\.{.|
00000100  3d d1 33 af 0d 20 91 a8  ed c8 ef 00 7b bd dc 00  |=.3.. ......{...|
00000110  ae dc 29 d1 bd d9 68 d0  08 6f 60 ad 04 5c 56 af  |..)...h..o`..\V.|
00000120  64 90 00 db ed ba af 16  b3 e6 bc 00 b2 ae ba b3  |d...............|
00000130  6e b6 35 b7 00 08 a4 22  b8 6d 98 b7 8b 00 b6 dc  |n.5....".m......|
00000140  af 1b c3 0d f9 b8 00 88  c8 c1 79 c7 95 82 f5 41  |..........y....A|
00000150  80 5c 0a b6 15 f7 4c 8b  5c ad 06 ed 00 4d 80 5c  |.\....L.\....M.\|
00000160  90 ae b5 b3 79 00 b6 67  b7 23 a4 12 b8 4d 00 98  |....y..g.#...M..|
00000170  9c 8b e2 dc cc 1b eb 00  0d d3 b8 a2 c8 e2 79 93  |..............y.|
00000180  00 95 ff dd c2 dc da 1a  d3 00 15 d9 4c d0 61 87  |............L.a.|
00000190  0a 98 00 fa 81 96 dc ec  5b bf 0d 00 90 b9 ec c8  |........[.......|
000001a0  af e3 78 9e 40 70 02 32  17 b2 1e 80 7b 0c 10 8c  |..x.@p.2....{...|
000001b0  61 b8 2a 80 7b d6 cc ec  00 1b ae 0c 90 b8 00 fe  |a.*.{...........|
000001c0  ff ff 82 fe ff ff 02 00  00 00 00 80 62 00 00 00  |............b...|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200

Last edited by DMTspice; 10-11-2011 at 07:06 PM.
 
Old 10-11-2011, 07:42 PM   #25
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
It looks to me like you missconfigured your /etc/grub.d/40-custom file: The exec tail line is not the first line in the file as the comments seem to require.

If I read your grub.cfg file correctly, you have two Slackware boot menu entries. With which one are you having a problem?

The custom one seems to want to chain boot LILO on /dev/sdb, and the other attempts to start Slackware by loading and running the vmlinuz image, with the root=/dev/root option. That looks like it's just what LILO is doing, but - if that's the menu entry you're using, your problem may be (this is just a guess) that the root parameter is not being processed in the "correct" order.
 
Old 10-11-2011, 08:10 PM   #26
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
grub doesn't use /etc/fstab -- that's for the os grub's going to boot, not grub itself. grub usually gets its startup from /boot/grub/grub.cfg. Since you can boot to ubuntu, I'm guessing grub's booting from /boot/grub/grub.cfg on the ubuntu disk. Post its contents? I don't know grub well enough (at all) to promise anything, but I've had some experience browbeating it into doing what I want and whoever does shoot this will need it.

You said sda and sdb have switched places. Did that happen just once, or every time, or only when you haven't laughed in the last five minutes, or what? Is there a /boot/grub/grub.cfg on the other disk too? (if so, post that one too). What happens if you wait a minute before trying to boot slack (hit an arrow key or something to stop the autoboot timer)? What version of ubuntu are you on? Also please post the output of `grub-install -v`. You may wind up installing grub-doc and spending some quality time with `info grub`.
 
Old 10-11-2011, 08:12 PM   #27
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
oops, nevermind, I see people got there while I was digging.

Last edited by jthill; 10-11-2011 at 08:17 PM.
 
Old 10-11-2011, 08:16 PM   #28
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
Probably single quote should not be there in second last line of fstab:

UUID="54915623-8ff7-4b43-8c41-94485063590f /media/LinuxSlack ext4 defaults 0 0

Try with:

UUID=54915623-8ff7-4b43-8c41-94485063590f /media/LinuxSlack ext4 defaults 0 0

Last edited by rng; 10-11-2011 at 08:18 PM.
 
Old 10-11-2011, 08:34 PM   #29
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by PTrenholme View Post
It looks to me like you missconfigured your /etc/grub.d/40-custom file: The exec tail line is not the first line in the file as the comments seem to require.

If I read your grub.cfg file correctly, you have two Slackware boot menu entries. With which one are you having a problem?

The custom one seems to want to chain boot LILO on /dev/sdb, and the other attempts to start Slackware by loading and running the vmlinuz image, with the root=/dev/root option. That looks like it's just what LILO is doing, but - if that's the menu entry you're using, your problem may be (this is just a guess) that the root parameter is not being processed in the "correct" order.
The first two lines in 40_custom are:
#!/bin/sh
exec tail -n +3 $0

I never touched those two lines. I can't boot into either of the two slackware entires. I don't know why there's two to begin with.

Quote:
Originally Posted by jthill View Post
grub doesn't use /etc/fstab -- that's for the os grub's going to boot, not grub itself. grub usually gets its startup from /boot/grub/grub.cfg. Since you can boot to ubuntu, I'm guessing grub's booting from /boot/grub/grub.cfg on the ubuntu disk. Post its contents? I don't know grub well enough (at all) to promise anything, but I've had some experience browbeating it into doing what I want and whoever does shoot this will need it.

You said sda and sdb have switched places. Did that happen just once, or every time, or only when you haven't laughed in the last five minutes, or what? Is there a /boot/grub/grub.cfg on the other disk too? (if so, post that one too). What happens if you wait a minute before trying to boot slack (hit an arrow key or something to stop the autoboot timer)? What version of ubuntu are you on? Also please post the output of `grub-install -v`. You may wind up installing grub-doc and spending some quality time with `info grub`.
/dev/sda and /dev/sdb switch a lot. So far I've seen it happen when updating grub and when rebooting. I have LILO installed on slackware.

Grub from ubuntu:
Code:
#
# 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 part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
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,msdos1)'
search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-30-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	linux	/boot/vmlinuz-2.6.35-30-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro   quiet splash
	initrd	/boot/initrd.img-2.6.35-30-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	echo	'Loading Linux 2.6.35-30-generic ...'
	linux	/boot/vmlinuz-2.6.35-30-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-30-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro   quiet splash
	initrd	/boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	echo	'Loading Linux 2.6.35-22-generic ...'
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=a97e6722-7e13-4f56-a96f-e46a841a29c6 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-22-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='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set a97e6722-7e13-4f56-a96f-e46a841a29c6
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Linux (on /dev/sdb1)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set 54915623-8ff7-4b43-8c41-94485063590f
	linux /boot/vmlinuz root=/dev/root ro  vt.default_utf8=0 vga = normal
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
menuentry "Slackware on sdb1" {
    set root=(hd1,1)
    insmod chain
    chainloader +1 
}
# 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 ###



Quote:
Originally Posted by rng View Post
Probably single quote should not be there in second last line of fstab:

UUID="54915623-8ff7-4b43-8c41-94485063590f /media/LinuxSlack ext4 defaults 0 0

Try with:

UUID=54915623-8ff7-4b43-8c41-94485063590f /media/LinuxSlack ext4 defaults 0 0
I caught that error earlier and has been corrected.
 
Old 10-11-2011, 11:03 PM   #30
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
In your grub from ubuntu:
menuentry "Slackware on sdb1" {
set root=(hd1,1)
insmod chain
chainloader +1
}

whether it should be 'set root = (hd1,0)' rather than (hd1,1) (since 1,1 is swap partition)?

Last edited by rng; 10-11-2011 at 11:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How modify fstab when its 'ro' in "repair filesystem" mode ? emuub Linux - Software 3 03-24-2011 07:46 AM
I need a Linux OS other than Ubuntu which has a repair disk or repair software jhmac77 Linux - Newbie 1 03-17-2008 07:04 AM
How to repair FStab after changin hard drives? Anjin Mandriva 4 03-22-2005 03:04 AM
repair my fstab alaios Linux - General 1 09-14-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration