Windows XP, Ubuntu 12.04 Alternate, Debian7.0 - na jednym dysku

Pomoc dotycząca instalacji systemu
Awatar użytkownika
marcin1982
Moderator
Posty: 1732
Rejestracja: 05 maja 2011, 12:59
Lokalizacja: Zagłębie Dąbrowskie

Post autor: marcin1982 »

Dobra, podaj wynik skrytpu bootinfoscript. Uruchomisz go z poziomu Ubuntu albo dowolnego livecd / liveusb. Instrukcje dotyczące uruchomienia znajdziesz w pliku skryptu.

Przy okazji wyrównałbym też partycje. Zrobisz to przy pomocy programu GParted. Zajrzyj też tutaj:
http://wdc-pl.custhelp.com/app/answers/ ... peracyjnym .
Ostrożnie z tym - podaj też wynik polecenia:

Kod: Zaznacz cały

cat /sys/block/sda/queue/physical_block_size
chp
Posty: 32
Rejestracja: 05 lipca 2013, 22:08

Post autor: chp »

Proszę bardzo:

Kod: Zaznacz cały

================= 

              Boot Info Script 0.61      [1 April 2012]


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

 => Grub2 (v1.99) 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 
    for (,msdos3)/grub on this drive.
 => FreeDOS (eXtended FDisk) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows XP: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows XP
    Boot files:        /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________________________________

    File system:       crypto_LUKS
    Boot sector type:  Unknown
    Boot sector info: 

sda3: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda3 
                       and looks at sector 1884648744 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       for (,msdos5)/boot/grub on this drive.
    Operating System:  
    Boot files:        /grub/menu.lst /grub/grub.cfg /grub/core.img

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda5 
                       and looks at sector 1864270248 of the same hard drive 
                       for core.img. core.img is at this location and looks 
                       for (,msdos5)/boot/grub on this drive.
    Operating System:  Debian GNU/Linux 7.0
    Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________________________________

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

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        


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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 121601, w sumie sektorów: 1953525168
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 4096

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                  63   139,267,484   139,267,422   7 NTFS / exFAT / HPFS
/dev/sda2         139,268,096 1,858,017,279 1,718,749,184  83 Linux
/dev/sda3    *  1,858,017,280 1,858,516,991       499,712  83 Linux
/dev/sda4       1,858,519,038 1,953,523,711    95,004,674   5 Extended
/dev/sda5       1,858,519,040 1,878,048,767    19,529,728  83 Linux
/dev/sda6       1,878,050,816 1,881,196,543     3,145,728  82 Linux swap / Solaris
/dev/sda7       1,881,198,592 1,953,523,711    72,325,120  83 Linux




"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/mapper/logvolgr-logvol1 e8002302-60a3-4e92-bce2-df64a0c0623b   ext4       
/dev/mapper/logvolgr-logvol2 285e098a-c89f-447d-91ac-e5bd2a4c3991   swap       
/dev/mapper/logvolgr-logvol3 9a659cfb-bdc1-4ec7-8994-e77be2851cc6   ext4       
/dev/mapper/sda2_crypt kaQDhY-WOoa-W8lb-2AqU-S4EI-rirV-C0v2Nm LVM2_member 
/dev/sda1        6CC83C21C83BE84A                       ntfs       
/dev/sda2        7da2ab3b-8e72-4cb9-a4c0-bc10c0e8dca2   crypto_LUKS 
/dev/sda3        d18934bf-dd49-491c-b254-f0bf09ac52c8   ext3       
/dev/sda5        c3f1298c-0b8f-4efc-b3a9-3ac38523db2d   ext4       
/dev/sda6        b80503a9-fb8f-414c-9cc0-43b2eba654bd   swap       
/dev/sda7        646574e4-2e9d-4ac1-a2a4-55a8d5460616   ext4       

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
logvolgr-logvol1
logvolgr-logvol2
logvolgr-logvol3
sda2_crypt

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

Device           Mount_Point              Type       Options

/dev/mapper/logvolgr-logvol1 /                        ext4       (rw,errors=remount-ro)
/dev/mapper/logvolgr-logvol3 /home                    ext4       (rw)
/dev/sda1        /media/6CC83C21C83BE84A  fuseblk    (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda3        /boot                    ext3       (rw)
/dev/sda5        /media/c3f1298c-0b8f-4efc-b3a9-3ac38523db2d ext4       (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb1        /media/D0B0-8676         vfat       (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)


================================ sda1/boot.ini: ================================

--------------------------------------------------------------------------------
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
--------------------------------------------------------------------------------

============================= sda3/grub/menu.lst: ==============================

--------------------------------------------------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default        0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout        3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title        Windows 95/98/NT/2000
# root        (hd0,0)
# makeactive
# chainloader    +1
#
# title        Linux
# root        (hd0,1)
# kernel    /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=e8002302-60a3-4e92-bce2-df64a0c0623b ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=d18934bf-dd49-491c-b254-f0bf09ac52c8

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title        Ubuntu 12.04 LTS, kernel 3.2.0-23-generic-pae
uuid        d18934bf-dd49-491c-b254-f0bf09ac52c8
kernel        /vmlinuz-3.2.0-23-generic-pae root=UUID=e8002302-60a3-4e92-bce2-df64a0c0623b ro quiet splash 
initrd        /initrd.img-3.2.0-23-generic-pae

title        Ubuntu 12.04 LTS, kernel 3.2.0-23-generic-pae (recovery mode)
uuid        d18934bf-dd49-491c-b254-f0bf09ac52c8
kernel        /vmlinuz-3.2.0-23-generic-pae root=UUID=e8002302-60a3-4e92-bce2-df64a0c0623b ro  single
initrd        /initrd.img-3.2.0-23-generic-pae

title        Chainload into GRUB 2
root        d18934bf-dd49-491c-b254-f0bf09ac52c8
kernel        /boot/grub/core.img

title        Ubuntu 12.04 LTS, memtest86+
uuid        d18934bf-dd49-491c-b254-f0bf09ac52c8
kernel        /memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST
--------------------------------------------------------------------------------

============================= sda3/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
}

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 ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
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, za pomocą systemu Linux 3.2.0-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root d18934bf-dd49-491c-b254-f0bf09ac52c8
    linux    /vmlinuz-3.2.0-23-generic-pae root=/dev/mapper/logvolgr-logvol1 ro   quiet splash $vt_handoff
    initrd    /initrd.img-3.2.0-23-generic-pae
}
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-23-generic-pae (tryb ratunkowy)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root d18934bf-dd49-491c-b254-f0bf09ac52c8
    echo    'Wczytywanie systemu Linux 3.2.0-23-generic-pae...'
    linux    /vmlinuz-3.2.0-23-generic-pae root=/dev/mapper/logvolgr-logvol1 ro recovery nomodeset 
    echo    'Wczytywanie początkowego dysku RAM...'
    initrd    /initrd.img-3.2.0-23-generic-pae
}
### 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,msdos3)'
    search --no-floppy --fs-uuid --set=root d18934bf-dd49-491c-b254-f0bf09ac52c8
    linux16    /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root d18934bf-dd49-491c-b254-f0bf09ac52c8
    linux16    /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 6CC83C21C83BE84A
    drivemap -s (hd0) ${root}
    chainloader +1
}
### 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  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

               =                grub/core.img                                  2
               =                grub/grub.cfg                                  1
               =                grub/menu.lst                                  1
               =                initrd.img-3.2.0-23-generic-pae               87
               =                vmlinuz-3.2.0-23-generic-pae                  22

=========================== sda5/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
  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 {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root c3f1298c-0b8f-4efc-b3a9-3ac38523db2d
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos5)'
  search --no-floppy --fs-uuid --set=root c3f1298c-0b8f-4efc-b3a9-3ac38523db2d
  set locale_dir=($root)/boot/grub/locale
  set lang=pl_PL
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root c3f1298c-0b8f-4efc-b3a9-3ac38523db2d
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, za pomocą systemu Linux 3.2.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set=root c3f1298c-0b8f-4efc-b3a9-3ac38523db2d
    echo    'Wczytywanie systemu Linux 3.2.0-4-686-pae...'
    linux    /boot/vmlinuz-3.2.0-4-686-pae root=UUID=c3f1298c-0b8f-4efc-b3a9-3ac38523db2d ro  quiet
    echo    'Wczytywanie początkowego dysku RAM...'
    initrd    /boot/initrd.img-3.2.0-4-686-pae
}
menuentry 'Debian GNU/Linux, za pomocą systemu Linux 3.2.0-4-686-pae (tryb ratunkowy)' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set=root c3f1298c-0b8f-4efc-b3a9-3ac38523db2d
    echo    'Wczytywanie systemu Linux 3.2.0-4-686-pae...'
    linux    /boot/vmlinuz-3.2.0-4-686-pae root=UUID=c3f1298c-0b8f-4efc-b3a9-3ac38523db2d ro single 
    echo    'Wczytywanie początkowego dysku RAM...'
    initrd    /boot/initrd.img-3.2.0-4-686-pae
}
### 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 "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 6CC83C21C83BE84A
    drivemap -s (hd0) ${root}
    chainloader +1
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=c3f1298c-0b8f-4efc-b3a9-3ac38523db2d /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda7 during installation
UUID=646574e4-2e9d-4ac1-a2a4-55a8d5460616 /home           ext4    defaults        0       2
# swap was on /dev/sda6 during installation
UUID=b80503a9-fb8f-414c-9cc0-43b2eba654bd none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

               =                boot/grub/core.img                             1
               =                boot/grub/grub.cfg                             1
               =                boot/initrd.img-3.2.0-4-686-pae                2
               =                boot/vmlinuz-3.2.0-4-686-pae                   1
               =                vmlinuz                                        1

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

Unknown BootLoader on sda2

00000000  4c 55 4b 53 ba be 00 01  61 65 73 00 00 00 00 00  |LUKS....aes.....|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  63 62 63 2d 65 73 73 69  |........cbc-essi|
00000030  76 3a 73 68 61 32 35 36  00 00 00 00 00 00 00 00  |v:sha256........|
00000040  00 00 00 00 00 00 00 00  73 68 61 31 00 00 00 00  |........sha1....|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  00 00 10 00 00 00 00 20  |............... |
00000070  d8 5e 4e 47 4d df b6 56  8e fc 25 49 8c d2 b6 84  |.^NGM..V..%I....|
00000080  1f e7 75 44 df 7f 88 86  00 a0 5a 6c 72 92 76 7e  |..uD......Zlr.v~|
00000090  2c a4 f4 d8 2f d3 6a 33  1f e5 50 40 cd bb b1 10  |,.../.j3..P@....|
000000a0  2d 25 0e 29 00 00 6b 6c  37 64 61 32 61 62 33 62  |-%.)..kl7da2ab3b|
000000b0  2d 38 65 37 32 2d 34 63  62 39 2d 61 34 63 30 2d  |-8e72-4cb9-a4c0-|
000000c0  62 63 31 30 63 30 65 38  64 63 61 32 00 00 00 00  |bc10c0e8dca2....|
000000d0  00 ac 71 f3 00 01 ae 78  cd de 87 53 fa f3 a2 84  |..q....x...S....|
000000e0  ba c2 b4 f7 68 d1 bf 2b  cb a7 ed 78 49 82 68 9f  |....h..+...xI.h.|
000000f0  ed 52 04 02 bc b7 08 22  00 00 00 08 00 00 0f a0  |.R....."........|
00000100  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 00 01 08 00 00 0f a0  |................|
00000130  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 02 08 00 00 0f a0  |................|
00000160  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 03 08 00 00 0f a0  |................|
00000190  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  00 00 04 08 00 00 0f a0  |................|
000001c0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 05 08 00 00 0f a0  |................|
000001f0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000200

Unknown BootLoader on logvolgr-logvol1'


Unknown BootLoader on logvolgr-logvol2'


Unknown BootLoader on logvolgr-logvol3'



=============================== StdErr Messages: ===============================

xz: (stdin): Dane skompresowane są uszkodzone
xz: (stdin): Dane skompresowane są uszkodzone
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
xz: (stdin): Dane skompresowane są uszkodzone
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
hexdump: /dev/mapper/logvolgr-logvol1': Nie ma takiego pliku ani katalogu
hexdump: /dev/mapper/logvolgr-logvol1': Nie ma takiego pliku ani katalogu
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
hexdump: /dev/mapper/logvolgr-logvol2': Nie ma takiego pliku ani katalogu
hexdump: /dev/mapper/logvolgr-logvol2': Nie ma takiego pliku ani katalogu
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
hexdump: /dev/mapper/logvolgr-logvol3': Nie ma takiego pliku ani katalogu
hexdump: /dev/mapper/logvolgr-logvol3': Nie ma takiego pliku ani katalogu
=======================
W pliku [physical_block_size] mam wpis: "4096".
Awatar użytkownika
Yampress
Administrator
Posty: 6422
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Post autor: Yampress »

Rozkład wygląda poprawnie, trzy partycje podstawowe i jedna rozszerzona z dyskami logicznymi.

Sprawdzamy dalej.

Uruchamiasz Ubuntu i wydajesz polecenie:

Kod: Zaznacz cały

blkid

Do pliku /etc/grub.d/40_custom dodajwsz wpis

Kod: Zaznacz cały

menuentry 'Debian Linux' --class debian --class gnu-linux --class gnu --class os {
    load_video
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root [B]c89009ae-db9f-42ea-927d-9efd69bdd7c4[/B]
    linux    /boot/vmlinuz-3.9-1-686-pae root=UUID=[B]c89009ae-db9f-42ea-927d-9efd69bdd7c4[/B] ro  quiet
    initrd    /boot/initrd.img-3.9-1-686-pae
}

Oczywiście, zmieniasz UUID-y w tym pliku na swoje. Podajesz UUID głównego systemu plików Debiana.

U mnie /dev/sda1 to jest główny system plików i on jest podany w konfiguracji gruba

Kod: Zaznacz cały

[root@debian /boot/grub]#  blkid
/dev/sda2: UUID="ad156b6b-6941-497c-951b-02809ab2e7d3" TYPE="swap" 
/dev/sda1: UUID="[B]c89009ae-db9f-42ea-927d-9efd69bdd7c4[/B]" TYPE="ext4" 
/dev/sda3: UUID="d8aad24e-8f55-4a26-806d-182e4ceefc3e" TYPE="ext4" 

Kod: Zaznacz cały

[root@debian /boot/grub]#  cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb1 during installation
UUID=[B]c89009ae-db9f-42ea-927d-9efd69bdd7c4[/B]  /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdb3 during installation
UUID=d8aad24e-8f55-4a26-806d-182e4ceefc3e /home           ext4    defaults        0       2
# swap was on /dev/sda2 during installation
UUID=ad156b6b-6941-497c-951b-02809ab2e7d3 none            swap    sw              0       0

Po odpowiednim edytowaniu analogicznie według swoich UUID-ów pliku /etc/grub.d/40_custom wydajesz polecenie:

Kod: Zaznacz cały

update-grub2

I powinno już działać. I dodawać odpowiedni wpis po każdym przekonfigurowaniu gruba automagicznie.
chp
Posty: 32
Rejestracja: 05 lipca 2013, 22:08

Post autor: chp »

Wykonałem polecenie:

Kod: Zaznacz cały

blkid   
Wyświetlił mi UUID partycji, u mnie niewidoczny Debian ma główny system na /dev/sda5, więc w linii:

Kod: Zaznacz cały

set root='(/dev/sda,msdos5)'
wpisałem tą piątkę, w miejsce jedynki. Podmieniłem w dwóch miejscach Twojego kodu UUID w pliku /etc/grub.d/40_custom na te moje, dodatkowo sprawdziłem wersję jądra i też edytowałem do tych dotyczących mojego Debiana.
Uwaga: Edytowałem plik /etc/grub.d/40_custom znajdujący się w drzewie Ubuntu, nie Debiana. Potem polecenie:

Kod: Zaznacz cały

sudo update-grub
nie mam polecenia update-grub2.

I dalej nic.
fnmirk
Senior Member
Posty: 8321
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

Przepraszam ale jakieś zasady obowiązują wszystkich. Proszę używać znaczników code,

Czasowo zamknięty.
Awatar użytkownika
Rafcio
Posty: 50
Rejestracja: 20 lutego 2012, 19:26
Lokalizacja: Budzyń

Post autor: Rafcio »

Napisałem tutaj :http://ubuntu.pl/forum/viewtopic.php?f= ... 30#p956686 jak to powinno wyglądać.

Na sda3 jest błędna flaga boot , powinna być na sda1 , popraw partycje , masz monit :

Kod: Zaznacz cały

Partycja 1 nie zaczyna się na granicy bloku fizycznego.

Kod: Zaznacz cały

Partycja 4 nie zaczyna się na granicy bloku fizycznego.
i wywal "/boot" .
Dla przykładu mój podział dysku :
Obrazek
Awatar użytkownika
Yampress
Administrator
Posty: 6422
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Post autor: Yampress »

Zobacz czy masz zainstalowany pakiet grub2-common w którym to jest polecenie update-grub2.
chp
Posty: 32
Rejestracja: 05 lipca 2013, 22:08

Post autor: chp »

Kolego Rafcio, wydaje mi się, że jednak zachowam dwie partycje /swap - oczywiście ta druga w obrębie lvm, ze względu na kodowanie woluminów lvm. Znalazłem dość dokładny opis, który jasno wskazuje, żeby w takiej sytuacji zostawić niekodowaną, małą partycję /boot oraz resztę (/, /home i /swap) w obrębie lvm. I w przypadku jednego linuksa to działa prawidłowo. Problem zaczyna się podczas dodania drugiego, niekodowanego linuksa, prawdopodobnie jest to temat związany z programem rozruchowym grub. To są oczywiście tylko moje wrażenia po kilku dotychczasowych próbach instalacji. Jeżeli znajdę trochę zacięcia, wgram te dwa linuksy bez lvm i popatrzę w konfigurację grub'a - wydaje mi się, że gdzieś tutaj powinno leżeć rozwiązanie.

Kolego Yampress, dziękuję za informację dotyczącą grub-common, sprawdzę to w pierwszej kolejności, być może wystarczy tylko doinstalować tą paczkę.
Awatar użytkownika
Yampress
Administrator
Posty: 6422
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Post autor: Yampress »

grub2-common !!!! poprawiłem wyżej też
chp
Posty: 32
Rejestracja: 05 lipca 2013, 22:08

Post autor: chp »

Chyba wczoraj już mnie pomroczność wieczorna dopadła, bo zacząłem od postawienia linuksów jednak, chyba w amoku automatyzmów. I okazało się, że systemy (w kolejności): XP, Ubuntu 12.04LTE, Debian 7 elegancko się zainstalowały. Nie wydzielałem partycji /boot, po instalacji drugiego Ubuntu nie instalowałem grub'a, dopiero przy instalacji trzeciego Debiana to zrobiłem i instalator wykrył wszystko samodzielnie.

Teraz pora spróbować z LVM+Luks na jednym z linuksów, chciałbym jednak wypróbować tej możliwości, nauczyć się jej. Po drodze doszedł dodatkowy temat związany z Advanced Format: http://wdc-pl.custhelp.com/app/answers/ ... peracyjnym

co Koledzy słusznie wskazali w postach wyżej.


I tu mam pytanka:


1. czy optymalnie jest wyczyścić cały dysk i najpierw ustawić mu globalnie sektory o wielkości 4096b, np. tak:
parted -a minimal /dev/sda
czy też użyć gparted i ręcznie "przerobić" każdą istniejącą partycję linuksową z 512 na 4096b? Czy ew. wybór pierwszego rozwiązania załatwi sprawę także na partycji NTFS? A może istnieje możliwość ustalenia wielkości sektora podczas rurynowej instalacji?


2. której opcji użyć: minimal, czy optimal?


3. czy partycję NTFS wykorzystywaną przez XP potraktować oprogramowaniem zalecanym w powyższym artykule od WD?
ODPOWIEDZ