DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 14th February 2011
Roric Roric is offline
New User
 
Join Date: Feb 2011
Posts: 2
Default Unable to mount second hard drive

I'm new to BSD and am trying to mount a secondary hard drive, but all the commands that I am familiar with do not work.

Here is a paste of my terminal:

Code:
# disklabel wd1
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: ST380021A       
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 9729
total sectors: 156301488
rpm: 3600
interleave: 1
boundstart: 0
boundend: 156301488
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  c:        156301488                0  unused                   
  i:        156299264             2048  ext2fs                   

# mount -t ext2fs /dev/wd1i /mnt
mount_ext2fs: /dev/wd1i on /mnt: Block device required

# mount -t ext2fs /dev/wd1c /mnt
mount_ext2fs: /dev/wd1c on /mnt: Input/output error

# mount -t ext2fs /dev/rwd1i /mnt
mount_ext2fs: /dev/rwd1i on /mnt: Block device required

# mount -t ext2fs /dev/rwd1c /mnt
mount_ext2fs: /dev/rwd1c on /mnt: Block device required
Code:
# fdisk wd1
Disk: wd1       geometry: 9729/255/63 [156301488 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
#: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
0: 83      0  32  33 -   9729  78  13 [        2048:   156299264 ] Linux files*
1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused     
2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused     
3: 00      0   0   0 -      0   0   0 [           0:           0 ] unused     

# mount -t ext2fs /dev/rwd1 /mnt 
mount_ext2fs: /dev/rwd1 on /mnt: No such file or directory
What am I missing here? Probably something simple, but it has been a long night getting everything up and running and my mind is beginning to slip. Any insight into this matter would be greatly appreciated.

Last edited by J65nko; 14th February 2011 at 05:32 PM. Reason: [code] tags added ;)
Reply With Quote
  #2   (View Single Post)  
Old 14th February 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

I can mount an ext2fs filesystem from an 'old' Ubuntu without problem.

Code:
# fdisk wd0

Disk: wd0       geometry: 38913/255/63 [625142448 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: A6      0   1   1 -   5098 254  63 [          63:    81915372 ] OpenBSD     
 1: A6   5099   0   1 -  22945 254  63 [    81915435:   286712055 ] OpenBSD     
 2: 82  22946   0   1 -  23011 254  63 [   368627490:     1060290 ] Linux swap  
 3: 83  23012   0   1 -  38912 254  63 [   369687780:   255449565 ] Linux files*

# disklabel wd0

# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: WDC WD3200AAKS-2
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 38913
total sectors: 625142448
rpm: 3600
interleave: 1
boundstart: 0
boundend: 0
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:         81787372               63  4.2BSD   2048 16384    1 # /
  b:           128000         81787435    swap                   
  c:        625142448                0  unused                   
  p:        255449565        369687780  ext2fs
A mount of the raw device fails:

Code:
# mount -t ext2fs -o ro /dev/rwd0p /mnt
mount_ext2fs: /dev/rwd0p on /mnt: Block device required
Using the 'normal' device succeeds:

Code:
# mount -t ext2fs -o ro /dev/wd0p /mnt 
ls -l /mnt
total 256
drwxr-xr-x    2 root  wheel   4096 Sep 24 08:38 bin
drwxr-xr-x    3 root  wheel   4096 Oct 23 10:57 boot
lrwxrwxrwx    1 root  wheel     11 Jun 22  2009 cdrom -> media/cdrom
drwxr-xr-x    4 root  wheel   4096 Apr 20  2009 dev
drwxr-xr-x  134 root  wheel   8192 Feb 13 05:31 etc
drwxr-xr-x    4 root  wheel   4096 Aug 23  2009 home
lrwxrwxrwx    1 root  wheel     33 Jun 21  2010 initrd.img -> boot/initrd.img-2.6.28-19-generic
lrwxrwxrwx    1 root  wheel     33 Mar  4  2010 initrd.img.old -> boot/initrd.img-2.6.28-18-generic
drwxr-xr-x   19 root  wheel   8192 Oct 23 10:57 lib
drwxr-xr-x    2 root  wheel  49152 Jun 22  2009 lost+found
drwxr-xr-x    4 root  wheel   4096 Feb 13 03:00 media
drwxr-xr-x    2 root  wheel   4096 Apr 13  2009 mnt
drwxr-xr-x    2 root  wheel   4096 Apr 20  2009 opt
drwxr-xr-x    2 root  wheel   4096 Apr 13  2009 proc
drwx------   10 root  wheel   4096 May 18  2010 root
drwxr-xr-x    2 root  wheel   4096 Oct 23 10:57 sbin
drwxr-xr-x    2 root  wheel   4096 Mar  6  2009 selinux
drwxr-xr-x    2 root  wheel   4096 Apr 20  2009 srv
drwxr-xr-x    2 root  wheel   4096 Mar 31  2009 sys
drwxrwxrwt   11 root  wheel   4096 Feb 13 05:31 tmp
drwxr-xr-x   12 root  wheel   4096 May 18  2010 usr
drwxr-xr-x   16 root  wheel   4096 May 18  2010 var
lrwxrwxrwx    1 root  wheel     30 Jun 21  2010 vmlinuz -> boot/vmlinuz-2.6.28-19-generic
lrwxrwxrwx    1 root  wheel     30 Mar  4  2010 vmlinuz.old -> boot/vmlinuz-2.6.28-18-generic
Are you sure you are using ext2fs or ext3fs?
ext3fs is compatible with ext2fs, but I am not sure ext4fs is
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 14th February 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Code:
# mount -t ext2fs /dev/wd1i /mnt
mount_ext2fs: /dev/wd1i on /mnt: Block device required
Yeah, that output looks odd.. /dev/wd1i should work, that is the appropriate block device, so either you typed that wrong or you trashed your /dev.

Use the /dev/MAKEDEV shell script to regenerate them.
Reply With Quote
  #4   (View Single Post)  
Old 15th February 2011
Roric Roric is offline
New User
 
Join Date: Feb 2011
Posts: 2
Default Update

First of all I would like to thank you both for the replies. After some much needed rest I tackled the problem again.

I tried to do a "ls -la" inside of /dev and something interesting came up.

While all of the other devices seemed to follow a numbered pattern, followed by the date and then the device. The device wd1i completely breaks all of those patterns with a very long string of seemingly random numbers (probably the cylinder count) and the date set for the device was sometime back in July of 1963. After I typed in "date" I realized that my system time was set for Sept 1987.

I changed the date to the current and now all the devices are showing to be updated with the current date AND I am now about to mount wd1i as normal.

Thank you for the info about MAKEDEV, this is not something that I am familiar with and I will have to put it on my growing list of man pages that I will eventually get around to reading.

One last thing, how do I mark this [Solved]?
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
Second Hard Drive IronForge OpenBSD Installation and Upgrading 4 2nd November 2009 08:53 AM
Did I fry my hard drive? JMJ_coder General Hardware 7 23rd December 2008 10:38 PM
mount second hard drive - newbie trouble corneliu FreeBSD General 7 23rd September 2008 10:51 PM
CF as a *BSD hard drive? JMJ_coder General Hardware 26 31st July 2008 05:13 PM
how to mount external hard disk ? bsdnewbie999 FreeBSD General 6 27th May 2008 02:37 AM


All times are GMT. The time now is 11:12 PM.


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