DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st July 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default "Can't check filesystem" error after installation

Hello people,I just installed OBSD 4.9 to an IBM Lenovo X60!My Laptop has no CD Drive so i inserted the laptop's hard disk to a case to make it external hard disk!I installed it by chosing "sd0"(installation completed succesfuly) and when i attached the hard disk to my lenovo again i get this error:

Code:
Can't open /dev/rsd0a: Device not configured
CAN'T CHECK FILESYSTEM.
/dev/rsd0a:UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY.
Automatic file system check failed; help!
Enter pathname of shell or RETURN for sh:

Any ideas how to make it work?
Reply With Quote
  #2   (View Single Post)  
Old 21st July 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by sepuku View Post
...i inserted the laptop's hard disk to a case to make it external hard disk!I
I can only assume that once moved back to the laptop, the hard drive is not identified in dmesg(8) as /dev/sd0. I assume the laptop identifies it as /dev/wd0.

If this hard drive was connected to the other system via USB, all USB devices are connected through the SCSI subsystem -- hence the references to /dev/sd0 found in /etc/fstab.

This can be fixed by editing /etc/fstab. Use the device node seen in the laptop's dmesg(8) output.

As a personal request, please limit the number of exclamation points (!) used in your messages. Exclamation points are meant to indicate emphasis. Using exclamation points for every sentence is frequently interpreted as shouting.
Reply With Quote
  #3   (View Single Post)  
Old 21st July 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default

Thanx for the quick reply.How can i edit the /etc/fstab?I have not vi available as far as i can see.

I keep that in mind about '!' but rest assured; there's no shouting in my typing.

edit: the hard disk is identified as 'wd0'
Reply With Quote
  #4   (View Single Post)  
Old 21st July 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by sepuku View Post
How can i edit the /etc/fstab?I have not vi available as far as i can see.
I assume you are attempting to edit having booted with bsd.rd which is more than simply a kernel -- bsd.rd installs a limited system into memory for the purposes of installation. As such, only ed(1) is available in this environment. ed(1) is very simple programmatically (& it doesn't consume much space...) -- some might characterize it as primitive.

Assuming you installed the complete system onto the hard drive being transferred, vi(1) is available as it is installed in /usr/bin. In order to access vi(1), you will need to manually mount the partition containing /usr.
Reply With Quote
  #5   (View Single Post)  
Old 21st July 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

If you boot in single-user mode, no mounts will be made, though the root partition will be available read only (it will be the "a" partition on booted device, most likely wd0). To boot in single user mode, use "-s" at the boot> prompt.

Mount points vary. Once you reach the shell, issue the following commands (assuming wd0 is the device, and /etc is in the root partition):

# export TERM=vt220
# mount /dev/wd0a /
# cat /etc/fstab

(Look for your /usr partition, this example will assume you see it as /dev/sd0f. Change accordingly.)

# mount /dev/wd0f /usr

----

From here, you can use vi(1) or mg(1) or sed(1) to edit the file.
Reply With Quote
  #6   (View Single Post)  
Old 21st July 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

As stated by jggimi, if you installed OpenBSD to the drive when it was in an enclosure it would be on the USB bus and hence be detected as a simulated SCSI drive.

Once installed back in the new system it would be on the native controller for that system, device names and numbering obvious may differ.. this should have been apparent to you.

At the boot> prompt you could pass '-a' along with '-s' as a flag to manually specific the root partition so that you're using the GENERIC kernel and not the RAMDISK kernel, the same thing applies.. you need to fix your fstab file to contain the right disk so that the partitions are mounted at boot time.

Fortunately with I believe in 5.0 the installer will ask if you want to use DUID's instead of device names in the fstab.
Reply With Quote
  #7   (View Single Post)  
Old 22nd July 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Thanked 0 Times in 0 Posts
Default

Yeap,Jggimi's suggestions did it.Thank you very much.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD Health Check: FreeBSD - "The unknown giant" J65nko News 0 4th February 2010 11:28 PM
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
"No package available in the PKG_PATH" error Nk2Network OpenBSD Packages and Ports 19 12th January 2009 09:22 PM
Installation master "disk" using USB memory stick, dd? peterg22 FreeBSD Installation and Upgrading 7 14th October 2008 05:18 PM
CF, as wd0, 4.3 dmesg "DMA error" s2scott OpenBSD Installation and Upgrading 11 10th May 2008 08:21 AM


All times are GMT. The time now is 02:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick