|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
what to do at mountroot prompt?
Hi everyone,
Just coming from bsdforums... sad... But life is going on and I hope I'll find some help here. So this is my problem. After wrong diagnose, my FreeBSD 7 box has been brutally rebooted. Since, it is not booting anymore and instead, prompting this ( horrible ) mountroot. I tried to find what to do there and all I found was to indicate the / slice. What i did, like this: usf:/dev/ad1s1a but it just replied something like 'No such file or directory' several times until the box has been stopped. From another FreeBSD system (multiboot on the box) I applied "fsck -y" on all slices of the first system to get them all clean. Then I tried again. the result was sadly the same. So... the question is simple... what to do? Thanks |
|
|||
Try using the tools available at mountroot. I think lsdev lists what drives are detected and '?' gives a list of commands.
|
|
|||
Sorry, i just wrote it wrong but i really tried ufs and not usf.
I am going to try all your advices but tomorrow, when i'll get my hands on the box. About that, i am wondering... Isn't it a way to fix that from another freebsd system? If i can mount all the slices of my non-booting one, is there a file that i can set to fix that? |
|
||||
You could always boot off a FreeBSD live cd, mount your systems root / and access files read+write.
Every time I've seen that prompt, either I screwed up /etc/fstab or when using SATA drives, changing the ATA_STATIC_ID option in the kernel configuration without adjusting fstab.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. Last edited by TerryP; 28th May 2008 at 10:56 PM. |
|
|||
I mounted the slice / and checked the fstab and it seems ok.
So if i want to fix this boot issue, which file else shall I check? |
|
||||
First please post us your /etc/fstab.
If the kernel finished loading, and fsck reports that the filesystem is consistent, then maybe the init or similar needed files might be corrupted. A quick solution is to use the FIXIT option from the installation media to repair the base system. Last edited by harisman; 29th May 2008 at 03:22 PM. |
|
|||
Hi again!
So i tried the ? at the mountroot prompt. It listed all the available slices and ad1s1a was in between. I then typed: Quote:
It replied that it couldn't find the file Quote:
Quote:
Last edited by Sunsawe; 31st May 2008 at 08:42 AM. |
|
||||
Well the first things is, is the file /etc/fstab actually on the machine that you are booting? If not, then that's your problem.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
|||
Well yes. it is the same machine with 2 systems installed in multiboot. I just mounted the ad1s1a slice from the other system and found the fstab where it was supposed to be, meaning in /etc directory in the mounted slice.
|
|
||||
Please use [code][/code], not [quote][/quote] when showing file listings, to preserve white space. It makes things like fstab much easier to parse.
I think that that line is stating that it cannot find the dev file listed on line 0 of the fstab file, not that it cannot find the file. Could you check whether all the device nodes not listed as 'noauto' actually exist (when you enter single-user mode)? Generally, you specify a device node or mount point for a filesystem. Like this # fsck -y /dev/ad1s1a
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
|
||||
Quote:
I'd suggest booting the system with a rescue cd so that you can mount the partition and look at the /etc/fstab that doesn't work.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick |
|
|||
Quote:
So this is the non working fstab. Quote:
I check with the ? at the mountroot and they all exist. |
|
|||
Does 'mount' command after you get to the shell (the /bin/sh by default) show devfs mounted?
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Nicer Prompt with ksh on 5.0 | nihonto | NetBSD Installation and Upgrading | 8 | 12th October 2009 08:49 PM |
changing custom prompt ksh for root. | bsdnewbie999 | OpenBSD General | 7 | 1st April 2009 04:53 AM |
Exec command in zsh prompt? | bsddaemon | General software and network | 2 | 18th October 2008 09:37 PM |