Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]How to boot from a mobile disk?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
who is Jackson
n00b
n00b


Joined: 10 Feb 2012
Posts: 19

PostPosted: Mon Feb 20, 2012 11:15 am    Post subject: [SOLVED]How to boot from a mobile disk? Reply with quote

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
View user's profile Send private message
smartass
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2011
Posts: 142
Location: right behind you ... (you did turn around, didn't you?)

PostPosted: Mon Feb 20, 2012 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29952
Location: 56N 3W

PostPosted: Mon Feb 20, 2012 7:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
who is Jackson
n00b
n00b


Joined: 10 Feb 2012
Posts: 19

PostPosted: Tue Feb 21, 2012 7:14 am    Post subject: Reply with quote

Thanks all!I will have a try tonight~
Back to top
View user's profile Send private message
who is Jackson
n00b
n00b


Joined: 10 Feb 2012
Posts: 19

PostPosted: Fri Feb 24, 2012 1:30 pm    Post subject: Reply with quote

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"~~ :D
Back to top
View user's profile Send private message
rootor
n00b
n00b


Joined: 05 Dec 2011
Posts: 25

PostPosted: Sun Feb 26, 2012 1:29 pm    Post subject: Reply with quote

I also want to have a try ...
Back to top
View user's profile Send private message
who is Jackson
n00b
n00b


Joined: 10 Feb 2012
Posts: 19

PostPosted: Sun Feb 26, 2012 4:56 pm    Post subject: Reply with quote

rootor:
Good luck!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29952
Location: 56N 3W

PostPosted: Sun Feb 26, 2012 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
who is Jackson
n00b
n00b


Joined: 10 Feb 2012
Posts: 19

PostPosted: Sun Mar 11, 2012 2:35 pm    Post subject: Reply with quote

NeddySeagoon
rootdelay=7 didn't work on my laptop,and it would course kernel panic without "initrd /boot/initramfs-!initrd-XXX "!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29952
Location: 56N 3W

PostPosted: Sun Mar 11, 2012 8:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
who is Jackson
n00b
n00b


Joined: 10 Feb 2012
Posts: 19

PostPosted: Mon Mar 12, 2012 4:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum