bsdlabel on /dev/da0s1

Hi! I have an external USB HDD. With fdisk I created one slice on the entire disk. When I tried to:
Code:
bsdlabel -w /dev/da0s1
i have the error message:
Code:
bsdlabel: /dev/da0s1 read: Unknown error: 0
What's wrong?
Thanx!
 
You probably need to supply a type field:
# bsdlabel -w da0s1 auto
 
Code:
[root@aserver /sbin]# ls -l /dev/da0*
crw-r-----  1 root  operator    0, 102 Jun  3 22:17 /dev/da0
crw-r-----  1 root  operator    0, 103 Jun  3 09:41 /dev/da0s1
[root@aserver /sbin]# bsdlabel -w da0s1
bsdlabel: /dev/da0s1 read: No such file or directory
 
Wow, that i strange.

Here is man's phrase:
Code:
Disk Device Name
     When specifying the device (i.e., when the -f option is not used), the
     /dev/ path prefix may be omitted; the bsdlabel utility will automatically prepend it.

Maybe you should try
Code:
bsdlabel -w da0

since da0s1 is just da0's slice.
 
lyuts said:
Maybe you should try
Code:
bsdlabel -w da0

since da0s1 is just da0's slice.
There is a difference. Using da0 will mean the disk is dedicated. This also means the MS-DOS fdisk tool and XP's diskmanagement system can't make heads or tails of it.

Since the OP was able to create a slice using fdisk he should use da0s1.

But I agree it's a weird error.. One other thing to try is the -B option.

# bsdlabel -B -w da0s1
 
Yes, always share solutions! The forums are here for the community, not for solving your particular problems ..
 
I don't know what his solution was, but I just had to newfs the slice, rather than making a bsdlabel and its seemed to work for me [scratches head]
 
Back
Top