I am trying to move some servers from RHEL to Debian and I already have one server (which was created by a different sysadmin, who left). Initially it was version 8 (Jessie)
It has dual boot (CentOS/Debian) configuration.
Today I tried to upgrade it from 8 to 9 (Stretch) to install Docker on it (I was not able to install it on Jessie due to dependencies for package
software-properties-common
Actually it did not help and the problem remains after the upgrade
Code: Select all
root@euler:/etc/apt# apt install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
software-properties-common : Depends: python3-software-properties (= 0.96.20.2-1) but it is not going to be installed
Recommends: packagekit but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@euler:/etc/apt# apt install python3-software-properties
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-software-properties : Depends: python3-apt (>= 0.8.8.2) but it is not going to be installed
Recommends: unattended-upgrades but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@euler:/etc/apt# apt install python3-apt
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
dictionaries-common emacsen-common gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x heirloom-mailx hunspell-en-us libaa1 libaec0 libavc1394-0 libavformat56 libcaca0
libcdparanoia0 libdv4 libgif4 libglu1-mesa libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgudev-1.0-0 libhdf5-100 libhdf5-8 libhunspell-1.3-0 libiec61883-0 libjack-jackd2-0 libjasper1 libllvm3.5 libncbi6
libpth20 libraw1394-11 libsamplerate0 libsctp1 libshout3 libslp1 libsz2 libtag1-vanilla libtag1c2a libv4l-0 libv4lconvert0 libvisual-0.4-0 libvisual-0.4-plugins libwavpack1 lksctp-tools python-cffi
python-debian python-debianbts python-defusedxml python-distlib python-funcsigs python-h5py python-html5lib python-mock python-ndg-httpsclient python-openssl python-pbr python-ply python-pycparser
python-requests python-soappy python-urllib3 python-webencodings python-wstools
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libapt-inst2.0 libapt-pkg5.0 python-apt-common
Suggested packages:
python3-apt-dbg python-apt-doc
The following packages will be REMOVED:
apt apt-utils
The following NEW packages will be installed:
libapt-inst2.0 libapt-pkg5.0 python-apt-common python3-apt
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt
0 upgraded, 4 newly installed, 2 to remove and 23 not upgraded.
Need to get 0 B/1,372 kB of archives.
After this operation, 668 kB of additional disk space will be used.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
Now returning to the upgrade. When I typed
Code: Select all
apt dist-upgrade
apt initially did not find package
Code: Select all
Get:1 http://security.debian.org/ stable/updates/main linux-image-4.9.0-8-amd64 amd64 4.9.110-3+deb9u6 [39.0 MB]
Code: Select all
root@euler:/etc/apt# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Code: Select all
root@euler:/etc/apt# cat /etc/apt/sourc*
#
# deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official amd64 NETINST Binary-1 20160604-15:31]/ jessie main
#deb cdrom:[Debian GNU/Linux 8.5.0 _Jessie_ - Official amd64 NETINST Binary-1 20160604-15:31]/ jessie main
#deb http://ftp.de.debian.org/debian stretch main
deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main
deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main
#deb http://security.debian.org/ stretch/updates main contrib non-free
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://mirror.it.ubc.ca/debian jessie main
deb http://mirror.its.dal.ca/debian jessie main
deb http://debian.mirror.iweb.ca/debian jessie main
deb http://debian.mirror.rafal.ca/debian jessie main
deb-src http://mirror.it.ubc.ca/debian jessie main
deb-src http://mirror.its.dal.ca/debian jessie main
deb-src http://debian.mirror.iweb.ca/debian jessie main
deb-src http://debian.mirror.rafal.ca/debian jessie main
deb http://mirror.it.ubc.ca/debian jessie-updates main
deb http://mirror.its.dal.ca/debian jessie-updates main
deb http://debian.mirror.iweb.ca/debian jessie-updates main
deb http://debian.mirror.rafal.ca/debian jessie-updates main
deb-src http://mirror.it.ubc.ca/debian jessie-updates main
deb-src http://mirror.its.dal.ca/debian jessie-updates main
deb-src http://debian.mirror.iweb.ca/debian jessie-updates main
deb-src http://debian.mirror.rafal.ca/debian jessie-updates main
cat: /etc/apt/sources.list.d: Is a directory
Code: Select all
apt upgrade
apt has found the package and downloaded it, but has errors during installation which I am afraid might make the server unbootable.
Code: Select all
root@euler:/etc/apt# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
dictionaries-common emacsen-common gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x heirloom-mailx hunspell-en-us iso-codes libaa1 libaec0 libavc1394-0 libavformat56
libcaca0 libcdparanoia0 libdv4 libgif4 libglu1-mesa libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgudev-1.0-0 libhdf5-100 libhdf5-8 libhunspell-1.3-0 libiec61883-0 libjack-jackd2-0 libjasper1 libllvm3.5
libncbi6 libpth20 libraw1394-11 libsamplerate0 libsctp1 libshout3 libslp1 libsz2 libtag1-vanilla libtag1c2a libv4l-0 libv4lconvert0 libvisual-0.4-0 libvisual-0.4-plugins libwavpack1 lksctp-tools python-cffi
python-debian python-debianbts python-defusedxml python-distlib python-funcsigs python-h5py python-html5lib python-httplib2 python-mock python-ndg-httpsclient python-openssl python-pbr python-ply
python-pycparser python-requests python-soappy python-urllib3 python-webencodings python-wstools
Use 'apt-get autoremove' to remove them.
Done
The following NEW packages will be installed:
linux-image-4.9.0-8-amd64
The following packages have been kept back:
curl ifupdown python-debianbts
The following packages will be upgraded:
linux-image-amd64
1 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 39.0 MB/39.1 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org/ stable/updates/main linux-image-4.9.0-8-amd64 amd64 4.9.110-3+deb9u6 [39.0 MB]
Fetched 36.2 MB in 56s (638 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package linux-image-4.9.0-8-amd64.
(Reading database ... 87269 files and directories currently installed.)
Preparing to unpack .../linux-image-4.9.0-8-amd64_4.9.110-3+deb9u6_amd64.deb ...
Unpacking linux-image-4.9.0-8-amd64 (4.9.110-3+deb9u6) ...
Preparing to unpack .../linux-image-amd64_4.9+80+deb9u6_amd64.deb ...
Unpacking linux-image-amd64 (4.9+80+deb9u6) over (3.16+63) ...
Setting up linux-image-4.9.0-8-amd64 (4.9.110-3+deb9u6) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-3.16.0-4-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-3.16.0-4-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.9.0-8-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.9.0-8-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-8-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
grub-probe: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map.
Found CentOS release 6.8 (Final) on /dev/mapper/vg_euler-LogVol00
done
Setting up linux-image-amd64 (4.9+80+deb9u6) ...
New kernel images were installed in /boot
Code: Select all
root@euler:/boot/grub# cd /boot
root@euler:/boot# ll
total 49M
-rw-r--r-- 1 root root 155K Sep 19 2017 config-3.16.0-4-amd64
-rw-r--r-- 1 root root 183K Oct 8 02:05 config-4.9.0-8-amd64
drwxr-xr-x 5 root root 1.0K Dec 19 15:14 grub/
-rw-r--r-- 1 root root 17M Dec 19 13:10 initrd.img-3.16.0-4-amd64
-rw-r--r-- 1 root root 19M Dec 19 15:14 initrd.img-4.9.0-8-amd64
drwx------ 2 root root 12K Jul 20 2016 lost+found/
-rw-r--r-- 1 root root 2.6M Sep 19 2017 System.map-3.16.0-4-amd64
-rw-r--r-- 1 root root 3.1M Oct 8 02:05 System.map-4.9.0-8-amd64
-rw-r--r-- 1 root root 3.0M Sep 19 2017 vmlinuz-3.16.0-4-amd64
-rw-r--r-- 1 root root 4.1M Oct 8 02:05 vmlinuz-4.9.0-8-amd64
Code: Select all
root@euler:/boot# cd /
root@euler:/# ll
total 385K
drwxrwxr-x 2 root root 4.0K Dec 19 13:08 bin/
drwxr-xr-x 4 root root 1.0K Dec 19 15:14 boot/
drwxr-xr-x. 7 root root 4.0K Dec 18 17:19 DATA/
drwxr-xr-x 2 root root 4.0K Aug 24 2016 dell/
drwxr-xr-x 18 root root 3.5K Dec 14 11:22 dev/
drwxr-xr-x 116 root root 12K Dec 19 13:10 etc/
drwxr-xr-x 3 root root 0 Dec 19 15:14 home/
lrwxrwxrwx 1 root root 29 Dec 19 15:13 initrd.img -> boot/initrd.img-4.9.0-8-amd64
lrwxrwxrwx 1 root root 30 Dec 19 15:13 initrd.img.old -> boot/initrd.img-3.16.0-4-amd64
drwxr-xr-x 15 root root 4.0K Dec 19 13:08 lib/
drwxr-xr-x 2 root root 4.0K Jun 21 2017 lib64/
drwxr-xr-x 2 root root 4.0K Nov 17 2016 log/
drwx------ 2 root root 16K Jul 20 2016 lost+found/
drwxr-xr-x 3 root root 4.0K Jul 20 2016 media/
drwxr-xr-x 3 root root 4.0K May 19 2017 mnt/
drwxr-xr-x 3 root root 4.0K Nov 17 2016 network/
drwxr-xr-x 5 root root 4.0K Mar 2 2017 opt/
dr-xr-xr-x 705 root root 0 Sep 16 21:27 proc/
drwx------ 22 root root 4.0K Dec 19 15:17 root/
drwxr-xr-x 22 root root 940 Dec 19 14:55 run/
drwxr-xr-x 2 root root 12K Dec 19 13:08 sbin/
drwxr-xr-x 2 root root 4.0K Jul 20 2016 srv/
dr-xr-xr-x 13 root root 0 Dec 18 17:17 sys/
-rw-r--r-- 1 root root 56 Apr 18 2018 sysinfo.04.log
-rw-r--r-- 1 root root 56 Jul 22 2016 sysinfo.07.log
-rw-r--r-- 1 root root 122 Sep 26 17:45 sysinfo.09.log
-rw-r--r-- 1 root root 67K Mar 12 2017 TARGET
drwxrwxrwt 12 root root 132K Dec 19 15:25 tmp/
drwxr-xr-x 10 root root 4.0K Jul 20 2016 usr/
drwxr-xr-x 12 root root 4.0K Jul 20 2016 var/
lrwxrwxrwx 1 root root 26 Dec 19 15:13 vmlinuz -> boot/vmlinuz-4.9.0-8-amd64
lrwxrwxrwx 1 root root 27 Dec 19 15:13 vmlinuz.old -> boot/vmlinuz-3.16.0-4-amd64
Code: Select all
root@euler:/boot/grub# cat 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
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/o2iOKB-KG5U-U98g-I0Rp-KKQj-pfys-EA35yO'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/o2iOKB-KG5U-U98g-I0Rp-KKQj-pfys-EA35yO' e09793f8-2cf4-46e9-9253-af2b305605bc
else
search --no-floppy --fs-uuid --set=root e09793f8-2cf4-46e9-9253-af2b305605bc
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### 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/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e09793f8-2cf4-46e9-9253-af2b305605bc' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS' a5fbd402-7cf1-43f1-9f57-71c1116c783e
else
search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
fi
echo 'Loading Linux 4.9.0-8-amd64 ...'
linux /vmlinuz-4.9.0-8-amd64 root=/dev/mapper/vg_euler-debian_root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.9.0-8-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e09793f8-2cf4-46e9-9253-af2b305605bc' {
menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-advanced-e09793f8-2cf4-46e9-9253-af2b305605bc' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS' a5fbd402-7cf1-43f1-9f57-71c1116c783e
else
search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
fi
echo 'Loading Linux 4.9.0-8-amd64 ...'
linux /vmlinuz-4.9.0-8-amd64 root=/dev/mapper/vg_euler-debian_root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.9.0-8-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-8-amd64-recovery-e09793f8-2cf4-46e9-9253-af2b305605bc' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS' a5fbd402-7cf1-43f1-9f57-71c1116c783e
else
search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
fi
echo 'Loading Linux 4.9.0-8-amd64 ...'
linux /vmlinuz-4.9.0-8-amd64 root=/dev/mapper/vg_euler-debian_root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.9.0-8-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-e09793f8-2cf4-46e9-9253-af2b305605bc' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS' a5fbd402-7cf1-43f1-9f57-71c1116c783e
else
search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg_euler-debian_root ro quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.16.0-4-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-e09793f8-2cf4-46e9-9253-af2b305605bc' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod lvm
insmod ext2
set root='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/aF47cm-6dS3-PcxE-jJPd-uiEe-t97F-C0P8Cx/swP1Bj-Qk9a-8pyq-0O6E-hAkq-bvWC-USppkS' a5fbd402-7cf1-43f1-9f57-71c1116c783e
else
search --no-floppy --fs-uuid --set=root a5fbd402-7cf1-43f1-9f57-71c1116c783e
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /vmlinuz-3.16.0-4-amd64 root=/dev/mapper/vg_euler-debian_root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.16.0-4-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 'CentOS release 6.8 (Final) (on /dev/mapper/vg_euler-LogVol00)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-55629812-dada-464c-ae19-0bdf328f6252' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
else
search --no-floppy --fs-uuid --set=root 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
fi
linux /vmlinuz-2.6.32-642.1.1.el6.x86_64 ro root=/dev/mapper/vg_euler-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_euler/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet crashkernel=auto
initrd /initramfs-2.6.32-642.1.1.el6.x86_64.img
}
submenu 'Advanced options for CentOS release 6.8 (Final) (on /dev/mapper/vg_euler-LogVol00)' $menuentry_id_option 'osprober-gnulinux-advanced-55629812-dada-464c-ae19-0bdf328f6252' {
menuentry 'CentOS (2.6.32-642.1.1.el6.x86_64) (on /dev/mapper/vg_euler-LogVol00)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-2.6.32-642.1.1.el6.x86_64--55629812-dada-464c-ae19-0bdf328f6252' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
else
search --no-floppy --fs-uuid --set=root 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
fi
linux /vmlinuz-2.6.32-642.1.1.el6.x86_64 ro root=/dev/mapper/vg_euler-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_euler/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet crashkernel=auto
initrd /initramfs-2.6.32-642.1.1.el6.x86_64.img
}
menuentry 'CentOS 6 (2.6.32-642.el6.x86_64) (on /dev/mapper/vg_euler-LogVol00)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz-2.6.32-642.el6.x86_64--55629812-dada-464c-ae19-0bdf328f6252' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
else
search --no-floppy --fs-uuid --set=root 31b8b326-3a66-4fe7-8a1d-2aa13a27b857
fi
linux /vmlinuz-2.6.32-642.el6.x86_64 ro root=/dev/mapper/vg_euler-LogVol00 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_euler/LogVol00 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-642.el6.x86_64.img
}
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
Code: Select all
root@euler:/etc/apt# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 101G 98M 101G 1% /run
/dev/dm-0 175G 13G 153G 8% /
tmpfs 253G 0 253G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 253G 0 253G 0% /sys/fs/cgroup
/dev/sdb1 1.1T 615G 429G 59% /DATA
/dev/mapper/vg_euler-debian_boot 453M 60M 366M 15% /boot
/dev/sde1 932G 543G 389G 59% /mnt/ntfsmount
tmpfs 51G 0 51G 0% /run/user/754243
Code: Select all
root@euler:/etc/apt# fdisk -l
Disk /dev/sda: 278.9 GiB, 299439751168 bytes, 584843264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000080
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M 83 Linux
/dev/sda2 1026048 3123199 2097152 1G 82 Linux swap / Solaris
/dev/sda3 3123200 584843263 581720064 277.4G 8e Linux LVM
Disk /dev/sdb: 1.1 TiB, 1199101181952 bytes, 2341994496 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000081
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 2341994495 2341992448 1.1T 83 Linux
Disk /dev/mapper/vg_euler-debian_root: 176.9 GiB, 189964222464 bytes, 371023872 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg_euler-LogVol00: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg_euler-debian_boot: 476 MiB, 499122176 bytes, 974848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdc: 14.9 GiB, 16005464064 bytes, 31260672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x30f5270c
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 0 505855 505856 247M 0 Empty
/dev/sdc2 3900 4731 832 416K ef EFI (FAT-12/16/32)
Disk /dev/sdd: 931.5 GiB, 1000170586112 bytes, 1953458176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CA4E486D-C51A-4B04-A1C9-90CE2EC3229A
Device Start End Sectors Size Type
/dev/sdd1 2048 1953456127 1953454080 931.5G Microsoft basic data