Re: Block device required

2006-12-19 Thread Alexander Yurchenko
On Tue, Dec 19, 2006 at 12:00:30AM -0800, ibanex22 wrote:
 Hi everyone,
 
 I have recently transfered my web server from Debian to OpenBSD.  I had a
 secondary hard drive that I was hosting all my files on which was ext3.  I
 installed it in my OpenBSD box and booted up a live Knoppix CD and converted
 it to ext2.  I run:
 
 mount -t ext2fs /dev/rwd1c /mnt

mount -t ext2fs /dev/wd1i /mnt

 
 and I recieve:
 
 mount_ext2fs: /dev/rwd1c on /mnt: Block device required
 
 fdisk /dev/rwd1c returns:
 
 Disk: /dev/rwd1c geometry: 36483/255/63 [586099395 Sectors]
 Offset: 0   Signature: 0xAA55
StaringEnding LBA Info:
   #: id   C   H  S -CH  S  [  start:  size   
 ]
 -
 0:  010  1  1 -  36482 254 63  [  63:586099332 ] 
 DOS FAT-12
 1:  000  0  0 -0 0  0  [ 0:   
 0  ]  unused
 2:  000  0  0 -0 0  0  [ 0:   
 0  ]  unused
 3:  000  0  0 -0 0  0  [ 0:   
 0  ]  unused
 
 any suggestions would be great!
 
 -Erik
 -- 
 View this message in context: 
 http://www.nabble.com/Block-device-required-tf2844598.html#a7943070
 Sent from the openbsd user - misc mailing list archive at Nabble.com.

-- 
   Alexander Yurchenko



Re: Block device required

2006-12-19 Thread Greg Thomas

On 12/19/06, Alexander Yurchenko [EMAIL PROTECTED] wrote:

On Tue, Dec 19, 2006 at 12:00:30AM -0800, ibanex22 wrote:
 Hi everyone,

 I have recently transfered my web server from Debian to OpenBSD.  I had a
 secondary hard drive that I was hosting all my files on which was ext3.  I
 installed it in my OpenBSD box and booted up a live Knoppix CD and converted
 it to ext2.  I run:

 mount -t ext2fs /dev/rwd1c /mnt

mount -t ext2fs /dev/wd1i /mnt



How do you know it's i?

Greg



Re: Block device required

2006-12-19 Thread Andreas Maus

On 12/19/06, ibanex22 [EMAIL PROTECTED] wrote:
Hi.

mount_ext2fs: /dev/rwd1c on /mnt: Block device required

Of cause!
rwd1c is a charcter device, not a block device:
$ ls -l /dev/rwd1c
crw-r-  1 root  operator3,  18 Dec  9 12:03 /dev/rwd1c

You have to use wd1c instead, which is a block device:
$ ls -l /dev/wd1c
brw-r-  1 root  operator0,  18 Dec  9 12:03 /dev/wd1c


fdisk /dev/rwd1c returns:

... make sure you don't mistake fdisk for disklabel.
fdisk on OpenBSD is way different than on Linux.

Andreas.

--
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?



Re: Block device required

2006-12-19 Thread Andreas Maus

On 12/19/06, Greg Thomas [EMAIL PROTECTED] wrote:


How do you know it's i?

disklabel wd1

Andreas.

--
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?



Re: Block device required

2006-12-19 Thread Marco S Hyman
Greg Thomas writes:
mount -t ext2fs /dev/rwd1c /mnt
  
   mount -t ext2fs /dev/wd1i /mnt
  
  How do you know it's i?

FAQ 14.1 says:

  Devices without a disklabel: If a device does not currently have an
  OpenBSD disklabel on it but has another file system (for example, a
  disk with a pre-existing FAT32 file system), the OpenBSD kernel will
  create one in memory, and that can form the basis of a formal OpenBSD
  disklabel to be stored on disk.

That created disklabel uses partition 'i'.   Run disklabel(8) on
the device (what you should have done in the first place) to verify
this.

// marc



Re: Block device required

2006-12-19 Thread Greg Thomas

On 12/19/06, Marco S Hyman [EMAIL PROTECTED] wrote:

Greg Thomas writes:
mount -t ext2fs /dev/rwd1c /mnt
  
   mount -t ext2fs /dev/wd1i /mnt
 
  How do you know it's i?

FAQ 14.1 says:

  Devices without a disklabel: If a device does not currently have an
  OpenBSD disklabel on it but has another file system (for example, a
  disk with a pre-existing FAT32 file system), the OpenBSD kernel will
  create one in memory, and that can form the basis of a formal OpenBSD
  disklabel to be stored on disk.

That created disklabel uses partition 'i'.   Run disklabel(8) on
the device (what you should have done in the first place) to verify
this.



The point is in this case it probably is i but since it doesn't have
to be it's better to point the other person to the FAQ where he can
read about disklabel.  The FAQ shows a situation where the partition
is m.  Just blindly telling someone to mount wd1i isn't doing him
any good in the long run.

Greg