booting Fedora 5 from USB Harddrive probs
|
Author | Content |
---|---|
ticro Oct 04, 2006 6:46 AM EDT |
I've been trying to install Fedora core 5 on my usb hardrive for two weeks. I was actually able to make it work once using linux rescue so I know my hardware config is good. Then I tried again and again using the same method as described below. Everytime after the startup would hang at grub loading stage 2. Partitioned sda1 NTFS, sda2 boot, sda3 root, sda5 swap, sda6 home. Since I partitioned sda1 for NTFS does grub need to have hda0,1 changed? Boot from CD, Linux Rescue mode. Once I was in the shell, after the usb driver was installed, I manually mounted the partitions. mount /dev/sda3 /mnt/source mount /dev/sda2 /mnt/source/boot chroot /mnt/source I could see all partitions, directories, and files. I removed the initrd-2.6.15-1.2054_FC5.img from grub and made new initrd*.img mkinitrd --preload ehci-hcd --preload usb-storage --preload scsi_mod --preload sd_mod /boot/initrd-2.6.15-1.2054_FC5.img 2.6.15-1.2054_FC5 I used v to view grub.conf and saw that the initrd*.img was there. However, when the mkinitrd was executed I got error messages so I don't think it was made right. The messages are as follows: error opening /sys/block: no such file or directory followed by: cp: preserving times for /tmp/initrd.INF949/lib/ehci-hcd.ko : Function not implemented followed by the same message for each of the other drivers that were in the mkinitrd. I started to use this how to: http://simonf.com/usb/#fc3 by Simon Ilyushchenko which claims to work but I'm a newbie and can't figure out where or how to edit the script that runs before the root partition is mounted. What is #!/bin/bash? The new script is edited to load the usb drivers. Any help would be greatly appreciated! |
hkwint Oct 05, 2006 2:00 AM EDT |
I advise you to
-Read about grub naming convention, here:
http://www.gnu.org/software/grub/manual/html_node/Naming-con...
I'm doubting, but I believe hd0,0 is sda1. -Recheck grub.conf; especially kernel parameters (Believe the append= option) -Read (only read!) "Checking/editing the Initramfs" from the Gentoo-wiki http://gentoo-wiki.com/HOWTO_build_a_LiveCD_from_scratch#Che... Just to know better what you are doing. I don't understand if sda* are partitions on your USB drive only used for Linux? If so, I strongly discourage you to use NTFS on sda1; you should use ext2/3 instead. I doubt grub has a stage2 NTFS module, though I'm not sure (and can't check because I'm working with Win at the moment) #!/bin/bash is the beginning of a script that will be executed in bash. Also you might like to go to Linuxquestions.org for more info, since I only know Gentoo (and am only a simple editor). Linuxquestions has topic-specific help-forums. |
You cannot post until you login.