PDA

View Full Version : Synaptic Package Manager error, cannot read from `/dev/sdb'



thewhiteraven
May 14th, 2010, 01:23 PM
I have the same problem with Synaptic and Update manager. When I do dpkg --configure -a, this is what I get:


jan@jan-laptop:~$ sudo dpkg --configure -a
Setting up linux-image-2.6.31-21-generic (2.6.31-21.59) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.31-21-generic
Running postinst hook script /usr/sbin/update-grub.
error: cannot read from `/dev/sdb'


Please help!

philinux
May 14th, 2010, 01:32 PM
Post moved to own thread.

drs305
May 14th, 2010, 01:40 PM
thewhiteraven,

Grub2 is having a problem updating. Does your install include OS's on different partitions or G2 and your OS on different partitions? If not, it could be as simple as looking at (and removing references to sdb) from /boot/grub/device.map.

You might also check the error messages by running update-grub by itself:

sudo update-grub

Otherwise it may be easiest to just take a look at your system by using meierfra's bootinfo script:
http://bootinfoscript.sourceforge.net/

fher98
October 19th, 2010, 11:39 PM
Same problem here when grub tries to update... In /boot/grub/device.map I only have

(hd0) /dev/disk/by-id/ata-SAMSUNG_HD753LJ_S13UJ90S510383
(hd1) /dev/disk/by-id/ata-SAMSUNG_HD753LJ_S13UJ90S510378

drs305
October 19th, 2010, 11:45 PM
Same problem here when grub tries to update... In /boot/grub/device.map I only have

(hd0) /dev/disk/by-id/ata-SAMSUNG_HD753LJ_S13UJ90S510383
(hd1) /dev/disk/by-id/ata-SAMSUNG_HD753LJ_S13UJ90S510378

Try refreshing the device map with this command:

sudo grub-mkdevicemap

You normally don't even need a device.map file, which is stored in /boot/grub.

fher98
October 21st, 2010, 06:10 PM
Thanks for your reply, I executed grub-mkdevicemap, then

:~# update-grub
Generating grub.cfg ...
...
Found initrd image: /boot/initrd.img-2.6.26-2-amd64
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error
/dev/sdb1: read failed after 0 of 2048 at 0: Input/output error
/dev/sdb2: read failed after 0 of 2048 at 0: Input/output error
/dev/sdb3: read failed after 0 of 4096 at 0: Input/output error
No volume groups found

drs305
October 21st, 2010, 06:50 PM
Thanks for your reply, I executed grub-mkdevicemap, then

:~# update-grub
Generating grub.cfg ...
...
Found initrd image: /boot/initrd.img-2.6.26-2-amd64
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error
/dev/sdb1: read failed after 0 of 2048 at 0: Input/output error
/dev/sdb2: read failed after 0 of 2048 at 0: Input/output error
/dev/sdb3: read failed after 0 of 4096 at 0: Input/output error
No volume groups found

fher98,

Have you recently moved drives around, added drives, etc? The only references to this type of issue I could readily find recommended refreshing the initrd image.


man mkinitramfs