Will Mandriva 2007 install on a USB HDD?
#1
Posted 18 April 2007 - 03:17 AM
#2
Posted 18 April 2007 - 04:09 AM
You'll likely need to install the bootloader onto the USB drive, and then have a BIOS that supports booting from a USB device so that you can start the OS. I do not know if you can have GRUB or LILO point to a USB device with it installed on an internal hard drive.


{Gu}
#3
Posted 01 May 2007 - 05:41 PM
i wish i could rememebr what the exact issue with itwas, but its been a few months.
HOWEVER i do remember that it could have been related to the MBR/ file format?
sorry the details arent clear however for some information on a GREAT version of mandriva that WILL install to USB check out www.mandrivaclub.nl and look at mcnl
its a VERY stripped down version, but the scripts to do what you want have been included
#4
Posted 15 May 2007 - 01:39 PM
mindwave, on May 1 2007, 01:41 PM, said:
i wish i could rememebr what the exact issue with itwas, but its been a few months.
HOWEVER i do remember that it could have been related to the MBR/ file format?
sorry the details arent clear however for some information on a GREAT version of mandriva that WILL install to USB check out www.mandrivaclub.nl and look at mcnl
its a VERY stripped down version, but the scripts to do what you want have been included
mcnl is ok. But the issue of booting mandriva from an USB external drive starts from the initrd. the initial ramdisk mounted at boot, which loads the modules. It seems that the default initrd doesn't preloads usb and scsi emulation kernel modules, needed to boot the external drive. The computer does its job by booting the drive, but the kernel cannot mount the root partition because it doesn't have the modules ready. At this moment I'm experimenting with a new initrd. If I succeed I will give you all the info needed to. bye
Victor Rossetti, MD
Caracas , Venezuela
#5
Posted 15 May 2007 - 03:24 PM
http://www-128.ibm.com/developerworks/linu...lnxw02aFireBoot
#6
Posted 16 May 2007 - 07:18 AM
I hope you have success with this, since there are a lot of us who would like to do this but don't have the programming abilities.
Cheers. John.
AMD Athlon-64-X2 6400+ DualCore Processor, Gigabyte MA790Z-DS4 MainBoard, Gigabyte Nvidia-GeForce-9600-GT VideoCard, 4Gb Cosair Memory, 2 x WD SATA-II 320GB 16mb HDDs, LG Sata DVD-R/RW Burner, LeadTek WinFast-DTV2000-H Video Capture Card, LG 24" LCD HDMI Monitor, Hewlitt-Packard PhotoSmart B109a-m Printer, Epson Perfection 2450 Photo Scanner, APC BackUPS-CS-650 UPS.
JOHN. (75yrs, Young)
Registered LINUX user #318452
#7
Posted 17 May 2007 - 12:33 PM
I just tried installing 2007 Spring on an external USB hard drive, and so far haven't been successful. I used One, and told it to install itself to /dev/sda, which I was able to repartition with the "Custom partitions" option. So far so good, I selected a /, a /swap and a /home, and also an extra ext3 partition for general use and a little fat32 partition for legacy systems. Partitioning went well, installation seemed to go ok, and I selected a graphical grub on /dev/sda. I did think about skipping this step and just having an entry on my internal drive's boot configuration, but I wanted to be able to boot from this external drive on other machines too if possible, so I selected /dev/sda.
Anyway, I got as far as rebooting but it just froze on the grub screen, didn't even let me choose between linux and failsafe, just hung. So I tried the reinstall again, and this time selected a text lilo, also on /dev/sda. This time it didn't hang on boot, it let me select linux, tried to boot but only got so far before a kernel panic:
Unable to access resume device (/dev/sda5) ... Mounting root filesystem /dev/root ... (retrying a few times with different options) mount : error 6 mounting ext3 Switching to new root ... switchroot : mount failed : 22 Initrd finished Kernel panic - not syncing : Attempted to kill init!
I thought it a bit odd that it was trying to resume from /dev/sda5 because according to the MCC (on my already-installed system) that's the swap partition on the external drive. I'm presuming it put something there to continue the install process, like setting up users and passwords etc. I've no idea why it goes sda1 (/), sda5 (swap), sda6 (home), sda7 (backups), sda8 (legacy) or where sda2-4 are.
Confusingly, MCC (on my installed system) lists /dev/sda1 as type "vfat" and refuses to mount it, but I think this is because of my fstab entry for my USB stick which appears as /dev/sda1 when it's plugged in (which it isn't now). If I manually mount /dev/sda1 from the console then I can see the contents ok. And when I'm running One from the cd or booting from the external drive then it can't see my installed fstab so that can't affect things I guess.
So the upshot is that I can select the drive at boot, and it loads lilo ok from there, but then it fails to mount and panics. Maybe this is the same initrd problem you're talking about but I'm puzzled that something which is loaded from the external drive then can't see other things on the same external drive.
Any advice very welcome! :)
#8
Posted 17 May 2007 - 03:56 PM
Booting Debian GNU/Linux, kernel 2.6.18-4-686' root (hd1,0) Filesystem type unknown, partition type 0xde Kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/sda1 ro Error 17 : Cannot mount selected partition Press any key to continue...and then it goes back to the grub menu.
Interestingly, Debian's grub menu includes an entry for Mandriva on my internal hard drive, but even selecting that doesn't work ("file not found"). So something's screwy. Booting Mandriva from my internal drive, I can mount the external drive as before and see all the root partition no problem.
#9
Posted 17 May 2007 - 07:33 PM
Note also in the ibm article they further discuss the timing issues and the need to rescan the scsi bus. That dealt with 2.4 kernels using devfs. It's not applicable to 2.6 kernels using udev, but there may be similar issues or not. You would have to rebuild your initrd and see if it worked to find out for sure.
#10
Posted 17 May 2007 - 07:59 PM
For me it looks like a problem of the sdX devices on your system.
When you try to boot from /dev/sda(x), and you installed the bootloader to /dev/sda, then:
* you must change your BIOS to boot from this device, that is from usb
* on your system no other sdX devices should confuse the set up. For example: if you have an internal sata disk, this would be the sda device, or if you have a card reader etc. When you are booting, sometimes it is a timing issue which sdX devices gets the first one.
Also, it depends on which bootloader config is read, the one on your internal hard disk or the external.
When you start the installation it is crucial that you are aware of all sdX devices, in particular when you are installing from the One Live version. (it is diffrent if you are installing from the DVD version). Also, on the live version it is important if you plug in the external disk after you have booted successfully or before you start the live cd.
#11
Posted 17 May 2007 - 08:45 PM
anna, on May 17 2007, 09:59 PM, said:
No, I didn't change my BIOS settings. When I boot, I can press F12 and I can choose to boot from my hard drive, from my CD drive, from a USB device, or some other options. If I don't press anything, it goes ahead and boots to my hard drive, where lilo is installed. So when I was trying to boot from my external USB hard drive, I just pressed F12 and selected the USB device. At that point it found grub (or lilo) on the external drive.
Quote
Quote
I also tried adding /dev/sda1 as an extra option to my internal lilo.conf, but that also fails with a similar error message.
#12
Posted 17 May 2007 - 09:19 PM
End of rant- please go on talking, and sorry for the hijack.
This post has been edited by scarecrow: 17 May 2007 - 09:23 PM
#13
Posted 17 May 2007 - 10:33 PM
Also, no other sdX devices. So no confusing :D
You could try to extract the created initrd and try to found out if all modules are included.
My experience is that the last two editions of MDV install fine on a USB drive and do include all driv ers in the initrd, but I did not use the One live cd. But then, you should not have a problem with debian, I guess.
Quote
On some PC's that is an issue, at least I've seen it the last years with MCNLive usb booting.
Can you try to boot from the external drive on a different computer?
#14
Posted 20 May 2007 - 08:11 AM
anna, on May 18 2007, 12:33 AM, said:
I tried the same external drive on two other machines, one a desktop and the other another laptop (same make, different model). Both offer the USB device as a boot option, both find grub and load the choice of boot options, both fail to mount the /dev/sda1 partition and give the same error message as on my machine.
As to the suggestion to "extract the created initrd and try to found out if all modules are included.", I have absolutely no clue where to start trying that. I think that unless someone can say "yes I have installed 2007 Spring on to my external USB hard drive and it works", then it seems like it doesn't. At least, not when installing from One.
#15
Posted 20 May 2007 - 11:01 AM
neddie, on May 20 2007, 10:11 AM, said:
Copy the /boot/initrd-2.6.17-blah.img from your usb drive somewhere in a dir on your home/user dir.
It is a gzip compressed archive.
Right click on the file: extract ...
Then in a terminal:
cpio -i -d -H newc -F initrd-2.6.17-blah.img --no-absolute-filenames
You'll get two files: bootsplash and init and some directories, one called: /lib
---> here you find the included kernel modules
And the text file 'init' is also interesting :D
This post has been edited by anna: 20 May 2007 - 11:01 AM

Help
MultiQuote









