Gentoo Archives: gentoo-user

From: Mike Diehl <mdiehl@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem with new install
Date: Sat, 16 Oct 2010 08:08:48
Message-Id: 201010160106.25397.mdiehl@diehlnet.com
In Reply to: Re: [gentoo-user] Problem with new install by Florian Philipp
1 Well, I got it to boot. Now that it's up, I can see what the problem was/is.
2 There are no disk device files in /dev.
3
4 I created the appropriate nodes and things went much better.
5
6 The problem was that CONFIG_SYSFS_DEPRECATED_V2 was on
7
8 I just closed up the chassis and it will ship in the morning.
9
10 Thank you for your help!
11
12 Mike.
13
14 On Friday 15 October 2010 3:02:27 pm Florian Philipp wrote:
15 > Am 15.10.2010 21:23, schrieb Mike Diehl:
16 > > On Friday 15 October 2010 11:40:34 am Florian Philipp wrote:
17 > >> Am 15.10.2010 19:29, schrieb Mike Diehl:
18 > >>> Hi all.
19 > >>>
20 > >>> I've never had this much trouble with a server before, but I've been
21 > >>> pulling my hair out.
22 > >>>
23 > >>> The install seemed to go well, but when I rebooted it from it's own
24 > >>> hard drive, it fails. fsck claims that it can't open /dev/sda3 or
25 > >>> that the superblock doesn't describe a valid ext2 filesystem.
26 > >>
27 > >> *All* of the drivers could be too much. There is a generic driver which
28 > >> can prevent the "right" driver from taking over. In that case you end up
29 > >> with a /dev/hda node and no DMA. Try to deactivate "Generic ATA support"
30 > >> = CONFIG_ATA_GENERIC and "generic/default IDE chipset support" =
31 > >> CONFIG_IDE_GENERIC.
32 > >> I think it is the second option that causes that problem. However, you
33 > >> won't need the first option, either.
34 > >
35 > > I tried this, first without success. I then ran through all combinations
36 > > of sda3, sdb3, hda3, hdb3 in /etc/fstab. This didn't work.
37 > >
38 > >> Instead of your brute-force "yes to all" approach, newer kernels also
39 > >> support `make localyesconfig` which takes all modules currently used in
40 > >> the running kernel and compiles them into the new kernel. It is very
41 > >> helpful when you already have a good but generic kernel like the one on
42 > >> your live CD.
43 > >
44 > > I tried this, next. At least now, I believe I have a viable kernel. But
45 > > it still didn't work.
46 > >
47 > >> If even that doesn't help, it might be possible that the device
48 > >> numbering has changed and your hard disk is detected as /dev/sdb or so.
49 > >> Try mounting it by UUID (google for it, please).
50 > >
51 > > I tried this. Only now, fsck.ext2 tells me that it can't resolve the
52 > > UUID.
53 > >
54 > > Here is the new fstab:
55 > > /dev/sda1 /boot ext2 noauto,noatime 1 2
56 > >
57 > > UUID=ba7511dd-a5f9-48d8-8102-cf71c08a0c7b / ext2 noatime
58 > > 0 1
59 > >
60 > > /dev/sda2 none swap sw 0 0
61 > > /dev/cdrom /mnt/cdrom auto noauto,ro 0
62 > > 0
63 > >
64 > > At this point, I'm going to move the drive to a different port on the
65 > > SATA chain; shouldn't change anything, but I'm running out of ideas.
66 > > I'll also check the BIOS for anything stupid-obvious.
67 > >
68 > > So, I guess I'm still stuck!
69 >
70 > Hmm, sounds like a serious problem. I suggest you try to get into an
71 > early stage during boot and try to move forward from there. Try to add
72 > '1' to the parameters in order to get into single-user mode. You can
73 > also try 'init=/bin/bash'.
74 >
75 > There are lots of other options you can try. For a long time, 'noapic'
76 > (not 'noapci') was my first candidate for odd boot issues. Take a look
77 > at /usr/sr/linux/Documentation/kernel-parameters.txt for more options.
78 >
79 > Also, which kernel sources are you using and which live CD (with which
80 > kernel version)? Is there a specific reason why you use ext2 for root?
81 > What kind of system do you run, anyway? And, just by chance, you are not
82 > using an extremely large (>1TB) drive which might happen to have 4kB
83 > blocks instead of 512 B?
84 >
85 > Regards,
86 > Florian Philipp
87
88 --
89
90 Take care and have fun,
91 Mike Diehl.