Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Netmount does not start [resolved]
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
js-x.com
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 78
Location: Dallas, TX (USA)

PostPosted: Sun Jun 05, 2005 7:41 pm    Post subject: Netmount does not start [resolved] Reply with quote

I've been through the install 2 times now:
- first time I didn't set up the hard drives for raid as i was installing :oops:,
- second time I set up the raid levels on the 'fdisk' step.

When I rebooted, the message came up:
"Disk boot failure, insert system disk and press enter".

So I booted with the install cd. I noticed that the /dev/md0 {1 and 2} did not appear.

Is this install toast?

The grub-install would not work "/dev/md0: not found or not a block device", so i did the manual method:
> grub
find /boot/grub/stage1
{listed all 4 harddrives - as i set up boot for raid level 1 on for disks}
device (hd0) /dev/sda
root (hd0,0)
setup (hdo)

This seemed to have worked.

Any hints on where I went wrong and if I can resurect the install - or do I need to start over?

Thanks for any pointers.

Added/Edited:
Edied 2nd time - forgot to list modprobe raid5
Here is blow by blow install steps
Quote:

> net-setup eth0
{follow menu/instructions}
>modprobe raid5
>fdisk /dev/sda {repeat for /dev/sdb /dev/sdc and /dev/sdd}
d/1/ {"/" denotes enter}
n/p////+32M/t/1/fd/
n/p/2//+512M/t/2/fd/
n/p/3///t/3/fd/
w/
>mknod /dev/md0 b 9 0
>mknod /dev/md1 b 9 1
>mknod /dev/md2 b 9 2
>mdadm --create --verbose /dev/md0 --level=1 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
>mdadm --create --verbose /dev/md1 --level=5 --raid-devices=4 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2
>mdadm --create --verbose /dev/md2 --level=5 --raid-devices=4 /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3
>mke2fs /dev/md0
>mke2fs -j /dev/md2
>mkswap /dev/md1
>mount /dev/md2 /mnt/gentoo
>mkdir /mnt/gentoo/boot
>mount /dev/md0 /mnt/gentoo/boot
>date {to see the date}
>date MMDDhhmmYYYY {to set the date}
>cd /mnt/gentoo
>links2 http://www.gentoo.org/main/en/mirrors.xml {releases/amd64/2005.0/stages -- "d"ownload}
>tar -xjpf stage*.tar.bz2
>cd /mnt/gentoo
>links2 http://www.gentoo.org/main/en/mirrors.xml {snapshots/portage - find latest -- "d"ownload}
>tar -xjf /mnt/gentoo/portage*tar.bz2 -C /mnt/gentoo/usr {uppercase C}
>nano -w /mnt/gentoo/etc/make.conf
CHOST="x86_64-pc-linux-gnu"
FLAGS="-march=k8 -pipe -O2"
MAKEOPTS="-j2"
>mirrorselect -i -o >> /mnt/gentoo/etc/make.conf {select 1 or 2 -- http worked better than ftp for me}
>mirrorselect -i -r -o >> /mnt/gentoo/etc/make.conf {choose 1}
>cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
>mount -t proc none /mnt/gentoo/proc
>chroot /mnt/gentoo /bin/bash
>env_update
>source /etc/profile
>emerge --sync --quiet
>nano -w /etc/make.conf
USE="-gtk -gnome gt kde dvd also cdr"

::::STAGE1->2::::

>cd /usr/portage
>scripts/bootstrap.sh
>emerge --emptytree system
>ln -sf /usr/share/zoneinfo/US/Central /etc/local/time
>emerge gentoo-sources
>ls -l /usr/src/linux {linux-2.6.11-gentoo-r7}
>emerge genkernel
>genkernel all
> ls /boot/kernel* /boot/initrd* {/boot/*-2.6.11-gentoo-r7 for both}
>emerge coldplug
>rc-update add coldplug boot
>emerge hotplug
>rc-update add hotplug default
>nano -w /etc/fstab
/dev/md0 /boot ext2 defaults,noatime 1 2
/dev/md1 none swap sw 0 0
/dev/md2 / ext3 noatime 0 1
none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0

::::Network Info::::

>echo moe > /etc/hostname
>echo mygroup > /etc/dnsdomainname
>rc-update add domainname default
>nano -w /etc/conf.d/net
iface_eth0="dhcp"
>rc-update add net.eth0 default
>nano -w /etc/hosts
add "moe" and "moe.mygroup" to end of line with 127.0.0.1

::::System Info::::
>passwd {enter root password}
>echo "tts/0" >> /etc/securetty
>nano -w /etc/rc.conf {make edits}

::::System Tools::::

>emerge syslog-ng
>rc-update add syslog-ng default
>emerge vixie-cron
>rc-update add vixie-cron default
>emerge slocate

::::GRUB:::::

>emerge grub
>nano -w /boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Rocks 2.6.11
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/md2 udev
initrd /initrd-2.6.11-gentoo-r7

>cp /proc/mounts /etc/mtab
>grub-install --no-floppy /dev/md0 {gave error}
>grub
find /boot/grub/stage1
device (hd0) /dev/sda
root (hd0,0)
setup (hd0)

:::: PREPARE FOR FIRST BOOT::::

>exit
>cd
>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo
>reboot


**** ERROR *****

"BOOT DISK FAILURE, INSERT SYSTEM DISK AND PRESS ENTER"

_________________
Cheers.

--Mike Robb
http://js-x.com/
[Gentoo: AMD-64 3800, 2gigram, Raid-5 S-ATA + 1 IDE, Radeon-X300-SE(128MB PCIe)]
[Gentoo: P4 dual 3ghz, 1.5gigram, S-ATA + 1 IDE, GeForce 6200 (AGP 8x 128MB)]
[Smoothwall: P3, 256Mram, 1 IDE]


Last edited by js-x.com on Wed Jun 08, 2005 11:27 am; edited 5 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jun 05, 2005 8:10 pm    Post subject: Reply with quote

js-x.com,

Your install is probably OK but that
Quote:
Disk boot failure, insert system disk and press enter
comes from the BIOS, not grub. That suggests that the BIOS cannot boot your drives.
Grub does not understand raid at all and only works with BIOS detected drives. Its quite happpy on raid1. You can install it on both halfs if you wish. It will not work at all on raid0.

It looks like you have not set the bootable flag on your /boot partitions in fdisk. You can do that now.

/dev/mdX devices being missing seems to be a feature of udev for some users at the moment. Are you a udev user?
The workaround is to make them as static /dev/nodes and turn on the udev tarball, so they are preserved across boots.
_________________
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
js-x.com
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 78
Location: Dallas, TX (USA)

PostPosted: Sun Jun 05, 2005 8:27 pm    Post subject: Reply with quote

NeddySeagoon wrote:
js-x.com,

Your install is probably OK but that
Quote:
Disk boot failure, insert system disk and press enter
comes from the BIOS, not grub. That suggests that the BIOS cannot boot your drives.
Grub does not understand raid at all and only works with BIOS detected drives. Its quite happpy on raid1. You can install it on both halfs if you wish. It will not work at all on raid0.

It looks like you have not set the bootable flag on your /boot partitions in fdisk. You can do that now.

/dev/mdX devices being missing seems to be a feature of udev for some users at the moment. Are you a udev user?
The workaround is to make them as static /dev/nodes and turn on the udev tarball, so they are preserved across boots.


Thanks for the information. I can't tell if it is raining hard or I'm drowning :bow: :bow: :bow: (not sure if this smilie exists here on this server)

I don't know how to set the bootable flag. Going reading now....
Quote:

This page: http://www.freeos.com/articles/3935/ shows the option "a"
so I did an "fdisk /dev/sda {repeat for sdb,c,d} "a" for "1" then write.

after making these chagnes, and rebooting i still get the error:
"BOOT DISK FAILURE, INSERT SYSTEM DISK AND PRESS ENTER"


I don't know what udev is - I have it listed in the grub.conf file:
Quote:

kernel /kernel-2.6.11-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/md2 udev
I read this page: http://www.gentoo.org/doc/en/udev-guide.xml
it shows some good info :D
I did not "emerge udev", but I did for hotplug. So I'm guessing that I am using udev.



Should I install an IDE hard drive as hdb?
_________________
Cheers.

--Mike Robb
http://js-x.com/
[Gentoo: AMD-64 3800, 2gigram, Raid-5 S-ATA + 1 IDE, Radeon-X300-SE(128MB PCIe)]
[Gentoo: P4 dual 3ghz, 1.5gigram, S-ATA + 1 IDE, GeForce 6200 (AGP 8x 128MB)]
[Smoothwall: P3, 256Mram, 1 IDE]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jun 05, 2005 8:48 pm    Post subject: Reply with quote

js-x.com,

You need udev, hotplug and coldplug. Get your box up on the liveCD and check
Code:
rc-update -s
It should show coldplug in the boot runlevel and hotplug in the default runlevel.
Fix it if not.

If you are still getting
Quote:
Disk boot failure, insert system disk and press enter
then the BIOS is not seeing your drives.
Check the boot order. If its CD-ROM, Floppy, then nothing, its doomed to fail.
_________________
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
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sun Jun 05, 2005 9:32 pm    Post subject: Re: Installing with RAID Reply with quote

js-x.com wrote:
Here is blow by blow install steps
Quote:
>emerge genkernel
>genkernel all

This is probably going to cause problems once you get GRUB working properly.

Genkernel rarely chooses the correct options if your hardware includes anything fancy (like RAID or SATA).

js-x.com wrote:
**** ERROR *****

"BOOT DISK FAILURE, INSERT SYSTEM DISK AND PRESS ENTER"

Look at your other thread for a possible solution to this.
Back to top
View user's profile Send private message
js-x.com
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 78
Location: Dallas, TX (USA)

PostPosted: Tue Jun 07, 2005 12:08 am    Post subject: Reply with quote

As ya'll [my texas drawl there :D] have advised, I have tried again from scratch making adjustments.

I have altered the hard drive set up so that the BIOS can now detect and boot to the grubloader :D
- A side note is that the motherboard I am using has 8 SATA drive connections, and only the first 4 are bootable *shrug*

I installed a normal IDE harddrive and it is mounted as /dev/hda
I set it up with fdisk to be the bootable drive :
> fdisk /dev/hda
n/p/1//+32M/a/1/w/ {"/" denoting enter}

I then set up my 4 SATA drives on the SATA connectsion 1,2,3,4 from the motherboard/BIOS perspective.
- 2 partions each - both raid-level 5: swap, and /

When I boot the machine, the Grub loader does load and does give me 30 seconds to choose the kernel :)
- hey wow ! big improvement :hurray:
but it then yeilds the following: :sad:
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown block (1,0)

From my searching there are a couple of possibilites. I followed the instructions to not use genkernel, but to do it 'manually'.
From the instructions when you do it manually, you do not create an initrd file. So I did not, and I did not put a line for one in the grub.conf file.
I supose this was an error, and I should have done the command "mkinitrd /boot/file.img 2.6.11"? Some places show an "-o" option.

So I then used the install cd to reboot, and i wanted to chroot back into the newly installed system...
but the /dev/md0 and /dev/md1 are not listed in there any longer.

Question 1: How do I chroot back into the installed system?
- I would suppose I would do "chroot /mnt/gentoo /bin/bash" after I get the "mount /dev/md1 /mnt/gentoo" to work, but with the device "md0 and md1" not available, I am not sure what to do. [all of the other /dev's are there like /hda1 and /sda1 /sda2 etc]

Quote:

<< edit start >>
I've read about the mdadm options, and it would seem I should be able to do an "assemble" command.
So I edited the /etc/mdadm.conf file as such:
DEVICE /dev/hda*
DEVICE /dev/sda*
DEVICE /dev/sdb*
DEVICE /dev/sdc*
DEVICE /dev/sdd*
ARRAY /dev/md0 devices=/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1
ARRAY /dev/md1 devices=/dev/sda2,/dev/sdb2,/dev/sdc2,/dev/sdd2

then I did this:
> mdadm -As

It says:
error opening /dev/md0 : no such file or directory
<< end end >>


Question 2: Do I need to do the mkinitrd?


Thanks for any assistance.
_________________
Cheers.

--Mike Robb
http://js-x.com/
[Gentoo: AMD-64 3800, 2gigram, Raid-5 S-ATA + 1 IDE, Radeon-X300-SE(128MB PCIe)]
[Gentoo: P4 dual 3ghz, 1.5gigram, S-ATA + 1 IDE, GeForce 6200 (AGP 8x 128MB)]
[Smoothwall: P3, 256Mram, 1 IDE]
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Jun 07, 2005 1:24 am    Post subject: Reply with quote

js-x.com wrote:
Kernel panic - not syncing : VFS : Unable to mount root fs on unknown block (1,0)

Get rid of the root=/dev/ram0 from your grub.conf (this is only used when you have an initrd), and put root=/dev/md1 instead.

js-x.com wrote:
I've read about the mdadm options, and it would seem I should be able to do an "assemble" command.
...
It says:
error opening /dev/md0 : no such file or directory

Using the --auto option with mdadm will create the device nodes you need.
Code:
# mdadm --assemble /dev/md0 --auto=yes /dev/sd[abcd]1
# mdadm --assemble /dev/md1 --auto=yes /dev/sd[abcd]2
# cat /proc/mdstat


js-x.com wrote:
Question 2: Do I need to do the mkinitrd?

No.
Back to top
View user's profile Send private message
js-x.com
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 78
Location: Dallas, TX (USA)

PostPosted: Tue Jun 07, 2005 2:13 am    Post subject: Reply with quote

Thanks for the info!

-----
Expanding on trying to mount the "md0" and "md1":
I have booted fresh from the install cd, and first thing tried this:
# mdadm --assemble /dev/md0 --auto=yes /dev/sd[abcd]1
# mdadm --assemble /dev/md1 --auto=yes /dev/sd[abcd]2

Both result in these error message:
mdadm: error opening /dev/md0 : no such device or address
mdadm: error opening /dev/md1 : no such device or address

But I noticed that the /dev/md0 and /dev/md1 now exists [ls /dev]

so I tried to mount it
# mount /dev/md1 /mnt/gentoo

This gave an error:
mount: /dev/md1 isnot a valid block device

Is there any other information I can post that might help?

<<< edit start >>>
I forgot to metion that there is no file: /proc/mdstat

<<<<<< edit again start >>>>>>>
i needed to do a "modprobe raid5" to start with.
after that... as you have suggested it did work! thank you.

now to try the modification to the grub conf file.

thanks :wink:
<<<<<< edit again end >>>>>>>

<<< edit end >>>



Thanks again for your help :)
_________________
Cheers.

--Mike Robb
http://js-x.com/
[Gentoo: AMD-64 3800, 2gigram, Raid-5 S-ATA + 1 IDE, Radeon-X300-SE(128MB PCIe)]
[Gentoo: P4 dual 3ghz, 1.5gigram, S-ATA + 1 IDE, GeForce 6200 (AGP 8x 128MB)]
[Smoothwall: P3, 256Mram, 1 IDE]
Back to top
View user's profile Send private message
js-x.com
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 78
Location: Dallas, TX (USA)

PostPosted: Tue Jun 07, 2005 2:48 am    Post subject: Reply with quote

If nothing else today I've learned how to re-mount the raid drives :) and I rate that as a major success - thank you very much...

but continuing on :D

I have edited the grub.conf file
Code:

>nano -w /boot/grub/grub.conf
 default 0
 timeout 30
 splashimage=(hd0,0)/grub/splash.xpm.gz
 
 title=Gentoo Rocks 2.6.11
 root (hd0,0)
 kernel /kernel-2.6.11-gentoo-r7 root=/dev/md1 init=/linuxrc ramdisk=8192 real_root=/dev/md1 udev


Here is the error I get on the boot:
Quote:

VFS: cannot open root device "md1" or unknown-block(0,0)
Please append a correct "root=" boot option
kernel panic - not syncing : vfs : unalbe to mount root fs on unknown-block(0,0)


any ideas?
_________________
Cheers.

--Mike Robb
http://js-x.com/
[Gentoo: AMD-64 3800, 2gigram, Raid-5 S-ATA + 1 IDE, Radeon-X300-SE(128MB PCIe)]
[Gentoo: P4 dual 3ghz, 1.5gigram, S-ATA + 1 IDE, GeForce 6200 (AGP 8x 128MB)]
[Smoothwall: P3, 256Mram, 1 IDE]
Back to top
View user's profile Send private message
js-x.com
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 78
Location: Dallas, TX (USA)

PostPosted: Tue Jun 07, 2005 11:29 am    Post subject: Reply with quote

I went back and looked at the compile kernel options and found I incorrectly selected the RAID stuff as "module".
I've made this fix and am now re-compiling the kernel.

how much must i re-do : everything after this step in the instructions?

thanks everyone
_________________
Cheers.

--Mike Robb
http://js-x.com/
[Gentoo: AMD-64 3800, 2gigram, Raid-5 S-ATA + 1 IDE, Radeon-X300-SE(128MB PCIe)]
[Gentoo: P4 dual 3ghz, 1.5gigram, S-ATA + 1 IDE, GeForce 6200 (AGP 8x 128MB)]
[Smoothwall: P3, 256Mram, 1 IDE]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jun 07, 2005 4:08 pm    Post subject: Reply with quote

js-x.com,

Just install the kernel. Use the same name as you did before.
Since the old one is broken, you won't want to get back to it.
_________________
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
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Jun 07, 2005 4:53 pm    Post subject: Reply with quote

You should trim your kernel line down to this, because all the other stuff is for genkernel / initrd.
Code:

 kernel /kernel-2.6.11-gentoo-r7 root=/dev/md1
Back to top
View user's profile Send private message
js-x.com
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2005
Posts: 78
Location: Dallas, TX (USA)

PostPosted: Wed Jun 08, 2005 12:17 am    Post subject: Reply with quote

Thanks both. I have updated the kernel and also the grub.conf file.

Upon boot I can see it gets further and then it Panics again.
Code:

...
ACPI: (supports s0 s1 s4 s5)
md: autorun ...
md: ... autorun Done
VFS: cannot open root device "md1" or unknown-block(0,0)
Please append a correct "root=" boot option
kernel panic - not syncing : vfs : unalbe to mount root fs on unknown-block(0,0)


So it appears that it is now loading the md drivers. Perhaps I have not correctly configured the kernel for the SATA drives.
I've searched and found this to be the suggestion.

So I have dug through the make-kernel menu and found this line:
< > Support for SATA (depricated ; conflicts w/ libata SATA driver <--- its not checked

If I dig through the .config file I find these 2 lines:
CONFIG_BLK_DEV_IDE_SATA <not set>
CONFIG_SCSI_SATA=y
<<<< edit begiin >>>>
I have read that the SCSI SATA drivers are where the SATA drivers are located - so it appears correct.
<<<< edit end >>>>

<<<< edit 2 start >>>>
I went in and checked anything related to SATA and SCSI, and it now will boot.

it now has an error in Bringing eth0 up via DHCP
Quote:

* Bringing eth0 up via DHCP...
/sbin/rc : line 109 : /sbin/dhcpcd: no such file
Error: Problem starting needed services "netmount" was not started.


The /var/log/messages show the same information.

Does this mean I have not correctly choosen the network in the kernel? or is this something not related to the kernel configuration?
<<<< edit 2 end >>>>

<<<< edit 3 start >>>>
I needed to boot back with the livecd and emerge dhcpcd

Thank you everyone that has provided guidance or help :D
<<<< edit 3 end >>>>

thanks.
_________________
Cheers.

--Mike Robb
http://js-x.com/
[Gentoo: AMD-64 3800, 2gigram, Raid-5 S-ATA + 1 IDE, Radeon-X300-SE(128MB PCIe)]
[Gentoo: P4 dual 3ghz, 1.5gigram, S-ATA + 1 IDE, GeForce 6200 (AGP 8x 128MB)]
[Smoothwall: P3, 256Mram, 1 IDE]
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