Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jun 2013 11:55:38 -0400
From:      "Joseph Mays" <mays@win.net>
To:        <freebsd-questions@freebsd.org>
Subject:   USB can't mount msdosfs drive
Message-ID:  <D16334484B0C4155A21C15070F51738B@Gantry>

next in thread | raw e-mail | index | archive | help
Tried several iterations, though it=E2=80=99s clearly a fat32 formatted =
USB drive. Shown  below are the results of fdisk and the mount_msdosfs =
command.


root@warehouse:/root # fdisk /dev/da2
******* Working on device /dev/da2 *******
parameters extracted from in-core disklabel are:
cylinders=3D1897 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=3D1897 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 8064, size 30473088 (14879 Meg), flag 80 (active)
        beg: cyl 1/ head 0/ sector 1;
        end: cyl 706/ head 115/ sector 52
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

root@warehouse:/root # mount_msdosfs /dev/da2s1 /usb2
mount_msdosfs: /dev/da2s1: Invalid argument
root@warehouse:/root #
From owner-freebsd-questions@FreeBSD.ORG  Wed Jun  5 16:33:06 2013
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
 by hub.freebsd.org (Postfix) with ESMTP id 14E46BE0
 for <freebsd-questions@freebsd.org>; Wed,  5 Jun 2013 16:33:06 +0000 (UTC)
 (envelope-from mays@win.net)
Received: from filter2.win.net (filter2.win.net [216.24.27.102])
 by mx1.freebsd.org (Postfix) with ESMTP id CFA9B1215
 for <freebsd-questions@freebsd.org>; Wed,  5 Jun 2013 16:33:05 +0000 (UTC)
Received: from nb-202.win.net (nb-202.win.net [216.24.27.202])
 by filter2.win.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
 r55GX5O4005046
 for <freebsd-questions@freebsd.org>; Wed, 5 Jun 2013 12:33:05 -0400
Received: from Gantry (pool245.office.win.net [216.24.33.245])
 by nb-202.win.net (Postfix) with SMTP id 3DFD02297B
 for <freebsd-questions@freebsd.org>; Wed,  5 Jun 2013 12:33:05 -0400 (EDT)
Message-ID: <57757F5DB92D498C83D93D04BA6337BB@Gantry>
From: "Joseph Mays" <mays@win.net>
To: <freebsd-questions@freebsd.org>
Subject: Re: USB can't mount msdosfs drive
Date: Wed, 5 Jun 2013 12:33:13 -0400
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 15.4.3538.513
X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513
X-Spam-Score: undef - mays@win.net is whitelisted.
X-CanIt-Geo: ip=216.24.27.202; country=US; region=KY; city=Louisville;
 postalcode=40204; latitude=38.2390; longitude=-85.7174; metrocode=529;
 areacode=502; http://maps.google.com/maps?q=38.2390,-85.7174&z=6
X-CanItPRO-Stream: Outbound:default (inherits from base:default)
X-Canit-Stats-ID: 01JIEx5SF - 59ef27666400 - 20130605
X-Antispam-Training-Forget: http://filter.win.net/canit/b.php?i=01JIEx5SF&m=59ef27666400&t=20130605&c=f
X-Antispam-Training-Nonspam: http://filter.win.net/canit/b.php?i=01JIEx5SF&m=59ef27666400&t=20130605&c=n
X-Antispam-Training-Spam: http://filter.win.net/canit/b.php?i=01JIEx5SF&m=59ef27666400&t=20130605&c=s
X-Scanned-By: CanIt (www . roaringpenguin . com) on 216.24.27.102
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Jun 2013 16:33:06 -0000

One item of note =E2=80=93 I did not notice this before, the but =
following messages are appearing in dmesg whenever I try to mount this =
device. Note that I have another msdosfs usb stick mounted in usb0, that =
mount worked fine first try.

WARNING: mount of da2s1 denied due to unsupported optional features

From: Joseph Mays=20
Sent: Wednesday, June 05, 2013 11:55 AM
To: freebsd-questions@freebsd.org=20
Subject: USB can't mount msdosfs drive

Tried several iterations, though it=E2=80=99s clearly a fat32 formatted =
USB drive. Shown  below are the results of fdisk and the mount_msdosfs =
command.


root@warehouse:/root # fdisk /dev/da2
******* Working on device /dev/da2 *******
parameters extracted from in-core disklabel are:
cylinders=3D1897 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=3D1897 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 8064, size 30473088 (14879 Meg), flag 80 (active)
        beg: cyl 1/ head 0/ sector 1;
        end: cyl 706/ head 115/ sector 52
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

root@warehouse:/root # mount_msdosfs /dev/da2s1 /usb2
mount_msdosfs: /dev/da2s1: Invalid argument
root@warehouse:/root #
From owner-freebsd-questions@FreeBSD.ORG  Wed Jun  5 16:56:54 2013
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by hub.freebsd.org (Postfix) with ESMTP id 8613F20D
 for <freebsd-questions@freebsd.org>; Wed,  5 Jun 2013 16:56:54 +0000 (UTC)
 (envelope-from talayeh.asadi@gmail.com)
Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com
 [IPv6:2607:f8b0:4001:c03::234])
 by mx1.freebsd.org (Postfix) with ESMTP id 5C2F41302
 for <freebsd-questions@freebsd.org>; Wed,  5 Jun 2013 16:56:54 +0000 (UTC)
Received: by mail-ie0-f180.google.com with SMTP id b11so4351307iee.11
 for <freebsd-questions@freebsd.org>; Wed, 05 Jun 2013 09:56:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:reply-to:sender:from:date:x-google-sender-auth
 :message-id:subject:to:content-type;
 bh=rVcL91q1rb7kDbzat5biRmO7TICz5BWrHWFN8EyAvb0=;
 b=gadRR5vsxPD1eq4Rx3TPjIWoyfaikF8fJE93k2olVxYHjNVnGGhA5ScpdjN8Vkqw85
 oClIR6S3TzjLjRl8QuAq6pe3nl+Q0WkVQfp+W1P8FPDcCftne0jasJG6KUFqkJ5mQphP
 bKEkj0dEiEJYRT2G2Bu322RY2DHFTbW7On6OV72GleuUgdflE6uAanT6d3soCNX6l+99
 yPJ4L4BMod2SUvEqle+dvj93Cg8RAGCEbFaEnqmQSidnhHNnxWifaCu9vcs4gfMVsG21
 Pd5RhwOO/sEDS1egQtxnxmQgrDghelRPo6yL9aTqkfg+YmpHdBd3bWwAErHLTB4oBUyf
 lgJA==
X-Received: by 10.50.44.8 with SMTP id a8mr3689819igm.88.1370451414056; Wed,
 05 Jun 2013 09:56:54 -0700 (PDT)
MIME-Version: 1.0
Sender: talayeh.asadi@gmail.com
Received: by 10.42.175.131 with HTTP; Wed, 5 Jun 2013 09:56:32 -0700 (PDT)
From: takCoder <tak.official@gmail.com>
Date: Wed, 5 Jun 2013 21:26:32 +0430
X-Google-Sender-Auth: zB3dGqGaI7H9YsHaBrx_8qcZtyA
Message-ID: <CAPkyVLzZDD29aPg97+oVDQVSt-Y6ezrYWd+ff0nzQgeeJKdb6Q@mail.gmail.com>
Subject: getting system's telnet sessions' pid per pty
To: freebsd-questions@freebsd.org
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: tak.official@gmail.com
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Jun 2013 16:56:54 -0000

Hi everyone :)

Do you have any ideas how i can separate telnet session's pid per pty it
uses ??

i have written a reporter shell which prints out all current remote
sessions' pid per tty per user. My shell uses 'pstree' tool together with
'w' command outputs to do so.

Everything is fine. I just can't figure it out when one user makes more
than one telnet session to my system! i have all of that user's telnet
sessions' pids, but i can not figure it out to which pts they are related.

if only i could trust on increasing pid assignment!! then i could use time
entry in 'w' command's output to relate them.. Also, I'd rather not to keep
old data of the time each session is created in a common structure to use
it later on as well, i am trying to generate this list dynamically, based
on current sessions available while calling my shell, using the tty which
runs it..

any ideas? any other command line tools which may help me?? any command
which gives me pid per tty information or alike?

Looking forward to any helpful  points and ideas from you all.. :)

Best Regards,
takCoder



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D16334484B0C4155A21C15070F51738B>