Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: Campa 07 Srpna 2010, 17:42:36
-
Mám na počítači XP a Ubuntu 10.04 pozměně HW Ubuntu naběhlo, ale XP ne. Tak jsem XP začal přeinstalovávat což se samozřejmě nezdařilo v bodě formátování a od té doby mi po startu píše pouze "neplatná tabulka oddílů". Zkoušel jsem Ubuntu live a nic, marně pátrám u Ubuntu po nějakém recovery módu. Na googlu jsem našel pár rad, ale z nich jsem nejsem moc moudrej. Na disku mám 4 oddíly, bohatě by mi tačilo se nějak dostat k ext4. ostatní oželím a jsem připravený vše instalovat znovu (za blbost se platí). Předem dík za případné rady.
-
Zkoušel jsem Ubuntu live a nic
Co to konkrétně znamená? LiveCD nemá žádnou souvislost s tabulkou oddílů (pokud máš nastaveno v BIOSu primárně bootování z CD/DVD mechaniky).
Až v tom LiveCD budeš, pošli výpis z boot_info_script (http://wiki.ubuntu.cz/boot_info_script).
-
S tím live CD jsem to myslel tak, že jsem se přes něho chtěl na ty disky podívat, což samozřejmě nejde, když jsou v p... oddíly. Jsem s tím v koncích posílám tedy ten výpis
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sda
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sda2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda3: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda4: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda4 starts
at sector 63. But according to the info from fdisk,
sda4 starts at sector 219962043.
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 63 40,965,749 40,965,687 7 HPFS/NTFS
/dev/sda2 * 40,965,874 219,961,979 178,996,106 5 Extended
Extended partition linking to another extended partition
/dev/sda5 40,965,876 213,952,204 172,986,329 83 Linux
/dev/sda3 213,953,733 219,961,979 6,008,247 82 Linux swap / Solaris
/dev/sda4 219,962,043 312,560,639 92,598,597 7 HPFS/NTFS
/dev/sda2 overlaps with /dev/sda3
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda: PTTYPE="dos"
/dev/sda1 76745144745107EF ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda3 8355c66b-d977-4064-b18c-99c170a9f8a0 swap
/dev/sda4 26509583509559FF ntfs XXXXX
/dev/sda5 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d ext4
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)
================================ sda1/boot.ini: ================================
[boot loader]
timeout=1
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" /noexecute=optin /fastdetect
=========================== sda5/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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 recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
set locale_dir=($root)/boot/grub/locale
set lang=cs
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
linux /boot/vmlinuz-2.6.32-23-generic root=UUID=8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d ro quiet splash
initrd /boot/initrd.img-2.6.32-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
echo 'Loading Linux 2.6.32-23-generic ...'
linux /boot/vmlinuz-2.6.32-23-generic root=UUID=8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-19-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
linux /boot/vmlinuz-2.6.32-19-generic root=UUID=8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d ro quiet splash
initrd /boot/initrd.img-2.6.32-19-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
echo 'Loading Linux 2.6.32-19-generic ...'
linux /boot/vmlinuz-2.6.32-19-generic root=UUID=8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-19-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-16-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
linux /boot/vmlinuz-2.6.32-16-generic root=UUID=8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d ro quiet splash
initrd /boot/initrd.img-2.6.32-16-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
echo 'Loading Linux 2.6.32-16-generic ...'
linux /boot/vmlinuz-2.6.32-16-generic root=UUID=8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-16-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d
linux16 /boot/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)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 92107aee107ad925
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 ###
=============================== sda5/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda6 during installation
UUID=8eb8fcd9-6aa4-4ba8-83e5-415c67e0408d / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=8355c66b-d977-4064-b18c-99c170a9f8a0 none swap sw 0 0
=================== sda5: Location of files loaded by Grub: ===================
98.4GB: boot/grub/core.img
21.1GB: boot/grub/grub.cfg
99.3GB: boot/initrd.img-2.6.32-16-generic
100.2GB: boot/initrd.img-2.6.32-19-generic
99.2GB: boot/initrd.img-2.6.32-23-generic
99.1GB: boot/vmlinuz-2.6.32-16-generic
99.3GB: boot/vmlinuz-2.6.32-19-generic
101.5GB: boot/vmlinuz-2.6.32-23-generic
99.2GB: initrd.img
100.2GB: initrd.img.old
101.5GB: vmlinuz
99.3GB: vmlinuz.old
-
/dev/sda2 overlaps with /dev/sda3
Vše vypadá OK, až na výše uvedenou chybu, s kterou si GParted/Editor diskových oddílů (http://wiki.ubuntu.cz/GParted) neporadí, ale jinak by vše mělo fungovat. To znamená, že pokud např. v LiveCD klikneš na Místa → Výměnná média, měl bys tam najít všechny oddíly včetně jejich obsahu.
Pokud jsi smířený s reinstalací, stačí vymazat sda2 a výše (jestli se ti to povede), Win na sda1 může zůstat.
-
To je právě zrada, že tam nic není, když přidám USB flash-ku tak se zobrazí, ale ty disky ne.
-
Kde nic není?
-
Tak jsem se vrátil z dovči a disk jsem dal do jiného počítače s Ubuntu a v roletce Místa → Výměnná média se mi zobrazil. Když jsem to nabootoval z Ubuntu live, tak tam není. Arrange dík za podporu, mě to takle stačí Win i Linux si přeinstaluju, jsem rád, že mám svá data. Ale zajímalo by mě pro příště, jak postupovat, když budu chtít přeinstalovat XP, co jsou společně na PC s Linuxem.
-
Pro příště zkus testdisk. Pomohl mě už hodně krát, když mi např. Windows smazaly oddíl s Linuxem nebo Debian oddíl s daty :3.