Guest MVP Posted June 16, 2007 Report Share Posted June 16, 2007 How to install Mandriva 2007.1 on an USB-HDD? I tried it but after installation it doesn't boot. Quote Link to comment Share on other sites More sharing options...
wardevil Posted June 16, 2007 Report Share Posted June 16, 2007 How to install Mandriva 2007.1 on an USB-HDD? I tried it but after installation it doesn't boot. If it doesnt boot you need to: a) have a linux system installed and running b ) plug the usb drive where you installed the unbootable system c) mount the drive say in /mnt/test --> mkdir /mnt/test --> mount /dev/sda1 /mnt/test -o rw assuming you usb drive is sda d) chroot /mnt/test e) mkrescue --iso --size HD --install menu --kernel /boot/vmlinuz this last command will create a iso file wich must be burned in to a cd. All this must be done as root in a konsole. For booting the usb drive you must have to boot from the cd first,for loading the kernel,then it automaticaly loads the usb modules for the usb drive and then mount it as a normal internal hd. I always make a boot cd to this since not all computers boot directly from usb....very handy this cd Hope it helps.... Cheers... Quote Link to comment Share on other sites More sharing options...
Guest MVP Posted June 16, 2007 Report Share Posted June 16, 2007 It did not work. When booting I got the error: Kernel panic - not syncing: Attempted to kill init! Quote Link to comment Share on other sites More sharing options...
wardevil Posted June 17, 2007 Report Share Posted June 17, 2007 Perhaps i missed something,you could try to append the root switch it would be something like this: mkrescue --iso --size HD --install menu --kernel /boot/vmlinuz --root /dev/sda1 Then again,you should check what the root device is in the fstab file... Mine is something like this: /dev/sda6 / ext3 defaults 1 1 so insteed of sda1 my root device is sda6 so it would something like this for my system: mkrescue --iso --size HD --install menu --kernel /boot/vmlinuz --root /dev/sda6 Of course until you get it right you should burn those iso images in a cdrw or a dvdrw. Dont forget that you must be chrooted to the usb drive system in order to issue such commands. Cheers.... Quote Link to comment Share on other sites More sharing options...
Guest MVP Posted June 17, 2007 Report Share Posted June 17, 2007 I tried it, but I am still getting the same error. Quote Link to comment Share on other sites More sharing options...
wardevil Posted June 17, 2007 Report Share Posted June 17, 2007 I tried it, but I am still getting the same error. You may need to make a new initrd image. Dont forget to chroot to the usb hard drive first. /sbin/mkinitrd --preload usbcore /boot/initrd-2.6.17-13mdv_custom_1.img 2.6.17-13mdv just change the kernel version to your own since this is the default and i know there is a new version. mkrescue --iso --size HD --install menu --initrd /boot/initrd-2.6.17-13mdv_custom_1.img --kernel /boot/vmlinuz --root /dev/sda1 burn it and try again.... I know you must try a few times but systems tend to vary a lot it may work for some and for some it dont work. :D Cheers.... Quote Link to comment Share on other sites More sharing options...
Guest MVP Posted June 19, 2007 Report Share Posted June 19, 2007 It works now. Thank you very much! Quote Link to comment Share on other sites More sharing options...
wardevil Posted June 19, 2007 Report Share Posted June 19, 2007 It works now. Thank you very much! Glad to hear that!!! Welcome to the Linux world. Cheers..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.