Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Migrated rootfs to a new, booting gets stuck at USB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
shazow
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 176
Location: Canada, Ontario

PostPosted: Wed Jul 23, 2014 4:17 am    Post subject: [SOLVED] Migrated rootfs to a new, booting gets stuck at USB Reply with quote

I installed a new SSD and after some partitioning issues I finally got it to work. I used rsync to move most of the rootfs over, excluding things like /dev, /proc, etc of course. Grub2 boots just fine, gives me the correct options after I updated it, but half way through the booting—right after the USB stuff is wrapped up—it hangs.

Looks something like this... (taken from dmesg, so sans the timestamps in reality)
Code:

*snip* ...
[    4.467130] usb 6-2: Product: Generic USB Hub
[    4.467170] usb 6-2: Manufacturer:
[    4.473905] hub 6-2:1.0: USB hub found
[    4.475823] hub 6-2:1.0: 3 ports detected
[    4.842804] systemd-udevd[1632]: starting version 215
[    4.971316] usb 2-6.1: new high-speed USB device number 6 using ehci-pci
[    5.058563] usb 2-6.1: New USB device found, idVendor=1415, idProduct=2000
[    5.058567] usb 2-6.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.058570] usb 2-6.1: Product: USB Camera-B3.04.06.1
[    5.058573] usb 2-6.1: Manufacturer: OmniVision Technologies, Inc.
[    5.137829] usb 6-2.1: new full-speed USB device number 4 using uhci_hcd
[    5.268826] usb 6-2.1: New USB device found, idVendor=0dc6, idProduct=9801
[    5.268831] usb 6-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.268834] usb 6-2.1: Product: SCISSORS Keyboard + 2P Hub
[    5.268837] usb 6-2.1: Manufacturer:
[    5.277235] input:      SCISSORS Keyboard + 2P Hub as /devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2.1/6-2.1:1.0/0003:0DC6:9801.0005/input/input6
[    5.277303] hid-generic 0003:0DC6:9801.0005: input: USB HID v1.00 Keyboard [     SCISSORS Keyboard + 2P Hub] on usb-0000:00:1d.0-2.1/input0

Here it just hangs. I can scroll up/down using my keyboard but nothing else works, not even ctrl+alt+del.

When I boot from the old drive, what usually comes next is...
Code:

...
[    5.873799] nvidia: module license 'NVIDIA' taints kernel.
[    5.873801] Disabling lock debugging due to kernel taint
[    6.144748] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[    6.145142] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 0
[    6.145150] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  340.24  Wed Jul  2 14:24:20 PDT 2014
[    6.182113] gspca_main: ov534-2.14.0 probing 1415:2000
[    6.252831] usb 6-1: current rate 30465 is different from the runtime rate 96000
(Full dump from when it works here: http://pastebin.com/bg7LymQD, as far as I can tell all the parts before nvidia are the same.)

Since it hangs right before nvidia's tainting, it makes me think that it's related to nvidia. Any thoughts?

I tried chrooting into the new rootfs from the old rootfs (with the corresponding root dirs mount-bounded of course) and re-installed nvidia-drivers, but it didn't help.

Versions:
- nvidia-drivers 340.24
- gentoo-sources 3.15.6
- grub 2.02_beta2

Relevant grub.conf section:
Code:

        load_video
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd2,gpt2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  7458fa7d-7931-47b4-9c07-414fe6dbe007
        else
          search --no-floppy --fs-uuid --set=root 7458fa7d-7931-47b4-9c07-414fe6dbe007
        fi
        echo    'Loading Linux stable ...'
        linux   /boot/kernel-stable root=/dev/sdc2 ro
/dev/sdc is my new SSD drive. Changing root=/dev/sda5 boots the old rootfs without problems.

When I migrated to the SSD, I also switched to gpt (and grub accordingly). Not sure if this is related.

Relevant fstab:
Code:

/dev/sdc2      /      ext4      defaults,noatime,discard   0  1
/dev/sda5      /mnt/hdd   ext4      noatime      0 1
/mnt/hdd/var      /var      none      bind      0 0

I decided to keep /var on the old hard drive for now. /boot is part of the same rootfs partition (it was on a separate partition before).

Any ideas?

Thanks again in advance! :)


Last edited by shazow on Wed Jul 23, 2014 6:04 am; edited 3 times in total
Back to top
View user's profile Send private message
shazow
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 176
Location: Canada, Ontario

PostPosted: Wed Jul 23, 2014 4:27 am    Post subject: Reply with quote

Update: Looks like it's not entirely frozen. If I unplug/plug USB devices, this will get printed in the output. So it's still processing events. It's just that whatever is supposed to happen next is not happening.

Any idea what's missing? Is there any way to increase verbose/debugging output? I tried adding `verbose` to the `linux` boot line but it didn't do anything.
Back to top
View user's profile Send private message
the.root
Apprentice
Apprentice


Joined: 29 Apr 2007
Posts: 210
Location: -84.706059324915, -62.4843750666430

PostPosted: Wed Jul 23, 2014 4:38 am    Post subject: Reply with quote

I assume you created the /dev/, /sys, /proc directories with proper permissions?

It's been many years since i've tried a straight rsync copy, but if I recall correctly I had a similar issue of it hanging during boot. It was either my /dev wasnt there or some device in /dev wasnt there that needed to be - before udev would mount it. It probably doesn't apply, just figured I'd mention it. You can try copying over your old /dev to your new drive then giving it a go. I just booted off a liveusb and checked out my laptop root partition and /dev is populated even though it didn't boot to properly mount udev there. Also the stage3 tar contains /dev entries.

FYI Your pastebin link "has been removed".
_________________
Ps = (1.5 x 6 x .75) / {(4/3) (pi) [(31.039 x 10^15) (46.5 x 10^9)]^3}
Seems like a waste..
Back to top
View user's profile Send private message
shazow
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 176
Location: Canada, Ontario

PostPosted: Wed Jul 23, 2014 4:43 am    Post subject: Reply with quote

the.root wrote:
I assume you created the /dev/, /sys, /proc directories with proper permissions?

Great point. I double-checked and permissions are fine but it looks like I missed mkdir'ing /run altogether. Fixed now, will update what happens next time I reboot.

the.root wrote:
FYI Your pastebin link "has been removed".

Arg, the comma snuck into the URL. Fixed now.
Back to top
View user's profile Send private message
shazow
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 176
Location: Canada, Ontario

PostPosted: Wed Jul 23, 2014 4:46 am    Post subject: Reply with quote

Nope, fixing /run did not do the trick. :( Will continue messing with things.

Seeing a lot of forum posts saying "udev is broken for me with the new version", maybe worth trying to downgrade...
Back to top
View user's profile Send private message
the.root
Apprentice
Apprentice


Joined: 29 Apr 2007
Posts: 210
Location: -84.706059324915, -62.4843750666430

PostPosted: Wed Jul 23, 2014 4:48 am    Post subject: Reply with quote

Did you try copying the contents of your old /dev to your new /dev? I want to say thats what fixed it for me, hard to remember though. Or maybe using the /dev from a stage3 tarball or whatever else you have available.
_________________
Ps = (1.5 x 6 x .75) / {(4/3) (pi) [(31.039 x 10^15) (46.5 x 10^9)]^3}
Seems like a waste..
Back to top
View user's profile Send private message
shazow
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 176
Location: Canada, Ontario

PostPosted: Wed Jul 23, 2014 6:05 am    Post subject: Reply with quote

Aha, rsync'ing the contents of /dev totally did the trick, thank you kind the.root!

Marked as solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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