Jump to content

How to install Mandriva 2007.1 on an USB-HDD?


Guest MVP
 Share

Recommended Posts

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 :lol2:

 

Hope it helps....

 

Cheers...

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

It works now. Thank you very much!

 

Glad to hear that!!!

Welcome to the Linux world. :wall:

 

Cheers.....

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...