| View previous topic :: View next topic |
| Author |
Message |
who is Jackson n00b

Joined: 10 Feb 2012 Posts: 19
|
Posted: Mon Feb 20, 2012 11:15 am Post subject: [SOLVED]How to boot from a mobile disk? |
|
|
I tried to follow the official handbook to install gentoo in my mobile disk ,but it always failed to bootloaded, sometimes it would go into black screen,and sometimes it would cause kernel panic .I suspected that there were something wrong with my kernel configuration . But in fact ,the configuration worked in the vmplayer~Anyone would like give me a hand?
Last edited by who is Jackson on Fri Feb 24, 2012 1:32 pm; edited 1 time in total |
|
| Back to top |
|
 |
smartass Tux's lil' helper

Joined: 04 Jul 2011 Posts: 142 Location: right behind you ... (you did turn around, didn't you?)
|
Posted: Mon Feb 20, 2012 5:06 pm Post subject: |
|
|
A common mistake is to try to boot from a partition with filesystem X, while the module for the X filesystem is on that partition. Your partition setup would shed some light on your situation.
If you're bootin with grub 0.97, make sure it's a filesystem that it won't choke on. |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29952 Location: 56N 3W
|
Posted: Mon Feb 20, 2012 7:32 pm Post subject: |
|
|
who is Jackson,
The hardware driver for your mobile disk USB?
must be built into the kernel.
Further, the kernel tries to mount root before it initalises the USB subsystem. This is a very bad thing if your root filesystem is on USB.
Add rootdelay=7 to your kernel line in grub.conf. This makes the kernel wait for 7 seconds before attempting to mount root, in this time the USB subsystem has been started.
Play with numbers if you wish to discover what works for you. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
who is Jackson n00b

Joined: 10 Feb 2012 Posts: 19
|
Posted: Tue Feb 21, 2012 7:14 am Post subject: |
|
|
| Thanks all!I will have a try tonight~ |
|
| Back to top |
|
 |
who is Jackson n00b

Joined: 10 Feb 2012 Posts: 19
|
Posted: Fri Feb 24, 2012 1:30 pm Post subject: |
|
|
I fixed this problem by using "genkernel --no-clean --no-mrproper --disklabel ramdisk",and then added a line in the grub.conf like this :"initrd /boot/initramfs-genkernel-x86_64-3.2.1-gentoo-r2"~~  |
|
| Back to top |
|
 |
rootor n00b


Joined: 05 Dec 2011 Posts: 25
|
Posted: Sun Feb 26, 2012 1:29 pm Post subject: |
|
|
| I also want to have a try ... |
|
| Back to top |
|
 |
who is Jackson n00b

Joined: 10 Feb 2012 Posts: 19
|
Posted: Sun Feb 26, 2012 4:56 pm Post subject: |
|
|
rootor:
Good luck! |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29952 Location: 56N 3W
|
Posted: Sun Feb 26, 2012 6:30 pm Post subject: |
|
|
rootor,
genkernel is more usually a part of the problem than the solution.
Make your kernel the normal way but ensure that SCSI Disk, USB Storage and your USB chip set drivers are built into the kernel. Modules cannot work.
In your grub.conf add rootdelay=y to the kernel line.
Installing grub on USB media so you can boot from it later can be a challenge because the USB device mayl become /dev/sda when its used for booting but it won't be there when you need to install grub.
You won't know if this happens to you until you try _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
who is Jackson n00b

Joined: 10 Feb 2012 Posts: 19
|
Posted: Sun Mar 11, 2012 2:35 pm Post subject: |
|
|
NeddySeagoon
rootdelay=7 didn't work on my laptop,and it would course kernel panic without "initrd /boot/initramfs-!initrd-XXX "! |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29952 Location: 56N 3W
|
Posted: Sun Mar 11, 2012 8:57 pm Post subject: |
|
|
who is Jackson,
If you want to use an initrd, I don't know how you boot from USB. The problem is that the rootdelay=7 is swallowed up by delaying the mount of the initrd and it needs to be appled to real_root. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
who is Jackson n00b

Joined: 10 Feb 2012 Posts: 19
|
Posted: Mon Mar 12, 2012 4:45 am Post subject: |
|
|
Here is my grub.conf:
| Code: |
title iGentoo
uuid 58a29703-205e-4b82-9d25-c9c90fcffb3b
kernel /boot/gentoo pcie_aspm=force i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 acpi_backlight=vendor root=UUID=6d96b1df-fe97-4801-b439-c50cd530829f
initrd /boot/initramfs-genkernel-x86_64-3.2.1-gentoo-r2-ck1
|
I configed the kernel manually and used "genkernel --no-clean --no-mrproper --disklabel ramdisk" to obtain initrd~~ |
|
| Back to top |
|
 |
|