On 29/09/13 15:53, Terry Duell wrote:
> On Sun, 29 Sep 2013 10:34:18 +1000, Craig Sanders <[email protected]> wrote:
>
>
>> it looks like your /boot IS just a subdirectory on / but can you post a
>> copy of your /etc/fstab ?
> [snip]
>
>> can you attach a copy of your /boot/grub/grub.cfg or upload it to a
>> pastebin site ?
> Here are my /etc/fstab and /boot/grub/grub.cfg
> Hope is OK to attach them to email.
>
> ---------------------------------------------------
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc defaults 0 0
> # /dev/sda1
> UUID=d7740eca-4100-41af-848d-b17aff55fe2d / ext4
> rw,errors=remount-ro 0 1
> # /dev/sda5
> UUID=b6e14f1f-9a5d-4915-b9fd-e44b0203b171 /home ext4
> rw,errors=remount-ro 0 0
> # /dev/sda3
> UUID=f8abfb88-d663-4ddb-8816-f5a92f0855ab swap swap sw 0 > 0
Ok, let's start here.
The mount points / and /home are both being mounted via their
unique UUID.
The first thing to do is to confirm that the UUID and device nodes match up.
ls -l /dev/disk/by-uuid should give you a list of UUIDs and show the path
to the matching device node (example on next line)
lrwxrwxrwx 1 root root 9 Sep 26 23:28
d7740eca-4100-41af-848d-b17aff55fe2d -> ../../sda1
>
> ---------------------------------------------------
> localhost grub # more 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 {
> true
> }
>
> insmod part_msdos
> insmod ext2
> set root='(hd0,msdos1)'
> search --no-floppy --fs-uuid --set=root
> d7740eca-4100-41af-848d-b17aff55fe2d
> 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 ###
> set menu_color_normal=cyan/blue
> set menu_color_highlight=white/blue
> ### END /etc/grub.d/05_debian_theme ###
>
> ### BEGIN /etc/grub.d/06_mint_theme ###
> set menu_color_normal=white/black
> set menu_color_highlight=white/light-gray
> ### END /etc/grub.d/06_mint_theme ###
>
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry 'LinuxMint GNU/Linux, with Linux 3.10-2-amd64' --class linuxmint
> --class gnu-linux --class gnu --c
> lass os {
> load_video
> insmod gzio
> insmod part_msdos
> insmod ext2
> set root='(hd0,msdos1)'
> search --no-floppy --fs-uuid --set=root
> d7740eca-4100-41af-848d-b17aff55fe2d
> echo 'Loading Linux 3.10-2-amd64 ...'
> linux /boot/vmlinuz-3.10-2-amd64
> root=UUID=d7740eca-4100-41af-848d-b17aff55fe2d ro quiet
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.10-2-amd64
> }
> menuentry 'LinuxMint GNU/Linux, with Linux 3.10-2-amd64 (recovery mode)'
> --class linuxmint --class gnu-linux
> --class gnu --class os {
> load_video
> insmod gzio
> insmod part_msdos
> insmod ext2
> set root='(hd0,msdos1)'
> search --no-floppy --fs-uuid --set=root
> d7740eca-4100-41af-848d-b17aff55fe2d
> echo 'Loading Linux 3.10-2-amd64 ...'
> linux /boot/vmlinuz-3.10-2-amd64
> root=UUID=d7740eca-4100-41af-848d-b17aff55fe2d ro single
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.10-2-amd64
> }
> menuentry 'LinuxMint GNU/Linux, with Linux 3.2.0-4-amd64' --class
> linuxmint --class gnu-linux --class gnu --
> class os {
> load_video
> insmod gzio
> insmod part_msdos
> insmod ext2
> set root='(hd0,msdos1)'
> search --no-floppy --fs-uuid --set=root
> d7740eca-4100-41af-848d-b17aff55fe2d
> echo 'Loading Linux 3.2.0-4-amd64 ...'
> linux /boot/vmlinuz-3.2.0-4-amd64
> root=UUID=d7740eca-4100-41af-848d-b17aff55fe2d ro quiet
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-4-amd64
> }
> menuentry 'LinuxMint GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)'
> --class linuxmint --class gnu-linu
> x --class gnu --class os {
> load_video
> insmod gzio
> insmod part_msdos
> insmod ext2
> set root='(hd0,msdos1)'
> search --no-floppy --fs-uuid --set=root
> d7740eca-4100-41af-848d-b17aff55fe2d
> echo 'Loading Linux 3.2.0-4-amd64 ...'
> linux /boot/vmlinuz-3.2.0-4-amd64
> root=UUID=d7740eca-4100-41af-848d-b17aff55fe2d ro single
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-4-amd64
> }
> menuentry 'LinuxMint GNU/Linux, with Linux 3.2.0-2-amd64' --class
> linuxmint --class gnu-linux --class gnu --
> class os {
> load_video
> insmod gzio
> insmod part_msdos
> insmod ext2
> set root='(hd0,msdos1)'
> search --no-floppy --fs-uuid --set=root
> d7740eca-4100-41af-848d-b17aff55fe2d
> echo 'Loading Linux 3.2.0-2-amd64 ...'
> linux /boot/vmlinuz-3.2.0-2-amd64
> root=UUID=d7740eca-4100-41af-848d-b17aff55fe2d ro quiet
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-2-amd64
> }
> menuentry 'LinuxMint GNU/Linux, with Linux 3.2.0-2-amd64 (recovery mode)'
> --class linuxmint --class gnu-linu
> x --class gnu --class os {
> load_video
> insmod gzio
> insmod part_msdos
> insmod ext2
> set root='(hd0,msdos1)'
> search --no-floppy --fs-uuid --set=root
> d7740eca-4100-41af-848d-b17aff55fe2d
> echo 'Loading Linux 3.2.0-2-amd64 ...'
> linux /boot/vmlinuz-3.2.0-2-amd64
> root=UUID=d7740eca-4100-41af-848d-b17aff55fe2d ro single
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-2-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 ###
> localhost grub #
>
>
> Cheers,
Bingo! This config file is for the newer version of grub
You need to install grub2 then run grub-install
(grub2 will pull in grub-common and grub-pc)
Note that you will need to do so from the chroot
to the mounted filesystems, and may find that
you need to give the full pathname to grub-install
/usr/sbin/grub-install as it may not be in your
$PATH
Then run update-grub to have it check to
see what kernels you have installed as this
will regenerate the grub.cfg file based on what
it finds.
Good luck.
Regards,
Morrie.
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main