Discussion Locked

Kernel panic

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
My Hard disc was slave and my CD ROM drive was master. Now when my CD ROM is broken my HDD is master. When I try to boot my freeBSD it says "Panic: cannot mount root". What to do?

5 replies

by computechie

I switched around my hard disks in my machine a while back and FreeBSD did the same thing. It's because your hard disk, which used to be device wd1s1, and now it's wd0s1, and now it's trying to mount your slices under wd1s1. What I had to do was boot it under single user mode (boot -s), and remount the slices (/, /var, /usr, and your swap) to wd0s1. Hope this helps you out.

by kevin anderson

The fastest and easiest solution will be for you to buy another CDROM, and put it in as the master.

Otherwise, Your mounts will be refered to by a formula.

IDE Chain 1 Master = hda
IDE Chain 1 Slave = hdb
IDE Chain 2 Master = hdc
IDE Chain2 Slave = hdd

The partition will be a number after the device.

Whats happening is that your system is configured to find / at hdb1 (for example). You need to change that to hda1, to reflect that the slave is now the master.

You'll need toboot the kernel from a floppy , manually mount the mountpoints and then change the fstab table to reflect your new system layout.

This drive lettering scheme is from Linux, but BSD should follow the same logic.

This discussion is closed to new replies.