Sponsored Content
Operating Systems BSD Open (and Free) BSD with Jmicron 20339 USB <-> SATA II chipset Post 302239832 by noratx on Wednesday 24th of September 2008 01:23:02 PM
Old 09-24-2008
with "more, but not enough", i mean this:
On FreeBSD the dive is recognized by the system, as Dmesg shows something like this:
Code:
umass0 at uhub0 port 1 configuration 1 interface 0 "JMicron USB to ATA/ATAPI Bridge" rev 2.00/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0: <ST325041, 0AS, > SCSI2 0/direct fixed
sd0: 238475MB, 30401 cyl, 255 head, 63 sec, 512 bytes/sec, 488397168 sec total

(The above dmesg is actually from my newly installed OpenBSD, but its very similar (if not even exactly the same)
and usbdevs shows:
Code:
[root@germany /home/noratx]# usbdevs
addr 1: OHCI root hub, (0x108e)
 addr 2: Dell USB Keyboard, Dell
 addr 3: USB to ATA/ATAPI Bridge, JMicron

But it stops there, the only device I get in FreeBSD under /dev is "sd0", nothing more.

In OpenBSD, I can actually use disklabel and create a new partition, BUT, when i want to mount it, this is what I get:

Code:
# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: 0AS
flags: vendor
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 30401
total sectors: 488397168
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]
  a:        488392065                0  4.2BSD   2048 16384    1
  c:        488397168                0  unused      0     0
# mount /dev/sd0a /share/250GB-1/
mount_ffs: /dev/sd0a on /share/250GB-1: Invalid argument

So, drive recognized, I'm able to partition (obviously), but not able to mount the disk.
Allthough, maybe this is just something I have missed, but I don't know what that could be.

Edit:
YES! I was stupid and missed one vital thing...
After using disklabel, I maybe should have used newfs.. Smilie (Here I miss a smiley with a big hand comming and smacking the forhead)... BAH!
Well, after waiting forever for OpenBSD to run newfs on my 250 GB disk, it now works.. just the way it should.
I just wish that it fould work under FreeBSD (7.0) as well, But OpenBSD is anyway better than Linux (IMHO).
Now I'm finally happy again! Thank you, and sorry for beeing a bit stupid. Smilie

Last edited by noratx; 09-24-2008 at 05:06 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Red hat or free BSD?

This is my first post here, so I thought Id make it good. I am building a webserver that will be up in a month or so, so I am starting now. I was wondering, since I am on the fence here, should I go with Red hat or BSD? I am comfortable with both, I can run apache on either one, but I am wondering... (4 Replies)
Discussion started by: advok8
4 Replies

2. UNIX for Dummies Questions & Answers

Free Bsd

i am installing FREEBSD and I would like to know which hardware specific network card that works and help with this would be great I am very new to this (UNIX) (1 Reply)
Discussion started by: BSD_NEWUSER
1 Replies

3. UNIX for Dummies Questions & Answers

Free BSD Display Properties?

I'm very new to UNIX and just istalled FreeBSD on my computer. I using the KDE desktop and the resolution is horrible. How do I adjust this. (3 Replies)
Discussion started by: mbrouder
3 Replies

4. BSD

X-Windows Free BSD

so, i have a video card SIS s315 AGP and i can't cofigure X Free on free BSD to run X window. Anybody can help me solve this problem?? (2 Replies)
Discussion started by: Dmitri-br
2 Replies

5. BSD

Free BSD X window

Can anyone help me ? I have installed Free BSD several times and I can't get the X window to work . I have installed the ports Gnome and others but for some reason when I type start x doesn't work. I downloaded the 3 i386 disks but I get to install the first one wich complete the setup and... (3 Replies)
Discussion started by: skyhawkfly
3 Replies

6. UNIX for Dummies Questions & Answers

Hardware for UNIX/Free BSD

Hi! I'm planning to start to set up a Webserver. All software has to be freeware. I'm also planning to use Free BSD/UNIX for this project. Apache as Webserversystem and so on... Therefor I would like to have some info about what kind of hardware I need. I'm planning to buy a computer... (9 Replies)
Discussion started by: kargooliw
9 Replies

7. BSD

How to create IP table at Free BSD

Now, I had installed free bsd at my office. Unfortunitely, Email server have been using Local PoP3 and SMTP to our ISP with outlook. but my unix firewall sever ( free bsd ) didn't allow these port ( 110 & 25 ). How can i create the IP table to pass at server. If u have any experience about obvious... (4 Replies)
Discussion started by: Ashraff Ali
4 Replies

8. BSD

installing free BSD

Hello friends. I am new to Unix although i am very flexible to any programming language. i was a window user. Now, no more. I have decided myself to switch to unix. Here is my problem: I burned the free BSD into my new RW CD's. I inserted the bootable manager first then, it was scanning and... (5 Replies)
Discussion started by: bonjour2006
5 Replies

9. BSD

Free BSD Release 8.0 not recognizing CD/DVD and usb install media

Hi, I am trying to install Free BSD release 8.0 on my Dell XPS Studio laptop along with already existing Windows partition. (150GB for Win Vista, 30GB for win backup and 130 GB for Free BSD). To do trial I first installed it on Sun virtual Box in Windows where it installed without any complaints.... (2 Replies)
Discussion started by: dheerajsuthar
2 Replies

10. BSD

USB mount of Free BSD

Hello all When I insert my USB , its says : umass0 detected . I want to ls files present in the USB. I tried mount -t msdosfs /dev/da0s1 /mnt Whats is dev/da0s1 ????? How can I mount it to use it ? Regards (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
BSDLABEL(8)						    BSD System Manager's Manual 					       BSDLABEL(8)

NAME
bsdlabel -- read and write BSD label SYNOPSIS
bsdlabel [-A] disk | -f file bsdlabel -w [-An] [-B [-b boot]] [-m machine] disk | -f file [type] bsdlabel -e [-An] [-B [-b boot]] [-m machine] disk | -f file bsdlabel -R [-An] [-B [-b boot]] [-m machine] [-f] disk | -f file protofile DESCRIPTION
The bsdlabel utility installs, examines or modifies the BSD label on a disk partition, or on a file containing a partition image. In addi- tion, bsdlabel can install bootstrap 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 automati- cally prepend it. General Options The -A option enables processing of the historical parts of the BSD label. If the option is not given, suitable values are set for these fields. The -f option tells bsdlabel that the program will operate on a file instead of a disk partition. The -n option stops the bsdlabel program right before the disk would have been modified, and displays the result instead of writing it. The -m machine argument forces bsdlabel to use a layout suitable for a different architecture. Current valid values are i386, amd64, and pc98. If this option is omitted, bsdlabel will use a layout suitable for the current machine. Reading the Disk Label To examine the label on a disk drive, use the form bsdlabel [-A] [-m machine] disk disk represents the disk in question, and may be in the form da0 or /dev/da0. It will display the partition layout. Writing a Standard Label To write a standard label, use the form bsdlabel -w [-An] [-m machine] disk [type] If the drive type is specified, the entry of that name in the disktab(5) file is used; otherwise, or if the type is specified as 'auto', a default layout is used. Editing an Existing Disk Label To edit an existing disk label, use the form bsdlabel -e [-An] [-m machine] disk This command opens the disk label in the default editor, and when the editor exits, the label is validated and if OK written to disk. Restoring a Disk Label From a File To restore a disk label from a file, use the form bsdlabel -R [-An] [-m machine] disk protofile The bsdlabel utility is capable of restoring a disk label that was previously saved in a file in ASCII format. The prototype file used to create the label should be in the same format as that produced when reading or editing a label. Comments are delimited by '#' and newline. Installing Bootstraps If the -B option is specified, bootstrap code will be read from the file /boot/boot and written to the disk. The -b boot option allows a different file to be used. FILES
/boot/boot Default boot image. /etc/disktab Disk description file. SAVED FILE FORMAT
The bsdlabel utility uses an ASCII version of the label when examining, editing, or restoring a disk label. The format is: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 81920 16 4.2BSD 2048 16384 5128 b: 1091994 81936 swap c: 1173930 0 unused 0 0 # "raw" part, don't edit If the -A option is specified, the format is: # /dev/da1c: type: SCSI disk: da0s1 label: flags: bytes/sector: 512 sectors/track: 51 tracks/cylinder: 19 sectors/cylinder: 969 cylinders: 1211 sectors/unit: 1173930 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 81920 16 4.2BSD 1024 8192 16 b: 160000 81936 swap c: 1173930 0 unused 0 0 # "raw" part, don't edit Lines starting with a '#' mark are comments. The partition table can have up to 8 entries. It contains the following information: # The partition identifier is a single letter in the range 'a' to 'h'. By convention, partition 'c' is reserved to describe the entire disk. size The size of the partition in sectors, K (kilobytes - 1024), M (megabytes - 1024*1024), G (gigabytes - 1024*1024*1024), % (percentage of free space after removing any fixed-size partitions other than partition 'c'), or * (all remaining free space after fixed-size and percentage partitions). For partition 'c', a size of * indicates the entire disk. Lowercase versions of suffixes K, M, and G are allowed. Size and suffix should be specified without any spaces between them. Example: 2097152, 1G, 1024M and 1048576K are all the same size (assuming 512-byte sectors). offset The offset of the start of the partition from the beginning of the drive in sectors, or * to have bsdlabel calculate the correct off- set to use (the end of the previous partition plus one, ignoring partition 'c'). For partition 'c', * will be interpreted as an off- set of 0. The first partition should start at offset 16, because the first 16 sectors are reserved for metadata. fstype Describes the purpose of the partition. The above example shows all currently used partition types. For UFS file systems and ccd(4) partitions, use type 4.2BSD. For Vinum drives, use type vinum. Other common types are swap and unused. By convention, partition 'c' represents the entire slice and should be of type unused, though bsdlabel does not enforce this convention. The bsdlabel utility also knows about a number of other partition types, none of which are in current use. (See the definitions starting with FS_UNUSED in <sys/disklabel.h> for more details.) fsize For 4.2BSD file systems only, the fragment size; see newfs(8). bsize For 4.2BSD file systems only, the block size; see newfs(8). bps/cpg For 4.2BSD file systems, the number of cylinders in a cylinder group; see newfs(8). EXAMPLES
Display the label for the first slice of the da0 disk, as obtained via /dev/da0s1: bsdlabel da0s1 Save the in-core label for da0s1 into the file savedlabel. This file can be used with the -R option to restore the label at a later date: bsdlabel da0s1 > savedlabel Create a label for da0s1: bsdlabel -w /dev/da0s1 Read the label for da0s1, edit it, and install the result: bsdlabel -e da0s1 Read the on-disk label for da0s1, edit it, and display what the new label would be (in sectors). It does not install the new label either in-core or on-disk: bsdlabel -e -n da0s1 Write a default label on da0s1. Use another bsdlabel -e command to edit the partitioning and file system information: bsdlabel -w da0s1 Restore the on-disk and in-core label for da0s1 from information in savedlabel: bsdlabel -R da0s1 savedlabel Display what the label would be for da0s1 using the partition layout in label_layout. This is useful for determining how much space would be allotted for various partitions with a labeling scheme using %-based or * partition sizes: bsdlabel -R -n da0s1 label_layout Install a new bootstrap on da0s1. The boot code comes from /boot/boot: bsdlabel -B da0s1 Install a new label and bootstrap. The bootstrap code comes from the file newboot in the current working directory: bsdlabel -w -B -b newboot /dev/da0s1 Completely wipe any prior information on the disk, creating a new bootable disk with a DOS partition table containing one slice, covering the whole disk. Initialize the label on this slice, then edit it. The dd(1) commands are optional, but may be necessary for some BIOSes to properly recognize the disk: dd if=/dev/zero of=/dev/da0 bs=512 count=32 fdisk -BI da0 dd if=/dev/zero of=/dev/da0s1 bs=512 count=32 bsdlabel -w -B da0s1 bsdlabel -e da0s1 This is an example disk label that uses some of the new partition size types such as %, M, G, and *, which could be used as a source file for ``bsdlabel -R ada0s1 new_label_file'': # /dev/ada0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 400M 16 4.2BSD 4096 16384 75 # (Cyl. 0 - 812*) b: 1G * swap c: * * unused e: 204800 * 4.2BSD f: 5g * 4.2BSD g: * * 4.2BSD DIAGNOSTICS
The kernel device drivers will not allow the size of a disk partition to be decreased or the offset of a partition to be changed while it is open. COMPATIBILITY
Due to the use of an uint32_t to store the number of sectors, BSD labels are restricted to a maximum of 2^32-1 sectors. This usually means 2TB of disk space. Larger disks should be partitioned using another method such as gpart(8). The various BSDs all use slightly different versions of BSD labels and are not generally compatible. SEE ALSO
ccd(4), geom(4), md(4), disktab(5), boot0cfg(8), fdisk(8), gpart(8), newfs(8) BSD
October 1, 2013 BSD
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy