Re: detached a mounted ufs filesystem

2010-06-15 Thread Ian Smith
I'm a little confused by your using two different names, so you might get two copies of this .. On Mon, 14 Jun 2010, Zhengtao Cui wrote: # bsdlabel /dev/da0s1 says bsdlabel: unable to get correct path for /dev/da0s1: No such file or directory. Ok, there's no label on da0s1, as

Re: detached a mounted ufs filesystem

2010-06-14 Thread Xihong Yin
'fsck_ufs /dev/da0a' gives me the same result as /dev/da0. The 'newfs -N /dev/da0a' prints a very long list of numbers such as 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496,

Re: detached a mounted ufs filesystem

2010-06-14 Thread Zhengtao Cui
# bsdlabel /dev/da0s1 says bsdlabel: unable to get correct path for /dev/da0s1: No such file or directory. How do I make a fresh label if I have only 'c' and 'd' partitions? How do I dd the first 126 sectors to a file? Thanks, On Mon, 14 Jun 2010, Ian Smith wrote: In freebsd-questions

Re: detached a mounted ufs filesystem

2010-06-13 Thread Polytropon
On Sat, 12 Jun 2010 22:38:15 -0400, Xihong Yin x...@gmx.com wrote: 'fdisk /dev/da0' output is *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for

Re: detached a mounted ufs filesystem

2010-06-13 Thread Ian Smith
In freebsd-questions Digest, Vol 314, Issue 13, Message: 22 On Sat, 12 Jun 2010 22:38:15 -0400 Xihong Yin x...@gmx.com wrote: 'fdisk /dev/da0' output is *** Working on device /dev/da0 *** parameters extracted from in-core disklabel are: cylinders=14593 heads=255

detached a mounted ufs filesystem

2010-06-12 Thread Xihong Yin
I accidentally detached my usb external hard drive without umount it. The hard driver filesysystem is ufs. Now I can't mount it because I can't see the slices. What I get is only da0 and da0a in the /dev directory. Is there a way to fix the filesystem? Thanks, Xihong

Re: detached a mounted ufs filesystem

2010-06-12 Thread Polytropon
On Sat, 12 Jun 2010 19:46:26 -0400, Xihong Yin x...@gmx.com wrote: I accidentally detached my usb external hard drive without umount it. The hard driver filesysystem is ufs. Now I can't mount it because I can't see the slices. What I get is only da0 and da0a in the /dev directory. Is there a

Re: detached a mounted ufs filesystem

2010-06-12 Thread Xihong Yin
for device fsck_ufs: /dev/da0: can't read disk label I forget what layout the disk has. Normally I used /dev/da0s1d to mount the disk. What the next step should I do? Thanks, - Original Message - From: Polytropon Sent: 06/12/10 08:16 PM To: Xihong Yin Subject: Re: detached a mounted ufs