Δημοσιεύτηκε: 12 Ιαν 2012, 14:23
ΜΕΡΟΣ A
ΜΕΡΟΣ B
1.
2.
ΜΕΡΟΣ Γ
1.
2.
- Κώδικας: Επιλογή όλων
ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~#
root@ubuntu:~# mkdir /mnt/work
root@ubuntu:~#
root@ubuntu:~# mount /dev/sda1 /mnt/work
root@ubuntu:~#
root@ubuntu:~# mount -o bind /dev /mnt/work/dev
root@ubuntu:~#
root@ubuntu:~# mount -o bind /proc /mnt/work/proc
root@ubuntu:~#
root@ubuntu:~# mount -o bind /sys /mnt/work/sys
root@ubuntu:~#
root@ubuntu:~# cp -f /proc/mounts /mnt/work/etc/mtab
cp: `/proc/mounts' and `/mnt/work/etc/mtab' are the same file
root@ubuntu:~#
root@ubuntu:~# cp -f /etc/resolv.conf /mnt/work/etc/resolv.conf
root@ubuntu:~#
root@ubuntu:~# chroot /mnt/work/ /bin/bash
root@ubuntu:/#
ΜΕΡΟΣ B
1.
- Κώδικας: Επιλογή όλων
root@ubuntu:/# apt-get clean
root@ubuntu:/#
root@ubuntu:/# find /var/lib/apt/lists/ -type f -delete
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 10, in <module>
import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/__init__.py", line 1, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python2.6/dist-packages/CommandNotFound/CommandNotFound.py", line 4, in <module>
import sys, os, os.path, gdbm, posix, grp, string
ImportError: /usr/lib/python2.6/lib-dynload/gdbm.so: wrong ELF class: ELFCLASS64
root@ubuntu:/#
root@ubuntu:/# apt-get install gpgv
Reading package lists... Done
Building dependency tree
Reading state information... Done
gpgv is already the newest version.
The following packages were automatically installed and are no longer required:
polipo liba52-0.7.4-dev elementary-icon-theme libvorbis-dev libdts-dev
libogg-dev socat libqt4pas5 libqt4pas-dev giblib1 libsvga1-dev libdca-dev
libmad0-dev scrot murrine-themes libimlib2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# apt-get update
Ign http://ppa.launchpad.net natty InRelease
Ign http://security.ubuntu.com natty-security InRelease
Ign http://gr.archive.ubuntu.com natty InRelease
Ign http://gr.archive.ubuntu.com natty-updates InRelease
Ign http://gr.archive.ubuntu.com natty-proposed InRelease
Get:1 http://gr.archive.ubuntu.com natty Release.gpg [198 B]
Get:2 http://gr.archive.ubuntu.com natty-updates Release.gpg [198 B]
Get:3 http://ppa.launchpad.net natty Release.gpg [316 B]
Get:4 http://gr.archive.ubuntu.com natty-proposed Release.gpg [198 B]
Hit http://gr.archive.ubuntu.com natty Release
Get:5 http://gr.archive.ubuntu.com natty-updates Release [39.8 kB]
Get:6 http://security.ubuntu.com natty-security Release.gpg [198 B]
Ign http://archive.canonical.com natty InRelease
Ign http://www.hu.freepascal.org lazarus-testing InRelease
Ign http://dl.google.com stable InRelease
Ign http://extras.ubuntu.com natty InRelease
Hit http://ppa.launchpad.net natty Release
Ign http://deb.opera.com stable InRelease
Get:7 http://gr.archive.ubuntu.com natty-proposed Release [39.8 kB]
Get:8 http://dl.google.com stable Release.gpg [198 B]
Get:9 http://www.hu.freepascal.org lazarus-testing Release.gpg [191 B]
Get:10 http://archive.canonical.com natty Release.gpg [198 B]
Get:11 http://extras.ubuntu.com natty Release.gpg [72 B]
Get:12 http://dl.google.com stable Release [1,347 B]
Get:13 http://deb.opera.com stable Release.gpg [189 B]
Get:14 http://security.ubuntu.com natty-security Release [39.8 kB]
Hit http://www.hu.freepascal.org lazarus-testing Release
Hit http://extras.ubuntu.com natty Release
Get:15 http://archive.canonical.com natty Release [5,916 B]
Get:16 http://deb.opera.com stable Release [633 B]
Ign http://gr.archive.ubuntu.com natty Release
Get:17 http://deb.torproject.org lucid InRelease [2,765 B]
Ign http://gr.archive.ubuntu.com natty/main Sources/DiffIndex
Err http://gr.archive.ubuntu.com natty-updates Release
Ign http://ppa.launchpad.net natty Release
Err http://gr.archive.ubuntu.com natty-proposed Release
Err http://dl.google.com stable Release
Ign http://gr.archive.ubuntu.com natty/restricted Sources/DiffIndex
Ign http://gr.archive.ubuntu.com natty/universe Sources/DiffIndex
Ign http://gr.archive.ubuntu.com natty/multiverse Sources/DiffIndex
Ign http://gr.archive.ubuntu.com natty/main amd64 Packages/DiffIndex
Ign http://gr.archive.ubuntu.com natty/restricted amd64 Packages/DiffIndex
Ign http://gr.archive.ubuntu.com natty/universe amd64 Packages/DiffIndex
Ign http://ppa.launchpad.net natty/main Sources/DiffIndex
Ign http://gr.archive.ubuntu.com natty/multiverse amd64 Packages/DiffIndex
Ign http://gr.archive.ubuntu.com natty/main TranslationIndex
Ign http://gr.archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://gr.archive.ubuntu.com natty/restricted TranslationIndex
Ign http://gr.archive.ubuntu.com natty/universe TranslationIndex
Hit http://gr.archive.ubuntu.com natty/main Sources
Hit http://gr.archive.ubuntu.com natty/restricted Sources
Hit http://gr.archive.ubuntu.com natty/universe Sources
Hit http://gr.archive.ubuntu.com natty/multiverse Sources
Hit http://gr.archive.ubuntu.com natty/main amd64 Packages
Hit http://gr.archive.ubuntu.com natty/restricted amd64 Packages
Hit http://gr.archive.ubuntu.com natty/universe amd64 Packages
Hit http://gr.archive.ubuntu.com natty/multiverse amd64 Packages
Err http://security.ubuntu.com natty-security Release
Hit http://gr.archive.ubuntu.com natty/main Translation-el
Hit http://gr.archive.ubuntu.com natty/multiverse Translation-el
Hit http://gr.archive.ubuntu.com natty/restricted Translation-el
Ign http://ppa.launchpad.net natty/main amd64 Packages/DiffIndex
Ign http://ppa.launchpad.net natty/main TranslationIndex
Ign http://www.hu.freepascal.org lazarus-testing Release
Hit http://gr.archive.ubuntu.com natty/universe Translation-el
Err http://extras.ubuntu.com natty Release
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main amd64 Packages
Ign http://www.hu.freepascal.org lazarus-testing/universe amd64 Packages/DiffIndex
Err http://archive.canonical.com natty Release
Ign http://www.hu.freepascal.org lazarus-testing/universe TranslationIndex
Ign http://gr.archive.ubuntu.com natty/main Translation-en_US
Ign http://gr.archive.ubuntu.com natty/main Translation-en
Ign http://gr.archive.ubuntu.com natty/multiverse Translation-en_US
Ign http://gr.archive.ubuntu.com natty/multiverse Translation-en
Err http://deb.opera.com stable Release
Ign http://gr.archive.ubuntu.com natty/restricted Translation-en_US
Ign http://gr.archive.ubuntu.com natty/restricted Translation-en
Ign http://gr.archive.ubuntu.com natty/universe Translation-en_US
Ign http://gr.archive.ubuntu.com natty/universe Translation-en
Err http://deb.torproject.org lucid InRelease
Hit http://www.hu.freepascal.org lazarus-testing/universe amd64 Packages
Ign http://ppa.launchpad.net natty/main Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://www.hu.freepascal.org lazarus-testing/universe Translation-en_US
Ign http://ppa.launchpad.net natty/main Translation-el
Ign http://www.hu.freepascal.org lazarus-testing/universe Translation-en
Ign http://www.hu.freepascal.org lazarus-testing/universe Translation-el
Fetched 3,309 B in 2s (1,337 B/s)
Reading package lists... Done
W: GPG error: http://gr.archive.ubuntu.com natty Release: Unknown error executing gpgv
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://gr.archive.ubuntu.com natty-updates Release: Unknown error executing gpgv
W: GPG error: http://ppa.launchpad.net natty Release: Unknown error executing gpgv
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://gr.archive.ubuntu.com natty-proposed Release: Unknown error executing gpgv
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com stable Release: Unknown error executing gpgv
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com natty-security Release: Unknown error executing gpgv
W: GPG error: http://www.hu.freepascal.org lazarus-testing Release: Unknown error executing gpgv
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com natty Release: Unknown error executing gpgv
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.canonical.com natty Release: Unknown error executing gpgv
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.opera.com stable Release: Unknown error executing gpgv
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.torproject.org lucid InRelease: Unknown error executing gpgv
W: Failed to fetch http://deb.torproject.org/torproject.org/dists/lucid/InRelease
W: Failed to fetch http://gr.archive.ubuntu.com/ubuntu/dists/natty-updates/Release
W: Failed to fetch http://gr.archive.ubuntu.com/ubuntu/dists/natty-proposed/Release
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/Release
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release
W: Failed to fetch http://deb.opera.com/opera/dists/stable/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# apt-get install gpgv
Reading package lists... Done
Building dependency tree
Reading state information... Done
gpgv is already the newest version.
The following packages were automatically installed and are no longer required:
polipo liba52-0.7.4-dev elementary-icon-theme libvorbis-dev libdts-dev
libogg-dev socat libqt4pas5 libqt4pas-dev giblib1 libsvga1-dev libdca-dev
libmad0-dev scrot murrine-themes libimlib2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# apt-get install gpgv
Reading package lists... Done
Building dependency tree
Reading state information... Done
gpgv is already the newest version.
The following packages were automatically installed and are no longer required:
polipo liba52-0.7.4-dev elementary-icon-theme libvorbis-dev libdts-dev
libogg-dev socat libqt4pas5 libqt4pas-dev giblib1 libsvga1-dev libdca-dev
libmad0-dev scrot murrine-themes libimlib2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
root@ubuntu:/#
2.
- Κώδικας: Επιλογή όλων
root@ubuntu:/# dpkg -P --force-all ubuntu-desktop ubuntu-standard ubuntu-minimaldpkg: unrecognized option '--force-all'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# apt-get install ubuntu-desktop ubuntu-standard ubuntu-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu-minimal is already the newest version.
ubuntu-standard is already the newest version.
The following packages were automatically installed and are no longer required:
polipo liba52-0.7.4-dev elementary-icon-theme libvorbis-dev libdts-dev
libogg-dev socat libqt4pas5 libqt4pas-dev giblib1 libsvga1-dev libdca-dev
libmad0-dev scrot murrine-themes libimlib2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
notify-osd
The following packages will be REMOVED:
xfce4-notifyd
The following NEW packages will be installed:
notify-osd ubuntu-desktop
0 upgraded, 2 newly installed, 1 to remove and 89 not upgraded.
Need to get 123 kB of archives.
After this operation, 242 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
notify-osd ubuntu-desktop
Install these packages without verification [y/N]? y
Get:1 http://gr.archive.ubuntu.com/ubuntu/ natty/main notify-osd amd64 0.9.30-0ubuntu4 [119 kB]
Get:2 http://gr.archive.ubuntu.com/ubuntu/ natty/main ubuntu-desktop amd64 1.220 [3,876 B]
Fetched 123 kB in 0s (562 kB/s)
Can not write log, openpty() failed (/dev/pts not mounted?)
/usr/bin/dpkg: unrecognized option '--status-fd'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
E: Sub-process /usr/bin/dpkg returned an error code (1)
- Κώδικας: Επιλογή όλων
root@ubuntu:/# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
polipo liba52-0.7.4-dev elementary-icon-theme libvorbis-dev libdts-dev
libogg-dev socat libqt4pas5 libqt4pas-dev giblib1 libsvga1-dev libdca-dev
libmad0-dev scrot murrine-themes libimlib2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
root@ubuntu:/#
ΜΕΡΟΣ Γ
1.
- Κώδικας: Επιλογή όλων
root@ubuntu:/# dpkg -P --force-all grub grub-common grub-pc grub2 grub-pc-bin grub2-common
dpkg: unrecognized option '--force-all'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# mv /boot/grub/menu.lst /boot/grub/menu.lst.backup
mv: cannot stat `/boot/grub/menu.lst': No such file or directory
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# apt-get install grub2 grub-pc grub-common grub-pc-bin initramfs-tools grub2-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package grub-pc-bin
E: Unable to locate package grub2-common
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
polipo liba52-0.7.4-dev elementary-icon-theme libvorbis-dev libdts-dev
libogg-dev socat libqt4pas5 libqt4pas-dev giblib1 libsvga1-dev libdca-dev
libmad0-dev scrot murrine-themes libimlib2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
root@ubuntu:/#
2.
- Κώδικας: Επιλογή όλων
root@ubuntu:/# grub-install --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/sda
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=" vga=769"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# update-grub2
Generating grub.cfg ...
dpkg: unrecognized option '--compare-versions'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
dpkg: unrecognized option '--compare-versions'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
dpkg: unrecognized option '--compare-versions'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
Found linux image: /boot/vmlinuz-2.6.38-10-generic
Found initrd image: /boot/initrd.img-2.6.38-10-generic
dpkg: unrecognized option '--compare-versions'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
dpkg: unrecognized option '--compare-versions'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
Found linux image: /boot/vmlinuz-2.6.38-11-generic
Found initrd image: /boot/initrd.img-2.6.38-11-generic
dpkg: unrecognized option '--compare-versions'
BusyBox v1.17.1 (Ubuntu 1:1.17.1-10ubuntu1) multi-call binary.
Usage: dpkg [-ilCPru] [-F OPT] PACKAGE
Install, remove and manage Debian packages
Options:
-i,--install Install the package
-l,--list List of installed packages
--configure Configure an unpackaged package
-P,--purge Purge all files of a package
-r,--remove Remove all but the configuration files for a package
--unpack Unpack a package, but don't configure it
--force-depends Ignore dependency problems
--force-confnew Overwrite existing config files when installing
--force-confold Keep old config files when installing
Found linux image: /boot/vmlinuz-2.6.38-12-generic
Found initrd image: /boot/initrd.img-2.6.38-12-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
Adding 40_custom menu entries.
done
root@ubuntu:/#
- Κώδικας: Επιλογή όλων
root@ubuntu:/# cat /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='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
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=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
set locale_dir=($root)/boot/grub/locale
set lang=en_US
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
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 2.6.38-10-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
linux /boot/vmlinuz-2.6.38-10-generic root=UUID=7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd ro vga=769 quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-10-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-10-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
echo 'Loading Linux 2.6.38-10-generic ...'
linux /boot/vmlinuz-2.6.38-10-generic root=UUID=7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd ro single vga=769
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-10-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.38-11-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd ro vga=769 quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-11-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
echo 'Loading Linux 2.6.38-11-generic ...'
linux /boot/vmlinuz-2.6.38-11-generic root=UUID=7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd ro single vga=769
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-11-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
linux /boot/vmlinuz-2.6.38-12-generic root=UUID=7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd ro vga=769 quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-12-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
echo 'Loading Linux 2.6.38-12-generic ...'
linux /boot/vmlinuz-2.6.38-12-generic root=UUID=7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd ro single vga=769
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-12-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd ro vga=769 quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd ro single vga=769
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-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=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
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=root 7f039167-f1d7-4c2b-bea6-e1cf3b72f0bd
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/40_custom ###
exec tail -n +3 $0
# 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.
### BEGIN /etc/grub.d/40_custom ###
menuentry "puppy 5.28 in sda1" {
set root='(hd0,msdos1)'
linux /puppy528/vmlinuz
initrd /puppy528/initrd.gz
}
menuentry "puppy Linux 528 full install in sda4" {
set root='(hd0,msdos4)'
linux /boot/vmlinuz root=/dev/sda4 pmedia=atahd
}
EOF
### 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 ###
root@ubuntu:/#