- Code: Select all
error: fd0 read error
debian squeeze install, two hard drives, one partition on each which make up a software raid1.
error: fd0 read errorsu
grub-install /dev/sda
update-grubRichard M. Stallman wrote:We can't take the future of freedom for granted. Don't take it for granted! If you want to keep your freedom, you must be prepared for it.
su
aptitude update
aptitude upgradeRichard M. Stallman wrote:We can't take the future of freedom for granted. Don't take it for granted! If you want to keep your freedom, you must be prepared for it.
_stefanos_ wrote:I have GNU/Linux Debian 6.0.1a DVD and run in Rescue Mode, but it would not let me mount anything. BusyBox had limited commands and couldn't run the normal procedure so I may "chroot" my current system and fix it.
_stefanos_ wrote:With Knoppix 6.4 though I can run the same procedure and get successful results; nevertheless, the system returns to grub prompt which means something went wrong upon updating.
_stefanos_ wrote:Is there a way to repair the current system without reinstalling everything from scratch? Once upon a time when I was a FreeBSD user I could self-host another version of FreeBSD and upon success I would merge guest with host without losing valuable data from server; it was a brilliant feature.
Do you think I could do so with Debian?
Richard M. Stallman wrote:We can't take the future of freedom for granted. Don't take it for granted! If you want to keep your freedom, you must be prepared for it.
_stefanos_ wrote:I have tried your way...and unfortunately it didn't work.
Silly me I did not chroot to /target to have all commands to my availability. I was expecting to have all these commands without doing so...I have even tried dpkg-reconfigure grub-pc and still the same. I am run out of options or ideas.
Where do you think the error might be and causing the error: fd0 read error? Do you think that a package might got corrupted somewhere?
Richard M. Stallman wrote:We can't take the future of freedom for granted. Don't take it for granted! If you want to keep your freedom, you must be prepared for it.
_stefanos_ wrote:No, it does not say "loading..." or something like that. It goes to Welcome to GRUB! and takes me to the grub prompt.
I have disabled my floppy from BIOS and even deleted the --no-floppy lines from grub.cfg. With this option it does not delay for 15 seconds; it goes straight to grub prompt.
Right now I am backing up my system and try a few more times to sort things out. I really don't know what else to do. If you know a way to repair my system without reinstalling it from scratch, I would be grateful to you.
Richard M. Stallman wrote:We can't take the future of freedom for granted. Don't take it for granted! If you want to keep your freedom, you must be prepared for it.
lsset root=(hd0,1)
ls /
ls /boot/set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 ro
initrd /initrd.img
bootfdisk -lrsync -avh --progress /dev/sda1/ /dev/DesktopPC-root/boot/dd if=/dev/zero of=/dev/sda1 bs=446 count=1apt-get install lvm2vgscanReading all physical volumes. This may take a while...
Found volume group "DesktopPC" using metadata type lvm2
lvscan
inactive '/dev/DesktopPC/root' [295.32 GiB] inherit
inactive '/dev/DesktopPC/swap_1' [2.53 GiB] inherit
vgchange -aylvscan
ACTIVE '/dev/DesktopPC/root' [295.32 GiB] inherit
ACTIVE '/dev/DesktopPC/swap_1' [2.53 GiB] inherit
mount -t ext3 /dev/DesktopPC-root /mnt
mount --bind /dev /mnt/dev
mount -t proc none /mnt/proc
mount -t sysfs /sys /mnt/sys
chroot /mnt# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/DesktopPC-root / ext3 errors=remount-ro 0 1
#/dev/sda1 /boot ext2 defaults 0 2
#UUID=1a602b40-cc39-4cea-9894-d28ff3451d80 /boot ext2 defaults 0 2
/dev/mapper/DesktopPC-swap_1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0dpkg-reconfigure grub-pcfailed (code 8)_stefanos_ wrote:Upon using a LiveCD, I saw that /dev/sda1 and /dev/DesktopPC-root contained both of them a grub folder!
_stefanos_ wrote:Now it's about time to edit /dev/fstab
_stefanos_ wrote:/dev/mapper/DesktopPC-root / ext3 errors=remount-ro 0 1
_stefanos_ wrote:/dev/mapper/DesktopPC-swap_1 none swap sw 0 0
And so, your update-grub only changed the contents of /boot in /dev/DesktopPC-root (in LVM?).
Grub2 can recognize LVM and RAID. You could include correct modules for LVM and RAID into core.img of grub2.
Installing grub2 correctly is better.
GRUB_PRELOAD_MODULES=lvmTypo. /etc/fstab
I am curious.
Is your Grub2 menu, which is shown just after booting, updated after your kernel is updated?
(Usually there is no problem. But your case is not usual.)
Please run boot info script and submit the result if you care.
_stefanos_ wrote:Please run boot info script and submit the result if you care.
You mean you want my grub.cfg as it has been generated by dpkg-reconfigure grub-pc? If yes, let me know by tonight when I will get back home to post it here for you.
Users browsing this forum: stevesr0 and 6 guests