From owner-freebsd-geom@FreeBSD.ORG Sun Dec 19 12:12:53 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 167B9106566B for ; Sun, 19 Dec 2010 12:12:53 +0000 (UTC) (envelope-from lulf@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [IPv6:2001:700:300:1900::1:2]) by mx1.freebsd.org (Postfix) with ESMTP id 5DEEA8FC12 for ; Sun, 19 Dec 2010 12:12:52 +0000 (UTC) Received: from 38.247.251.212.customer.cdi.no ([212.251.247.38] helo=[192.168.1.2]) by decibel.pvv.ntnu.no with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PUI86-00083V-9w; Sun, 19 Dec 2010 13:12:49 +0100 Message-ID: <4D0DF6B7.4000904@pvv.ntnu.no> Date: Sun, 19 Dec 2010 13:12:39 +0100 From: Ulf Lilleengen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Lev Serebryakov References: <1701263071.20101219003441@serebryakov.spb.ru> In-Reply-To: <1701263071.20101219003441@serebryakov.spb.ru> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.2 (/) X-Spam-Report: Status=No hits=0.2 required=5.0 tests=ALL_TRUSTED, TVD_RCVD_IP version=3.2.4 Cc: freebsd-geom@FreeBSD.org Subject: Re: Good configurable I/O benchmark? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2010 12:12:53 -0000 On 12/18/2010 10:34 PM, Lev Serebryakov wrote: > Hello, Freebsd-geom. > > > Is here any good I/O benchmark? What do I mean by `good': > > (1) Multiprocess workloads with different workloads per processe (thread) > (a) Sequential R or W. > (b) Random R and W with configurable R:W ratio. > (c) Configurable min/max/avg distance seek in random workloads. > (2) All above with configurable block size. > (3) All of above with configurable I/O queue depth. > I have used benchmarks/rawio in the past, which seems to work well, but not sure it fits all your requirements though. Ulf From owner-freebsd-geom@FreeBSD.ORG Mon Dec 20 11:06:57 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 187F91065693 for ; Mon, 20 Dec 2010 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 05B4A8FC1A for ; Mon, 20 Dec 2010 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBKB6u2i024537 for ; Mon, 20 Dec 2010 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBKB6uwm024535 for freebsd-geom@FreeBSD.org; Mon, 20 Dec 2010 11:06:56 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Dec 2010 11:06:56 GMT Message-Id: <201012201106.oBKB6uwm024535@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 11:06:57 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/152609 geom [geli] geli onetime on gzero panics o kern/150858 geom [geom] [geom_label] [patch] glabel(8) is not compatibl o kern/150626 geom [geom] [gjournal] gjournal(8) destroys label o kern/150555 geom [geom] gjournal unusable on GPT partitions o kern/150334 geom [geom] [udf] [patch] geom label does not support UDF o kern/149762 geom volume labels with rogue characters o bin/149215 geom [panic] [geom_part] gpart(8): Delete linux's slice via o kern/147852 geom [geom] [panic] graid3 panic: wrong offset 16384 for se o kern/147851 geom [geom] [panic] graid3 panic: g_read_data: invalid leng o kern/147667 geom [gmirror] Booting with one component of a gmirror, the o kern/147664 geom [geom] [patch] Add the ability to create linux and fat o kern/145818 geom [geom] geom_stat_open showing cached information for n o kern/145042 geom [geom] System stops booting after printing message "GE o kern/144962 geom [geom] panic when accessing GPT disk with a large numb o kern/144905 geom [geom][geom_part] panic in gpart_ctlreq when unpluggin o kern/143455 geom gstripe(8) in RELENG_8 (31st Jan 2010) broken o kern/142563 geom [geom] [hang] ioctl freeze in zpool o kern/141740 geom [geom] gjournal(8): g_journal_destroy concurrent error s kern/141235 geom [geom_part] 8.0 no longer provides /dev entries for al o kern/140352 geom [geom] gjournal + glabel not working o kern/135898 geom [geom] Severe filesystem corruption - large files or l o kern/134922 geom [gmirror] [panic] kernel panic when use fdisk on disk o kern/134113 geom [geli] Problem setting secondary GELI key o kern/133931 geom [geli] [request] intentionally wrong password to destr o bin/132845 geom [geom] [patch] ggated(8) does not close files opened a o kern/132273 geom glabel(8): [patch] failing on journaled partition f kern/132242 geom [gmirror] gmirror.ko fails to fully initialize o kern/131353 geom [geom] gjournal(8) kernel lock p docs/130548 geom [patch] gjournal(8) man page is missing sysctls o kern/129674 geom [geom] gjournal root did not mount on boot o kern/129645 geom gjournal(8): GEOM_JOURNAL causes system to fail to boo o kern/129245 geom [geom] gcache is more suitable for suffix based provid f kern/128276 geom [gmirror] machine lock up when gmirror module is used o kern/127420 geom [geom] [gjournal] [panic] Journal overflow on gmirrore o kern/124973 geom [gjournal] [patch] boot order affects geom_journal con o kern/124969 geom gvinum(8): gvinum raid5 plex does not detect missing s o kern/123962 geom [panic] [gjournal] gjournal (455Gb data, 8Gb journal), o kern/123122 geom [geom] GEOM / gjournal kernel lock o kern/122738 geom [geom] gmirror list "losts consumers" after gmirror de o kern/122067 geom [geom] [panic] Geom crashed during boot o kern/121364 geom [gmirror] Removing all providers create a "zombie" mir o bin/120990 geom [patch] support "BIOS Boot" partition type in gpt(8) o kern/120091 geom [geom] [geli] [gjournal] geli does not prompt for pass o kern/115856 geom [geli] ZFS thought it was degraded when it should have o kern/115547 geom [geom] [patch] [request] let GEOM Eli get password fro o kern/114532 geom [geom] GEOM_MIRROR shows up in kldstat even if compile f kern/113957 geom [gmirror] gmirror is intermittently reporting a degrad o kern/113837 geom [geom] unable to access 1024 sector size storage o kern/113419 geom [geom] geom fox multipathing not failing back o kern/107707 geom [geom] [patch] [request] add new class geom_xbox360 to o kern/94632 geom [geom] Kernel output resets input while GELI asks for o kern/90582 geom [geom] [panic] Restore cause panic string (ffs_blkfree o bin/90093 geom fdisk(8) incapable of altering in-core geometry o kern/88601 geom [geli] geli cause kernel panic under heavy disk usage o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o kern/84556 geom [geom] [panic] GBDE-encrypted swap causes panic at shu o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/79035 geom [vinum] gvinum unable to create a striped set of mirro o bin/78131 geom gbde(8) "destroy" not working. 59 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Dec 20 11:33:33 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97B5F106567A for ; Mon, 20 Dec 2010 11:33:33 +0000 (UTC) (envelope-from auronandace@googlemail.com) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6E93E8FC1E for ; Mon, 20 Dec 2010 11:33:33 +0000 (UTC) Received: by pzk27 with SMTP id 27so688315pzk.37 for ; Mon, 20 Dec 2010 03:33:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=q3yYXOTM7k7msi3smkRGe5JtXBBjJNh5p7ofpiNSYn8=; b=VCTYRkAqdTNGCGw2IrfhbxS+f8T60QIjE7yQFpOpFo3ILwI/IzhjHFTqZ6jvpmvwcT hcsGjmBCDbgCFOjh/akq/xsYWAv2v1h4QU3AJSR6KcX+RP+gKj2X7PXN4jGAHKVIxqGt XrCwpiOBj6fLtIiF1VD72pDz3XPIfDU51eldM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WvdWG03+5a0In9M3CJ8nOtB0LfKrOBcp8j0NpkwMCti8/9RAgwiMoK2AubI5sKTmu6 BlGZX4r3S9Xm7INII5/ar+nkaYSRdO1PTU4YG1pViLhVz2b4yZhQLZlgt7fkA22SqFSn l6FZeJxyi3xbZ3K/INFIWUTjuWEgcbjk75/Ic= MIME-Version: 1.0 Received: by 10.142.161.11 with SMTP id j11mr3298073wfe.133.1292843372947; Mon, 20 Dec 2010 03:09:32 -0800 (PST) Received: by 10.142.191.9 with HTTP; Mon, 20 Dec 2010 03:09:32 -0800 (PST) Date: Mon, 20 Dec 2010 11:09:32 +0000 Message-ID: From: Mathew Roberts To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Mounting a logical ntfs partition X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 11:33:33 -0000 Hello, I am running pcbsd 8.1 64bit and am trying to mount a logical ntfs partition. I have 2 ntfs partitions but the dolphin file manager only sees one of them (my primary one). Below is my disk layout: sda1 (ntfs) sda2 (ext2) sda3 (pcbsd/ufs2) sda4 (extended partition containing logical partitions) sda5 (ntfs) sda6 (ext4) sda7 (ext4) sda8 (ext2) sda9 (ext4) For some reason pcbsd doesn't detect any of my logical partitions. I have tried mounting (using su) ad0s5 (and ada0s5) but the prompt tells me there is no such file or directory. A quick look under /dev/ reveals this to be true. I double-checked by issuing the command ls /dev/ad* and the output listed the following devices: ada0 ada0s1 ada0s2 ada0s3 ada0s3a ada0s3b ada0s4 Below is the output of the command gpart show: => 63 976773105 ada0 MBR (466G) 63 1985 - free - (993K) 2048 210630656 1 !7 [active] (100G) 210632704 681289728 4 !5 (325G) 891922432 41947136 3 freebsd (20G) 933869568 42903552 2 !131 (20G) 976773120 48 - free - (24K) => 0 41947136 ada0s3 BSD (20G) 0 39606272 1 freebsd-ufs (19G) 39606272 2330624 2 freebsd-swap (1.1G) 41936896 10240 - free - (5.0M) As you can see ada0s4 is 325G. This is consistent with the size of my extended partition. However, when I issue the command gpart show ada0s4 (or ad0s4) the prompt tells me no such geom. I use my logical ntfs partition (sda5/ada0s5) regularly under both win7 and linux. Haiku also detects this partition. I am at a loss as to why pcbsd doesn't detect any of my logical partitions. Is there any other output that I can provide to help solve the issue? From owner-freebsd-geom@FreeBSD.ORG Mon Dec 20 11:58:57 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75571106564A for ; Mon, 20 Dec 2010 11:58:57 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward3.mail.yandex.net (forward3.mail.yandex.net [77.88.46.8]) by mx1.freebsd.org (Postfix) with ESMTP id 21FDD8FC19 for ; Mon, 20 Dec 2010 11:58:57 +0000 (UTC) Received: from smtp3.mail.yandex.net (smtp3.mail.yandex.net [77.88.46.103]) by forward3.mail.yandex.net (Yandex) with ESMTP id 6FBC356D93AE; Mon, 20 Dec 2010 14:58:55 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1292846335; bh=E4+SrvQ+xxVB2/WNZckBhRWzpST6Z1wNVGWH26tIyQ4=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=tKQXmezj+bEr3xNd5C+MdG5gk4sPNtLfO/rFRNnJX1rIzpE9atkf15CSDb3hhFcco gpZb6OimsZS9w+a/C5P67At3AaWnb9t6KImOa4mtdGm958JtIiZhKfogd0n/+wHBhm bL392uWjNqVnh976TDGmJCzUmxjfTTH+t4jqyUYs= Received: from [127.0.0.1] (ns.kirov.so-ups.ru [77.72.136.145]) by smtp3.mail.yandex.net (Yandex) with ESMTPSA id E728F27809E; Mon, 20 Dec 2010 14:58:54 +0300 (MSK) Message-ID: <4D0F44F7.1090108@yandex.ru> Date: Mon, 20 Dec 2010 14:58:47 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Mathew Roberts References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig25EFBC84916C4334F33366A5" Cc: freebsd-geom@freebsd.org Subject: Re: Mounting a logical ntfs partition X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 11:58:57 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig25EFBC84916C4334F33366A5 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 20.12.2010 14:09, Mathew Roberts wrote: > oesn't detect any of my logical par Can you try to boot from the 8.2-BETA1-livefs and say does it detect extended partitions or not? You can download ISO image from official ftp. ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/8.2/ --=20 WBR, Andrey V. Elsukov --------------enig25EFBC84916C4334F33366A5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJND0T9AAoJEAHF6gQQyKF6PvsH/RDBBSwjlUh7mcAVo6LOhaLr g840NgQUw5agu5bzbdDzADlxsRdcpbN4PB0rus1uvlPM4cf3wdyzeNNS7a+2+eTq zo4JQ3hNT3/p46fy9vRo1IOTpZNfVIJCHw3rtZBFwX2tMarUBuutLxTt4ycFwy60 1Rgm4+sQTG0HigRB+VhluGqGIl+M5g2KXdqeqVbMXGOwbZegwndUiiTpm1EAj8hu 2MsjGM0FbGM2mVNItQeQUPfnUPoXnvnMTFa56YuzPk8pTFnWh3EfI3Px76GEZ+++ dfxL9xawxEw4RlW+lmWqIgH080rnrA1za+FfbCX05m/pXO0tCOF+e3GrwhymkL8= =ykhy -----END PGP SIGNATURE----- --------------enig25EFBC84916C4334F33366A5-- From owner-freebsd-geom@FreeBSD.ORG Mon Dec 20 23:47:32 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F101106564A; Mon, 20 Dec 2010 23:47:32 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id E1A148FC1B; Mon, 20 Dec 2010 23:47:31 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 66C6513DF5F; Tue, 21 Dec 2010 02:47:30 +0300 (MSK) Date: Tue, 21 Dec 2010 02:47:23 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <159888671.20101221024723@serebryakov.spb.ru> To: freebsd-usb@FreeBSD.org, freebsd-geom@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in cardreader -- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 23:47:32 -0000 Hello, Freebsd-usb. FreeBSD 8.2-PRERELEASE/amd64, 4-slots USB cardreader, properly detected as da0 .. da3. SD/SDHC slot is da0: blob# camcontrol devlist at scbus0 target 0 lun 0 (ada0,pass0) at scbus1 target 0 lun 0 (ada1,pass1) at scbus2 target 0 lun 0 (ada2,pass2) at scbus3 target 0 lun 0 (ada3,pass3) at scbus4 target 0 lun 0 (ada4,pass4) at scbus5 target 0 lun 0 (ada5,pass5) at scbus6 target 0 lun 0 (pass6,da0) at scbus6 target 0 lun 1 (pass7,da1) at scbus6 target 0 lun 2 (pass8,da2) at scbus6 target 0 lun 3 (pass9,da3) blob# I inserted 16Gb SDHC card, with one FAT32 slice (it is card from my PDA). After that I've tried: blob# camcontrol rescan 6 Re-scan of bus 6 was successful blob# camcontrol inquiry da0 pass6: Removable Direct Access SCSI-0 device pass6: Serial Number 058F312D81B pass6: 40.000MB/s transfers blob# camcontrol start da0 Unit started successfully blob# camcontrol load da0 Unit started successfully, Media loaded blob# ls /dev/da0* /dev/da0 So, system doesn't seen /dev/da0s1 and I can not mount card! But card can be read for sure, because fdisk shows PROPER MBR: blob# fdisk /dev/da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=3D1953 heads=3D255 sectors/track=3D63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3D1953 heads=3D255 sectors/track=3D63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) start 8192, size 31380480 (15322 Meg), flag 0 beg: cyl 0/ head 130/ sector 3; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: blob# What should I do to mount this card?! --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 08:12:16 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01803106564A for ; Tue, 21 Dec 2010 08:12:16 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4988FC08 for ; Tue, 21 Dec 2010 08:12:15 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oBL8BwMF083483; Tue, 21 Dec 2010 09:12:13 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oBL8Bv1I083482; Tue, 21 Dec 2010 09:11:57 +0100 (CET) (envelope-from olli) Date: Tue, 21 Dec 2010 09:11:57 +0100 (CET) Message-Id: <201012210811.oBL8Bv1I083482@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG, lev@serebryakov.spb.ru In-Reply-To: <159888671.20101221024723@serebryakov.spb.ru> X-Newsgroups: list.freebsd-geom User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Tue, 21 Dec 2010 09:12:13 +0100 (CET) Cc: Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-geom@FreeBSD.ORG, lev@serebryakov.spb.ru List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 08:12:16 -0000 Lev Serebryakov wrote: > I inserted 16Gb SDHC card, with one FAT32 slice (it is card from my > PDA). After that I've tried: > [...] > blob# ls /dev/da0* > /dev/da0 # /bin/dd if=/dev/null of=/dev/da0 count=0 Then try again. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." -- Doug Gwyn From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 08:36:24 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5CD5106566C for ; Tue, 21 Dec 2010 08:36:24 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E8DCA8FC16 for ; Tue, 21 Dec 2010 08:36:22 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA00846; Tue, 21 Dec 2010 10:36:20 +0200 (EET) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1PUxhk-000Kxb-Bc; Tue, 21 Dec 2010 10:36:20 +0200 Message-ID: <4D106702.7000608@freebsd.org> Date: Tue, 21 Dec 2010 10:36:18 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101211 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-geom@freebsd.org, lev@serebryakov.spb.ru References: <159888671.20101221024723@serebryakov.spb.ru> <201012210811.oBL8Bv1I083482@lurza.secnetix.de> In-Reply-To: <201012210811.oBL8Bv1I083482@lurza.secnetix.de> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Oliver Fromme Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 08:36:24 -0000 on 21/12/2010 10:11 Oliver Fromme said the following: > Lev Serebryakov wrote: > > I inserted 16Gb SDHC card, with one FAT32 slice (it is card from my > > PDA). After that I've tried: > > [...] > > blob# ls /dev/da0* > > /dev/da0 > > # /bin/dd if=/dev/null of=/dev/da0 count=0 > > Then try again. $ true > /dev/da0 is shorter and less prone to typos. -- Andriy Gapon From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 09:12:44 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F2AA106564A; Tue, 21 Dec 2010 09:12:44 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2AE358FC21; Tue, 21 Dec 2010 09:12:43 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 9286B13DF5F; Tue, 21 Dec 2010 12:12:42 +0300 (MSK) Date: Tue, 21 Dec 2010 12:12:35 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1279680207.20101221121235@serebryakov.spb.ru> To: Andriy Gapon In-Reply-To: <4D106702.7000608@freebsd.org> References: <159888671.20101221024723@serebryakov.spb.ru> <201012210811.oBL8Bv1I083482@lurza.secnetix.de> <4D106702.7000608@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom@freebsd.org Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 09:12:44 -0000 Hello, Andriy. You wrote 21 =E4=E5=EA=E0=E1=F0=FF 2010 =E3., 11:36:18: > on 21/12/2010 10:11 Oliver Fromme said the following: >> Lev Serebryakov wrote: >> > I inserted 16Gb SDHC card, with one FAT32 slice (it is card from my >> > PDA). After that I've tried: >> > [...] >> > blob# ls /dev/da0* >> > /dev/da0 >>=20 >> # /bin/dd if=3D/dev/null of=3D/dev/da0 count=3D0 >>=20 >> Then try again. $ true > /dev/da0 > is shorter and less prone to typos. It works! But it is not intiutive at all :) Why all CAM-related commands like "load" and "open" don't work (I don't mention auto-sensing ;-))? Is it problem with my cardreader or common problem for FreeBSD? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 09:20:33 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABE061065697 for ; Tue, 21 Dec 2010 09:20:33 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0286E8FC08 for ; Tue, 21 Dec 2010 09:20:32 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA02328; Tue, 21 Dec 2010 11:20:31 +0200 (EET) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1PUyOU-000L1b-Q7; Tue, 21 Dec 2010 11:20:30 +0200 Message-ID: <4D10715E.9010909@freebsd.org> Date: Tue, 21 Dec 2010 11:20:30 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101211 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Lev Serebryakov References: <159888671.20101221024723@serebryakov.spb.ru> <201012210811.oBL8Bv1I083482@lurza.secnetix.de> <4D106702.7000608@freebsd.org> <1279680207.20101221121235@serebryakov.spb.ru> In-Reply-To: <1279680207.20101221121235@serebryakov.spb.ru> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: freebsd-geom@freebsd.org Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 09:20:33 -0000 on 21/12/2010 11:12 Lev Serebryakov said the following: > Hello, Andriy. > You wrote 21 äåêàáðÿ 2010 ã., 11:36:18: > >> on 21/12/2010 10:11 Oliver Fromme said the following: >>> Lev Serebryakov wrote: >>> > I inserted 16Gb SDHC card, with one FAT32 slice (it is card from my >>> > PDA). After that I've tried: >>> > [...] >>> > blob# ls /dev/da0* >>> > /dev/da0 >>> >>> # /bin/dd if=/dev/null of=/dev/da0 count=0 >>> >>> Then try again. > $ true > /dev/da0 >> is shorter and less prone to typos. > It works! But it is not intiutive at all :) Why all CAM-related > commands like "load" and "open" don't work (I don't mention > auto-sensing ;-))? Is it problem with my cardreader or common > problem for FreeBSD? It's kind of both. The issue results from interactions between timings in usb, cam and geom with some slower hardware. Essentially, as I understand the situation, when geom is notified about a new disk and tries to taste it for partitions, the hardware is not fully ready yet. -- Andriy Gapon From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 10:48:24 2010 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE7721065670; Tue, 21 Dec 2010 10:48:24 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A343B8FC17; Tue, 21 Dec 2010 10:48:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBLAmOck088287; Tue, 21 Dec 2010 10:48:24 GMT (envelope-from ae@freefall.freebsd.org) Received: (from ae@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBLAmOCg088283; Tue, 21 Dec 2010 10:48:24 GMT (envelope-from ae) Date: Tue, 21 Dec 2010 10:48:24 GMT Message-Id: <201012211048.oBLAmOCg088283@freefall.freebsd.org> To: freebsd@sopwith.solgatos.com, ae@FreeBSD.org, freebsd-geom@FreeBSD.org, ae@FreeBSD.org From: ae@FreeBSD.org Cc: Subject: Re: kern/141235: [geom_part] 8.0 no longer provides /dev entries for all disk slices [regression] X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 10:48:24 -0000 Synopsis: [geom_part] 8.0 no longer provides /dev entries for all disk slices [regression] State-Changed-From-To: suspended->analyzed State-Changed-By: ae State-Changed-When: Tue Dec 21 10:42:39 UTC 2010 State-Changed-Why: Reopen this PR since I've got several similar reports and i have time to work on it. Responsible-Changed-From-To: freebsd-geom->ae Responsible-Changed-By: ae Responsible-Changed-When: Tue Dec 21 10:42:39 UTC 2010 Responsible-Changed-Why: Reopen this PR since I've got several similar reports and i have time to work on it. http://www.freebsd.org/cgi/query-pr.cgi?pr=141235 From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 10:59:27 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 620DE106564A; Tue, 21 Dec 2010 10:59:27 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id D9DED8FC1C; Tue, 21 Dec 2010 10:59:26 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oBLAxAue089757; Tue, 21 Dec 2010 11:59:25 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oBLAxAm5089755; Tue, 21 Dec 2010 11:59:10 +0100 (CET) (envelope-from olli) From: Oliver Fromme Message-Id: <201012211059.oBLAxAm5089755@lurza.secnetix.de> To: avg@freebsd.org (Andriy Gapon) Date: Tue, 21 Dec 2010 11:59:10 +0100 (CET) In-Reply-To: <4D106702.7000608@freebsd.org> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Tue, 21 Dec 2010 11:59:25 +0100 (CET) Cc: lev@serebryakov.spb.ru, freebsd-geom@freebsd.org Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in cardreader X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 10:59:27 -0000 Andriy Gapon wrote: > on 21/12/2010 10:11 Oliver Fromme said the following: > > Lev Serebryakov wrote: > > > I inserted 16Gb SDHC card, with one FAT32 slice (it is card from my > > > PDA). After that I've tried: > > > [...] > > > blob# ls /dev/da0* > > > /dev/da0 > > > > # /bin/dd if=/dev/null of=/dev/da0 count=0 > > > > Then try again. > > $ true > /dev/da0 > > is shorter and less prone to typos. It's shorter, but not less prone to typos, I think. If you misspell the command, or your shell's completion happens to have a bad day, the '>' output redirection will destroy whatever is on the device. On the other hand, dd's "of=..." syntax is not understood by other commands, so it is safe even if you misstype the command. And even if you accidentally write /dev/zero instead of /dev/null, the count=0 will save you (and vice versa). Of course it's probably a good idea to wrap the command in a shell alias or function (I would call it "probe-sd" or similar), so neither the length of the command nor the possibility of typos plays a role ... Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd It's trivial to make fun of Microsoft products, but it takes a real man to make them work, and a God to make them do anything useful. From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 11:26:42 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 020ED106566B for ; Tue, 21 Dec 2010 11:26:42 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5E90F8FC12 for ; Tue, 21 Dec 2010 11:26:41 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oBLBQOFq090843; Tue, 21 Dec 2010 12:26:40 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oBLBQOT9090842; Tue, 21 Dec 2010 12:26:24 +0100 (CET) (envelope-from olli) Date: Tue, 21 Dec 2010 12:26:24 +0100 (CET) Message-Id: <201012211126.oBLBQOT9090842@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG, lev@serebryakov.spb.ru In-Reply-To: <1279680207.20101221121235@serebryakov.spb.ru> X-Newsgroups: list.freebsd-geom User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Tue, 21 Dec 2010 12:26:40 +0100 (CET) Cc: Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in ?cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-geom@FreeBSD.ORG, lev@serebryakov.spb.ru List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 11:26:42 -0000 Lev Serebryakov wrote: > It works! But it is not intiutive at all :) The command opens the device for writing (but it doesn't actually write anything), and closes it immediately. This causes the GEOM system to read and "taste" the device and look for new slices or partitions. > Why all CAM-related commands like "load" and "open" don't work All of those commands are only related to the hardware, i.e. SCSI busses and devices. They are not related to the _content_ of the device (slices etc.). In other words, the problem is on a different level. > (I don't mention auto-sensing ;-))? Is it problem with my > cardreader or common problem for FreeBSD? As Andriy wrote, it's kind of both. The main problem here is that there is no notification mechanism when you insert an SD card (the same is true for floppy disks and CD drives, by the way, but it's less of a problem because they usually don't have slices). So, FreeBSD does not know when a new card is inserted, so the GEOM system does not know when to re-read the slice table from the device. However, there is a notification for USB devices. So, if your card reader is an external USB device, you can remove it and then plug it back (with the SD card already inserted!). The USB notification mechanism will tell GEOM that there is a new device, and GEOM will read it and find the slices. Of course, this is not possible if the card reader is built-in (e.g. in a notebook), so you have to use the work-around by opening the device for writing. It's not trivial to fix the problem in a clean way. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I invented Ctrl-Alt-Delete, but Bill Gates made it famous." -- David Bradley, original IBM PC design team From owner-freebsd-geom@FreeBSD.ORG Tue Dec 21 20:01:01 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67BDC106566B for ; Tue, 21 Dec 2010 20:01:01 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id 40D9E8FC14 for ; Tue, 21 Dec 2010 20:01:01 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [66.253.36.39]) by paka.cyberleo.net (Postfix) with ESMTPSA id 099CA295FC; Tue, 21 Dec 2010 14:43:06 -0500 (EST) Message-ID: <4D11034A.8030804@cyberleo.net> Date: Tue, 21 Dec 2010 13:43:06 -0600 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101218 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-geom@FreeBSD.ORG, lev@serebryakov.spb.ru References: <201012211126.oBLBQOT9090842@lurza.secnetix.de> In-Reply-To: <201012211126.oBLBQOT9090842@lurza.secnetix.de> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Oliver Fromme Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in ?cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 20:01:01 -0000 On 12/21/2010 05:26 AM, Oliver Fromme wrote: > Lev Serebryakov wrote: > > It works! But it is not intiutive at all :) > > The command opens the device for writing (but it doesn't > actually write anything), and closes it immediately. > This causes the GEOM system to read and "taste" the > device and look for new slices or partitions. I have wondered why there isn't a command or geom verb or something that does this, if only to eliminate the hazard of typos. It seems a fairly common operation. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/ From owner-freebsd-geom@FreeBSD.ORG Thu Dec 23 13:06:16 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F43F106564A for ; Thu, 23 Dec 2010 13:06:16 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id E0C318FC29 for ; Thu, 23 Dec 2010 13:06:15 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 702F513DF61; Thu, 23 Dec 2010 16:06:13 +0300 (MSK) Date: Thu, 23 Dec 2010 16:06:04 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <55969885.20101223160604@serebryakov.spb.ru> To: CyberLeo Kitsana In-Reply-To: <4D11034A.8030804@cyberleo.net> References: <201012211126.oBLBQOT9090842@lurza.secnetix.de> <4D11034A.8030804@cyberleo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Oliver Fromme , freebsd-geom@FreeBSD.ORG Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in ?cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2010 13:06:16 -0000 Hello, CyberLeo. You wrote 21 =E4=E5=EA=E0=E1=F0=FF 2010 =E3., 22:43:06: >> The command opens the device for writing (but it doesn't >> actually write anything), and closes it immediately. >> This causes the GEOM system to read and "taste" the >> device and look for new slices or partitions. > I have wondered why there isn't a command or geom verb or something that > does this, if only to eliminate the hazard of typos. It seems a fairly > common operation. Excatly! --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-geom@FreeBSD.ORG Thu Dec 23 13:14:41 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A9AF1065672 for ; Thu, 23 Dec 2010 13:14:41 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 071958FC13 for ; Thu, 23 Dec 2010 13:14:40 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 1708813DF5F; Thu, 23 Dec 2010 16:14:40 +0300 (MSK) Date: Thu, 23 Dec 2010 16:14:30 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <141767543.20101223161430@serebryakov.spb.ru> To: Oliver Fromme In-Reply-To: <201012211126.oBLBQOT9090842@lurza.secnetix.de> References: <1279680207.20101221121235@serebryakov.spb.ru> <201012211126.oBLBQOT9090842@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom@FreeBSD.ORG Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in ?cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2010 13:14:41 -0000 Hello, Oliver. You wrote 21 =E4=E5=EA=E0=E1=F0=FF 2010 =E3., 14:26:24: > Lev Serebryakov wrote: >> It works! But it is not intiutive at all :) > The command opens the device for writing (but it doesn't > actually write anything), and closes it immediately. > This causes the GEOM system to read and "taste" the > device and look for new slices or partitions. I understand, what these command do, but geom retaste is not obvious result and it is not obvious, that it is proper (and easiest) way to trigger re-taste. >> Why all CAM-related commands like "load" and "open" don't work > All of those commands are only related to the hardware, > i.e. SCSI busses and devices. They are not related to > the _content_ of the device (slices etc.). Yes, but each device is geom_disk, and re-scanning hardware level could trigger re-taste, starting from releant geom_disks. It looks resonable. > In other words, the problem is on a different level. >> (I don't mention auto-sensing ;-))? Is it problem with my >> cardreader or common problem for FreeBSD? > The main problem here is that there is no notification > mechanism when you insert an SD card (the same is true > for floppy disks and CD drives, by the way, but it's less > of a problem because they usually don't have slices). It is strange. Any SD card reader has spring contacts, which detects card insertion. Does cardreader pass this signal? And I'm sure, that SCSI (and ATAPI, as ATAPI is SCSI-commands-over-ATA) CD-ROM drives has "media changed" signal. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-geom@FreeBSD.ORG Thu Dec 23 13:47:49 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A38BD106564A for ; Thu, 23 Dec 2010 13:47:49 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 237038FC14 for ; Thu, 23 Dec 2010 13:47:48 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oBNDlWFF033298; Thu, 23 Dec 2010 14:47:47 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oBNDlW63033296; Thu, 23 Dec 2010 14:47:32 +0100 (CET) (envelope-from olli) From: Oliver Fromme Message-Id: <201012231347.oBNDlW63033296@lurza.secnetix.de> To: lev@serebryakov.spb.ru (Lev Serebryakov) Date: Thu, 23 Dec 2010 14:47:32 +0100 (CET) In-Reply-To: <141767543.20101223161430@serebryakov.spb.ru> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Thu, 23 Dec 2010 14:47:48 +0100 (CET) Cc: freebsd-geom@FreeBSD.ORG Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in ?cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2010 13:47:49 -0000 Lev Serebryakov wrote: > Oliver Fromme wrote: > > Lev Serebryakov wrote: > > > It works! But it is not intiutive at all :) > > > > The command opens the device for writing (but it doesn't > > actually write anything), and closes it immediately. > > This causes the GEOM system to read and "taste" the > > device and look for new slices or partitions. > > I understand, what these command do, but geom retaste is not obvious > result and it is not obvious, that it is proper (and easiest) way to > trigger re-taste. Right, it is not obvious, and it's not really "proper". It's rather a bad hack. But it's currently the only work- around that exists, AFAIK. Of course, I *do* agree that there should be a better way to do it. > > > Why all CAM-related commands like "load" and "open" don't work > > > > All of those commands are only related to the hardware, > > i.e. SCSI busses and devices. They are not related to > > the _content_ of the device (slices etc.). > > Yes, but each device is geom_disk, and re-scanning hardware level > could trigger re-taste, starting from releant geom_disks. It looks > resonable. The problem is that nothing has changed, from the hardware point of view. The SCSI re-scan did not encounter any new devices or anything else, so there doesn't _seem_ to be a reason to re-taste everything. > > > (I don't mention auto-sensing ;-))? Is it problem with my > > > cardreader or common problem for FreeBSD? > > > > The main problem here is that there is no notification > > mechanism when you insert an SD card (the same is true > > for floppy disks and CD drives, by the way, but it's less > > of a problem because they usually don't have slices). > > It is strange. Any SD card reader has spring contacts, which > detects card insertion. Does cardreader pass this signal? No. As far as I know, USB mass storage devices cannot send anything on their own. They can only send replies when being asked by the USB host. So the host would have to poll for a change in regular intervals, which is not really optimal either. > And I'm sure, that SCSI (and ATAPI, as ATAPI is SCSI-commands- > over-ATA) CD-ROM drives has "media changed" signal. Yes, but only if you actively poll for it (which can have undesirable side effects, like drive LED flashing, or clicking sounds from the drive's motor). There is no notification like an interrupt signal or something like that. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The ITU has offered the IETF formal alignment with its corresponding technology, Penguins, but that won't fly." -- RFC 2549 From owner-freebsd-geom@FreeBSD.ORG Thu Dec 23 15:18:43 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C9811065694 for ; Thu, 23 Dec 2010 15:18:42 +0000 (UTC) (envelope-from lev@serebryakov.spb.ru) Received: from ftp.translate.ru (ftp.translate.ru [80.249.188.42]) by mx1.freebsd.org (Postfix) with ESMTP id 86C148FC0C for ; Thu, 23 Dec 2010 15:18:42 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by ftp.translate.ru (Postfix) with ESMTPA id 4F1A713DF5F; Thu, 23 Dec 2010 18:18:41 +0300 (MSK) Date: Thu, 23 Dec 2010 18:18:32 +0300 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1912048415.20101223181832@serebryakov.spb.ru> To: Oliver Fromme In-Reply-To: <201012231347.oBNDlW63033296@lurza.secnetix.de> References: <141767543.20101223161430@serebryakov.spb.ru> <201012231347.oBNDlW63033296@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-geom@FreeBSD.ORG Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in ?cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2010 15:18:43 -0000 Hello, Oliver. You wrote 23 =E4=E5=EA=E0=E1=F0=FF 2010 =E3., 16:47:32: > The problem is that nothing has changed, from the hardware > point of view. The SCSI re-scan did not encounter any new > devices or anything else, so there doesn't _seem_ to be a > reason to re-taste everything. "rescan" Ok, but what about "load" with successful status? --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-geom@FreeBSD.ORG Thu Dec 23 15:42:04 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E928106566C for ; Thu, 23 Dec 2010 15:42:04 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id CA4E08FC17 for ; Thu, 23 Dec 2010 15:42:03 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oBNFflqY038240; Thu, 23 Dec 2010 16:42:02 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oBNFflXV038238; Thu, 23 Dec 2010 16:41:47 +0100 (CET) (envelope-from olli) From: Oliver Fromme Message-Id: <201012231541.oBNFflXV038238@lurza.secnetix.de> To: lev@serebryakov.spb.ru (Lev Serebryakov) Date: Thu, 23 Dec 2010 16:41:47 +0100 (CET) In-Reply-To: <1912048415.20101223181832@serebryakov.spb.ru> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Thu, 23 Dec 2010 16:42:02 +0100 (CET) Cc: freebsd-geom@FreeBSD.ORG Subject: Re: FreeBSD 8.2-PRERELASE doesn't see slice on SDHC card in ?cardreader ?-- what should I do? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Dec 2010 15:42:04 -0000 Lev Serebryakov wrote: > Oliver Fromme wrote: > > The problem is that nothing has changed, from the hardware > > point of view. The SCSI re-scan did not encounter any new > > devices or anything else, so there doesn't _seem_ to be a > > reason to re-taste everything. > > "rescan" Ok, but what about "load" with successful status? I'm sorry, I'm not sure I understand your question. ``camcontrol load'' does not make sense at all with a card reader, unless it supports physical (i.e. motor-driven) ejection and loading of cards. The command just sends a SCSI start/stop unit command to the device. Devices capable of physical loading (e.g. CD-ROM drives with a tray) will then perform the appropriate action, most other devices just ignore the command and do nothing. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Life is short (You need Python)" -- Bruce Eckel, ANSI C++ Comitee member, author of "Thinking in C++" and "Thinking in Java"