|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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 Last edited by J65nko; 14th February 2011 at 05:32 PM. Reason: [code] tags added ;) |
|
|||
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 Code:
# mount -t ext2fs -o ro /dev/rwd0p /mnt mount_ext2fs: /dev/rwd0p on /mnt: Block device required 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 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 |
|
|||
Code:
# mount -t ext2fs /dev/wd1i /mnt mount_ext2fs: /dev/wd1i on /mnt: Block device required Use the /dev/MAKEDEV shell script to regenerate them. |
|
|||
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]? |
|
|
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 |