Trouble mounting 2nd disk, any ideas?

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
Big-E
Administrator
Administrator
Posts: 1332
Joined: 16 May 2007, 16:00
16
Location: IN UR ____ , ____ING UR _____ .
Contact:

Trouble mounting 2nd disk, any ideas?

Post by Big-E »

Background:
I have a system running OpenBSD 4.3 and I am trying to mount a disk that once had Ubuntu 8.04 Server on it so I can grab some files.

So, I try to mount my disk and get this:

Code: Select all

 
mount_ext2fs: /dev/wd1i on /mnt/disk2: specified device does not match mounted device
I check dmesg to ensure that I have the right name:

Code: Select all

 
bash-3.2# dmesg | grep -i drive
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP0411N>
wd1 at pciide0 channel 0 drive 1: <WDC WD1600JB-00GVA0>
atapiscsi0 at pciide0 channel 1 drive 0


So I check fstab:

Code: Select all

 
bash-3.2# cat /etc/fstab 
/dev/wd0a / ffs rw 1 1
/dev/wd0h /home ffs rw,nodev,nosuid 1 2
/dev/wd0d /tmp ffs rw,nodev,nosuid 1 2
/dev/wd0g /usr ffs rw,nodev 1 2
/dev/wd0e /var ffs rw,nodev,nosuid 1 2
/dev/wd1a /dev/disk2 ffs rw,nodev 1 2 
/dev/wd1i /dev/disk2/hdd ffs rw,nodev 1 2


Note: I added in the last two lines


Any ideas on how I can get this damn disk to mount?

Edit Here is my disklabel for wd1 if it is of any interest:

Code: Select all

 

bash-3.2# disklabel wd1
disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: WDC WD1600JB-00G
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 19457
total sectors: 312581808
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  c:        312581808                0  unused      0     0      
  i:        311098662               63  ext2fs                   
  j:          1477917        311098788 unknown     

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

disklabel: warning, DOS partition table with no valid OpenBSD partition
was the HDD connected during the BSD install? if not it has no valid disklabel and you need to add it manually:
http://www.openbsd.org/faq/faq14.html#disklabel

sorry I can't tell you how to do this step by step, but I am not too experienced with BSD and I don't want to take the risk of giving you an advice that maybe kills all data on the HDD.... :wink:

rob33n
On the way to fame!
On the way to fame!
Posts: 25
Joined: 09 May 2007, 16:00
16
Contact:

Post by rob33n »

did you solve? i want to learn how it is.

Post Reply