ubuntu@ubuntu:~$ devkit-disks --show-info /dev/sdaShowing information for /org/freedesktop/DeviceKit/Disks/devices/sda native-path: /sys/devices/pci0000:00/0000:00:06.0/host4/target4:0:0/4:0:0:0/block/sda device: 8:0 device-file: /dev/sda by-id: /dev/disk/by-id/ata-Maxtor_6L080P0_L23XP80G by-id: /dev/disk/by-id/scsi-SATA_Maxtor_6L080P0_L23XP80G by-path: /dev/disk/by-path/pci-0000:00:06.0-scsi-0:0:0:0 detected at: Pá 29. leden 2010, 08:45:40 UTC system internal: 1 removable: 0 has media: 1 (detected at Pá 29. leden 2010, 08:45:40 UTC) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 81964302336 block size: 512 job underway: no usage: type: version: uuid: label: partition table: scheme: mbr count: 3 drive: vendor: ATA model: Maxtor 6L080P0 revision: BAJ41G20 serial: L23XP80G detachable: 0 can spindown: 1 rotational media: 1 ejectable: 0 media: compat: interface: ata if speed: (unknown) ATA SMART: Updated at Pá 29. leden 2010, 08:45:40 UTC overall assessment: Good=============================================================================== Attribute Current|Worst|Threshold Status Value Type Updates=============================================================================== spin-up-time 228|227| 63 good 8,7 secs Pre-fail Online start-stop-count 252|252| 0 n/a 2132 Old-age Online reallocated-sector-count 253|253| 63 good 0 sectors Pre-fail Online read-channel-margin 253|253|100 good 0 Pre-fail Offline seek-error-rate 253|247| 0 n/a 0 Old-age Online seek-time-performance 249|240|187 good 0 Pre-fail Online power-on-minutes 225|225| 0 n/a 5,8 days Old-age Online spin-retry-count 253|252|157 good 0 Pre-fail Online calibration-retry-count 253|252|223 good 0 Pre-fail Online power-cycle-count 248|248| 0 n/a 2162 Old-age Online power-off-retract-count 253|253| 0 n/a 0 Old-age Online load-cycle-count 253|253| 0 n/a 0 Old-age Online temperature-celsius-2 32|253| 0 n/a 30C / 86F Old-age Online hardware-ecc-recovered 253|252| 0 n/a 788 Old-age Online reallocated-event-count 253|253| 0 n/a 0 Old-age Offline current-pending-sector 253|253| 0 n/a 0 sectors Old-age Offline offline-uncorrectable 253|253| 0 n/a 0 sectors Old-age Offline udma-crc-error-count 1| 1| 0 n/a 49523 Old-age Offline multi-zone-error-rate 253|252| 0 n/a 0 Old-age Online soft-read-error-rate 253|252| 0 n/a 0 Old-age Online ta-increase-count 253|252| 0 n/a 0 Old-age Online run-out-cancel 253|252|180 good 0 Pre-fail Online shock-count-write-open 253|252| 0 n/a 0 Old-age Online shock-rate-write-open 253|252| 0 n/a 0 Old-age Online spin-high-current 253|252| 0 n/a 0 Old-age Online spin-buzz 253|252| 0 n/a 0 Old-age Online offline-seek-performance 241|241| 0 n/a 0 Old-age Offline attribute-210 253|252| 0 n/a 0 Old-age Online attribute-211 253|252| 0 n/a 0 Old-age Online attribute-212 253|252| 0 n/a 0 Old-age Online ubuntu@ubuntu:~$ sudo dd if=/dev/sda bs=512 count=1 | hd1+0 records in1+0 records out512 bytes (512 B) copied, 4,5257e-05 s, 11,3 MB/s00000000 eb 63 90 d0 bc 00 7c fb 50 07 50 1f fc be 1b 7c |.c....|.P.P....||00000010 bf 1b 06 50 57 b9 e5 01 f3 a4 cb bd be 07 b1 04 |...PW...........|00000020 38 6e 00 7c 09 75 13 83 c5 10 e2 f4 cd 18 8b f5 |8n.|.u..........|00000030 83 c6 10 49 74 19 38 2c 74 f6 a0 b5 07 b4 03 02 |...It.8,t.......|00000040 ff 00 00 20 01 00 00 00 00 02 fa 90 90 f6 c2 80 |... ............|00000050 75 02 b2 80 ea 59 7c 00 00 31 00 80 01 00 00 00 |u....Y|..1......|00000060 00 00 00 00 ff fa eb 07 f6 c2 80 75 02 b2 80 ea |...........u....|00000070 74 7c 00 00 31 c0 8e d8 8e d0 bc 00 20 fb a0 64 |t|..1....... ..d|00000080 7c 3c ff 74 02 88 c2 52 be 88 7d e8 24 01 be 05 ||<.t...R..}.$...|00000090 7c f6 c2 80 74 48 b4 41 bb aa 55 cd 13 5a 52 72 ||...tH.A..U..ZRr|000000a0 3d 81 fb 55 aa 75 37 83 e1 01 74 32 31 c0 89 44 |=..U.u7...t21..D|000000b0 04 40 88 44 ff 89 44 02 c7 04 10 00 66 8b 1e 5c |.@.D..D.....f..\|000000c0 7c 66 89 5c 08 66 8b 1e 60 7c 66 89 5c 0c c7 44 ||f.\.f..`|f.\..D|000000d0 06 00 70 b4 42 cd 13 72 05 bb 00 70 eb 73 b4 08 |..p.B..r...p.s..|000000e0 cd 13 73 0a f6 c2 80 0f 84 d8 00 e9 82 00 66 0f |..s...........f.|000000f0 b6 c6 88 64 ff 40 66 89 44 04 0f b6 d1 c1 e2 02 |...d.@f.D.......|00000100 88 e8 88 f4 40 89 44 08 0f b6 c2 c0 e8 02 66 89 |....@.D.......f.|00000110 04 66 a1 60 7c 66 09 c0 75 4e 66 a1 5c 7c 66 31 |.f.`|f..uNf.\|f1|00000120 d2 66 f7 34 88 d1 31 d2 66 f7 74 04 3b 44 08 7d |.f.4..1.f.t.;D.}|00000130 37 fe c1 88 c5 30 c0 c1 e8 02 08 c1 88 d0 5a 88 |7....0........Z.|00000140 c6 bb 00 70 8e c3 31 db b8 01 02 cd 13 72 29 8c |...p..1......r).|00000150 c3 60 1e b9 00 01 8e db 31 f6 bf 00 80 8e c6 fc |.`......1.......|00000160 f3 a5 1f 61 ff 26 5a 7c be 8e 7d e8 44 00 eb 0e |...a.&Z|..}.D...|00000170 be 93 7d e8 3c 00 eb 06 be 9d 7d e8 34 00 be a2 |..}.<.....}.4...|00000180 7d e8 2e 00 cd 18 eb fe 47 52 55 42 20 00 47 65 |}.......GRUB .Ge|00000190 6f 6d 00 48 61 72 64 20 44 69 73 6b 00 52 65 61 |om.Hard Disk.Rea|000001a0 64 00 20 45 72 72 6f 72 0d 0a 00 bb 01 00 b4 0e |d. Error........|000001b0 cd 10 ac 3c 00 75 f4 c3 14 17 92 fa e1 b5 80 01 |...<.u..........|000001c0 01 00 83 fe ff ff 3f 00 00 00 b7 d1 2e 09 00 fe |......?.........|000001d0 ff ff 05 fe ff ff f6 d1 2e 09 f6 ad 5b 00 00 00 |............[...|000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|00000200
dd if=/dev/zero of=/dev/xxx bs=512 count=1
ubuntu@ubuntu:~$ grub-install --recheck /dev/sdagrub-mkdevicemap: error: cannot open /boot/grub/device.mapubuntu@ubuntu:~$ sudo mount /dev/sda1 /mntubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/devubuntu@ubuntu:~$ sudo chroot /mntroot@ubuntu:/# nano /etc/default/grubroot@ubuntu:/# update-grubGenerating grub.cfg ...Found linux image: /boot/vmlinuz-2.6.31-14-genericFound initrd image: /boot/initrd.img-2.6.31-14-genericFound memtest86+ image: /boot/memtest86+.bingrep: /proc/mounts: No such file or directoryCannot find list of partitions!doneroot@ubuntu:/# grub-install --recheck /dev/sdaInstallation 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'.(hd0) /dev/sdaroot@ubuntu:/# sudo umount /mnt/devsudo umount /mntsudo: unable to resolve host ubuntuumount: /mnt/dev nelze najítroot@ubuntu:/# sudo umount /mntsudo: unable to resolve host ubuntuumount: /mnt není připojeno
http://ubuntuforums.org/showthread.php?t=1195275