cant mount CD

2013-09-12 Thread Matthias Apitz

Hello,

I have a problem mounting a CD (which works fine in Windows and Linux):

Here are the details:

# uname -a
FreeBSD vm-9Current 9.0-CURRENT FreeBSD 9.0-CURRENT #2 r220692: Sun Apr
17 03:28:12 CEST 2011
(but does not work in a recent 10-CUR either)

# cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.00 (i386-unknown-freebsd9.0) Copyright (C)
1995-2010 Jörg Schilling
Using libscg version 'schily-0.9'.
scsibus2:
2,0,0   200) 'PLDS' 'DVD+-RW DU-8A5HH' 'SD11' Removable CD-ROM
2,1,0   201) *
2,2,0   202) *
2,3,0   203) *
2,4,0   204) *
2,5,0   205) *
2,6,0   206) *
2,7,0   207) *

# cdrecord -minfo
Cdrecord-ProDVD-ProBD-Clone 3.00 (i386-unknown-freebsd9.0) Copyright (C)
1995-2010 Jörg Schilling
Using libscg version 'schily-0.9'.
No target specified, trying to find one...
Using dev=2,0,0.
Device type: Removable CD-ROM
Version: 0
Response Format: 2
Capabilities   : 
Vendor_info: 'PLDS'
Identifikation : 'DVD+-RW DU-8A5HH'
Revision   : 'SD11'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE FORCESPEED 
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P
RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Mounted media class:  CD
Mounted media type:   CD-R
Disk Is not erasable
data type:standard
disk status:  complete
session status:   complete
BG format status: none
first track:  1
number of sessions:   1
first track in last sess: 1
last track in last sess:  1
Disk Is not unrestricted
Disk type: CD-DA or CD-ROM
Disk id: 0x970900
last start of lead in: 716730
last start of lead out: 1166730

Track  Sess Type   Start Addr End Addr   Size
==
1 1 Data   0  325279 325280

Last session start address: 0
Last session leadout start address: 325280


# mount -t cd9660 -o -e /dev/acd0 /mnt
mount_cd9660: /dev/acd0: Invalid argument

the 'cdrecord -minfo' command gives lines in /var/log/messages as:

Sep 12 10:09:36 vm-9Current kernel: acd0: FAILURE - MODE_SELECT_BIG
ILLEGAL REQUEST asc=0x26 ascq=0x00 
Sep 12 10:09:36 vm-9Current kernel: acd0: FAILURE - READ_BUFFER ILLEGAL
REQUEST asc=0x24 ascq=0x00 
Sep 12 10:09:36 vm-9Current kernel: acd0: FAILURE - START_STOP ILLEGAL
REQUEST asc=0x24 ascq=0x00 
Sep 12 10:09:36 vm-9Current kernel: acd0: FAILURE - MODE_SELECT_BIG
ILLEGAL REQUEST asc=0x26 ascq=0x00

Any ideas? Thanks in advance

matthias
-- 
Matthias Apitz   |  /\ ASCII Ribbon Campaign: www.asciiribbon.org
E-mail: g...@unixarea.de |  \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X  - No proprietary attachments
phone: +49-170-4527211   |  / \ - Respect for open standards
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Shared object libaprutil-1.so.4 not found, required by libserf-1.so.0

2013-09-12 Thread Antonio Olivares
On Thu, Sep 12, 2013 at 12:36 AM, Matthew Seaman
m.sea...@infracaninophile.co.uk wrote:
 On 11/09/2013 21:03, Antonio Olivares wrote:
 [Info  19:57:22] Updating 'freebsd_texlive' source ports tree with method 
 'svn'.
 Shared object libaprutil-1.so.4 not found, required by libserf-1.so.0
 [Error 19:57:22] Subversion update failed.
 [Error 19:57:22] Failed to update the 'freebsd_texlive' ports tree.

 Yeah -- you need to update or install the package that provides
 libaprutil-1.so.  If you're using pkg(8) against a package repository
 rather than compiling your own, you could use:

 pkg check -d subversion-1.8.3

 For portmaster dependencies should be auto-updated when you run

 portmaster devel/subversion

 It might be useful to run

 portmaster --force-config -f devel/subversion

 so you can recheck all the options settings of dependencies, but this
 will rebuild portmaster and everything it depends on.

 Cheers,

 Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.

 PGP: http://www.infracaninophile.co.uk/pgpkey
 JID: matt...@infracaninophile.co.uk


Dear Dr. Matthew,

Thank you very much for your excellent advice.  Worked like a champ!
Now if I can get iced-teaweb/openjdk to open *.jnlp files to use java,
it appears that itweb-javaws is not working correctly.  Firefox
reports that the file *.jnlp downloaded, but it is not opened by java.
 Thank you very much sir for your help.

Best Regards,


Antonio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Question about a possible missing line/entry for file UPDATING (from http://svnweb.freebsd.org) - 8.4-RELEASE plus branches

2013-09-12 Thread Pablo Carboni
Hi Damien (I'm sorry for delay)

Thanks for your comments (specially for the tips / experience with your
-STABLE boxes)

Regards,
Pablo Carboni.


On Wed, Sep 4, 2013 at 2:57 PM, Damien Fleuriot m...@my.gd wrote:

 However minor the issue seems, I think it warrants a PR, if at least so
 the entry is added for the next revision of 8.4-RELEASE.


 Regarding -STABLE, while I respect your decision to be conservative and
 run -RELEASE, I'd like to point out we've not run into any problem here, in
 over 3 years with ~40 firewall boxes.



 On 4 September 2013 17:48, Pablo Carboni pcarb...@gmail.com wrote:

 Dear Damien,

 I use to install and update 'Releng'  releases (plus patches, but  not
 stable releases) in our production servers (Ok, I agree stable is fine, but
 my main reason is to be conservative under some circunstances).

 (BTW, You're right, on 8-STABLE branch, it appears the 'missing' line I
 was looking for)

 Just as a last comment, I've found this 'normal line' on stable branch
 (but not on release/releng):

 http://svnweb.freebsd.org/base/stable/8/UPDATING?view=log

 Revision 
 *251500*http://svnweb.freebsd.org/base?view=revisionrevision=251500 -
 (viewhttp://svnweb.freebsd.org/base/stable/8/UPDATING?revision=251500view=markup)
 (downloadhttp://svnweb.freebsd.org/base/stable/8/UPDATING?revision=251500view=co)
 (annotatehttp://svnweb.freebsd.org/base/stable/8/UPDATING?annotate=251500)
 - [select for 
 diffs]http://svnweb.freebsd.org/base/stable/8/UPDATING?view=logr1=251500log_pagestart=0

 Modified *Fri Jun 7 15:52:33 2013 UTC* (2 months, 4 weeks ago) by *
 pluknet*
 File length: 74494 byte(s)
 Diff to previous 
 251026http://svnweb.freebsd.org/base/stable/8/UPDATING?r1=251026r2=251500

 Add the entry for 8.4-RELEASE.


 (I think it should be added by someone to 8.4 releng branch). If this is
 the case, shouldn't be sent this 'missing entry' to anyone by the means of
  'PR' ?

 Thank you very much for your patience :)

 Regards,
 Pablo.

 On Wed, Sep 4, 2013 at 6:51 AM, Damien Fleuriot m...@my.gd wrote:

 Note that, as opposed to you, I'm tracking 8-STABLE and not 8.4-RELEASE !

 UPDATING:
 $FreeBSD: src/UPDATING,v 1.632.2.39 2013/08/23 15:21:39 svnexp Exp $

 newvers.sh:
 # $FreeBSD: src/sys/conf/newvers.sh,v 1.83.2.25 2013/08/07 08:26:07
 svnexp Exp $



 I'll check our clusters of firewalls to see if I've got any 8.4-RELEASE
 box lying around, but don't hold your breath, we almost universally track
 8-STABLE...



 On 4 September 2013 00:49, Pablo Carboni pcarb...@gmail.com wrote:

 Hello Damien,

 (First at all, thanks for your response).

 I do not want to insist too much with this silly thing, but(just in
 case)

 I've updated my sources today from 
 svn0.us-west.freebsd.org(base/releng/8.4), - previously to my first e-mail 
 - and:

 (Argentina's current TZ is GMT-3)

 -rw-r--r--  1 root  wheel  74967 Sep  3 12:11 /usr/src/UPDATING

 The 'grepped' lines, shows me:

 8.3-RELEASE
 [...]
 8.0-RELEASE

 (But 8.4 still doesn't appear).

 (However, while grepping first lines in /usr/src/sys/conf/newvers.sh
 shows me:

 # $FreeBSD: releng/8.4/sys/conf/newvers.sh 254632 2013-08-22 00:51:56Z
 delphij $

 TYPE=FreeBSD
 REVISION=8.4
 BRANCH=RELEASE-p3

 (Same svn id for UPDATING/newvers.sh).

 Any clues? (What's your svn $Id for UPDATING? - I mean, the whole line,
 the last)

 Thanks a lot!

 Regards,
 Pablo Carboni.

 P.S.: The same happens for
 svn0.us-east.freebsd.org/base/releng/8.4/UPDATING.
 http://svn0.us-east.freebsd.org/base/releng/8.4/UPDATING

 (Maybe I'm afraid for local syncing problems on my fbsd server)

 On Tue, Sep 3, 2013 at 7:13 PM, Damien Fleuriot m...@my.gd wrote:

 From:
 -rw-r--r--  1 root  wheel  75631 Aug 27 12:46 /usr/src/UPDATING


 20130607:
 8.4-RELEASE.






 On 3 September 2013 18:16, Pablo Carboni pcarb...@gmail.com wrote:

 Dear Sirs,

 Just for curious, today I was looking for the date/entry that belongs
 to
 FreeBSD 8.4-RELEASE inside UPDATING file, with no luck.

 Maybe I've made a mistake and I was looking inside a wrong file/url?

 It doesn't appear, neither

 http://svnweb.freebsd.org/base/release/8.4.0/UPDATING?revision=251259view=markup
 (RELEASE
 branch)

 nor

 http://svnweb.freebsd.org/base/releng/8.4/UPDATING?view=markuppathrev=254632
 (RELENG
 branch, currently last revision).

 (This 'little detail' includes sources for 8.4-RELEASE and branch
 8.4-RELEASE-p3, which I've downloaded recently).

 A quick  dirty search I've did on a 8.4-RELEASE-p3 box:

 grep 8\..*-RELEASE /usr/src/UPDATING

 (There is no reference for '8.4')

 Thanks in advance!

 Regards,
 Pablo Carboni
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org







___
freebsd-questions@freebsd.org mailing list

Network Question

2013-09-12 Thread Daniel Nang
Hello,

I have two computers, both running FreeBSD, accessing the
web via DHCP from the router. The setup looks like this:


   Internet
|
|
|
machine1.example.com --- Router --- machine.2.example.com
 - DHCP -- DHCP -


Both computers can access the internet with no problems.
So far so good...

My question is, if I can simultaneously have the computers access
the net as in the given picture and also let them communicate with
each other e.g. via ssh?


Thanks

Daniel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Daniel Nang
Just read your mail. I will have to take some time, to look into what you
have
said, as I have not yet used the concepts that you spoke about.

Another solution would be to install a new network card into both computers
and assign static ip addresses to them, but I do not want to do that.

Daniel



On Fri, Sep 13, 2013 at 3:06 AM, Kurt Buff kurt.b...@gmail.com wrote:

 On Thu, Sep 12, 2013 at 11:51 AM, Adam Vande More amvandem...@gmail.com
 wrote:
  On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.com
 wrote:
 
  Hello,
 
  I have two computers, both running FreeBSD, accessing the
  web via DHCP from the router. The setup looks like this:
 
 
 Internet
  |
  |
  |
  machine1.example.com --- Router --- machine.2.example.com
   - DHCP -- DHCP -
 
 
  Both computers can access the internet with no problems.
  So far so good...
 
  My question is, if I can simultaneously have the computers access
  the net as in the given picture and also let them communicate with
  each other e.g. via ssh?
 
 
 
  machine1# ssh `ip of machine2`


 There's the rub. How do you determine the IP address of the other machine?

 DHCP, unless configured with reservations, doesn't guarantee IP
 addresses to remain the with machines that request addresses.

 So, there are two ways to solve this problem:

 o- As I mention above, use reservations in DHCP to tie IP addresses to
 MAC addresses - this is a fairly manual process, and doesn't scale
 beyond a few machines..

 o- Use a DNS/DHCP solution whereby DNS is dynamically updated with an
 IP address by the DHCP server when a machine leases an IP address to a
 machine. This requires some work up front, but then takes care of
 itself, so scales fairly well.

 Kurt
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Adam Vande More
On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote:

 Hello,

 I have two computers, both running FreeBSD, accessing the
 web via DHCP from the router. The setup looks like this:


Internet
 |
 |
 |
 machine1.example.com --- Router --- machine.2.example.com
  - DHCP -- DHCP -


 Both computers can access the internet with no problems.
 So far so good...

 My question is, if I can simultaneously have the computers access
 the net as in the given picture and also let them communicate with
 each other e.g. via ssh?



machine1# ssh `ip of machine2`


-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cant mount CD

2013-09-12 Thread Polytropon
On Thu, 12 Sep 2013 10:13:28 +0200, Matthias Apitz wrote:
 # mount -t cd9660 -o -e /dev/acd0 /mnt
 mount_cd9660: /dev/acd0: Invalid argument

Try cd instead of acd. The acd interface has been deprecated
in favour of SCSI over ATA for optical devices (including
ATAPI CD and DVD drives).

# mount_cd9660 -e /dev/cd0 /mnt

In case the extended attributes cause problems, try first
without using them in the normal way:

# mount -t cd9660 -o ro /dev/cd0 /mnt

Permission problems should not count here.

Also make sure it's really an ISO-9660 file system:

% file -s /dev/acd0 
/dev/acd0: ISO 9660 CD-ROM filesystem data '0110241307 

This example from a 8.2 system where the acd subsystem is still
being used. :-)



 the 'cdrecord -minfo' command gives lines in /var/log/messages as:
 
 Sep 12 10:09:36 vm-9Current kernel: acd0: FAILURE - MODE_SELECT_BIG
 ILLEGAL REQUEST asc=0x26 ascq=0x00 
 Sep 12 10:09:36 vm-9Current kernel: acd0: FAILURE - READ_BUFFER ILLEGAL
 REQUEST asc=0x24 ascq=0x00 
 Sep 12 10:09:36 vm-9Current kernel: acd0: FAILURE - START_STOP ILLEGAL
 REQUEST asc=0x24 ascq=0x00 
 Sep 12 10:09:36 vm-9Current kernel: acd0: FAILURE - MODE_SELECT_BIG
 ILLEGAL REQUEST asc=0x26 ascq=0x00

Proper cabling? Drive and media not covered with dust? ;-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Daniel Nang
That was easier than I thought. My initial approach already looked
something like
this, except that for the ip address I always put the machine's name as in:

machine1# ssh u...@machine2.example.com

which results in

ssh: Could not resolve hostname machine2.example.com: hostname nor servname
provided, or not known

I think the problem here lies with the /etc/hosts file where machine1 and
machine2 have
to be registered respectively. The thing here is that the ip isn't static
which makes
this approach somewhat difficult to realize.

Got it.

Thanks.



On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More amvandem...@gmail.comwrote:

 On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote:

 Hello,

 I have two computers, both running FreeBSD, accessing the
 web via DHCP from the router. The setup looks like this:


Internet
 |
 |
 |
 machine1.example.com --- Router --- machine.2.example.com
  - DHCP -- DHCP -


 Both computers can access the internet with no problems.
 So far so good...

 My question is, if I can simultaneously have the computers access
 the net as in the given picture and also let them communicate with
 each other e.g. via ssh?



 machine1# ssh `ip of machine2`


 --
 Adam Vande More

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Kurt Buff
On Thu, Sep 12, 2013 at 11:51 AM, Adam Vande More amvandem...@gmail.com wrote:
 On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang daniel.nan...@gmail.comwrote:

 Hello,

 I have two computers, both running FreeBSD, accessing the
 web via DHCP from the router. The setup looks like this:


Internet
 |
 |
 |
 machine1.example.com --- Router --- machine.2.example.com
  - DHCP -- DHCP -


 Both computers can access the internet with no problems.
 So far so good...

 My question is, if I can simultaneously have the computers access
 the net as in the given picture and also let them communicate with
 each other e.g. via ssh?



 machine1# ssh `ip of machine2`


There's the rub. How do you determine the IP address of the other machine?

DHCP, unless configured with reservations, doesn't guarantee IP
addresses to remain the with machines that request addresses.

So, there are two ways to solve this problem:

o- As I mention above, use reservations in DHCP to tie IP addresses to
MAC addresses - this is a fairly manual process, and doesn't scale
beyond a few machines..

o- Use a DNS/DHCP solution whereby DNS is dynamically updated with an
IP address by the DHCP server when a machine leases an IP address to a
machine. This requires some work up front, but then takes care of
itself, so scales fairly well.

Kurt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


initialize msdosfs on memory stick?

2013-09-12 Thread Gary Aitken
I can't seem to find how to do this in the handbook or man pages.
I need to initialize a usb memory stick with an msdos file system.
Is it possible, or do I have to find a windoze system?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Adam Vande More
On Thu, Sep 12, 2013 at 2:06 PM, Kurt Buff kurt.b...@gmail.com wrote:


 There's the rub. How do you determine the IP address of the other machine?


Normally I look at /var/db/dhcpd/dhcpd.leases.  Pretty much all of the home
routers also have the information accessible on it's administration page.
Really depends on that exact setup as there are a number of ways.

-- 
Adam Vande More
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network Question

2013-09-12 Thread Eugene

Hi Daniel,

The easiest way is to check the LAN Config (or similar) page of the router. 
They usually allow one to specify fixed IP and hostname for the DHCP clients 
based on the MAC addresses.


Best wishes
Eugene

-Original Message- 
From: Daniel Nang

Sent: Thursday, September 12, 2013 11:16 PM
To: Adam Vande More
Cc: freebsd-questions@freebsd.org
Subject: Re: Network Question

That was easier than I thought. My initial approach already looked
something like
this, except that for the ip address I always put the machine's name as in:

machine1# ssh u...@machine2.example.com

which results in

ssh: Could not resolve hostname machine2.example.com: hostname nor servname
provided, or not known

I think the problem here lies with the /etc/hosts file where machine1 and
machine2 have
to be registered respectively. The thing here is that the ip isn't static
which makes
this approach somewhat difficult to realize.

Got it.

Thanks.



On Fri, Sep 13, 2013 at 2:51 AM, Adam Vande More 
amvandem...@gmail.comwrote:


On Thu, Sep 12, 2013 at 1:45 PM, Daniel Nang 
daniel.nan...@gmail.comwrote:



Hello,

I have two computers, both running FreeBSD, accessing the
web via DHCP from the router. The setup looks like this:


   Internet
|
|
|
machine1.example.com --- Router --- machine.2.example.com
 - DHCP -- DHCP -


Both computers can access the internet with no problems.
So far so good...

My question is, if I can simultaneously have the computers access
the net as in the given picture and also let them communicate with
each other e.g. via ssh?




machine1# ssh `ip of machine2`


--
Adam Vande More


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Polytropon
On Thu, 12 Sep 2013 16:13:11 -0600, Gary Aitken wrote:
 On 09/12/13 15:51, Polytropon wrote:
  On Thu, 12 Sep 2013 15:39:26 -0600, Gary Aitken wrote:
  I can't seem to find how to do this in the handbook or man pages.
  I need to initialize a usb memory stick with an msdos file system.
  Is it possible, or do I have to find a windoze system?
  
  It is possible. The OS provides the newfs_msdos tool.
  There is no need to deal with Windows for this task.
  
 
 Great, thanks.
 I checked the newfs manpage but didn't look too carefully when the summary
 line said construct a new UFS1/UFS2 file system

That's correct: newfs refers to newfs_ufs (which obviously
initializes a UFS file system), but there are other newfs_*
just as there are corresponding (and more) mount_* commands.

See man newfs_msdos for more details.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Polytropon
On Thu, 12 Sep 2013 15:39:26 -0600, Gary Aitken wrote:
 I can't seem to find how to do this in the handbook or man pages.
 I need to initialize a usb memory stick with an msdos file system.
 Is it possible, or do I have to find a windoze system?

It is possible. The OS provides the newfs_msdos tool.
There is no need to deal with Windows for this task.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Gary Aitken
On 09/12/13 15:51, Polytropon wrote:
 On Thu, 12 Sep 2013 15:39:26 -0600, Gary Aitken wrote:
 I can't seem to find how to do this in the handbook or man pages.
 I need to initialize a usb memory stick with an msdos file system.
 Is it possible, or do I have to find a windoze system?
 
 It is possible. The OS provides the newfs_msdos tool.
 There is no need to deal with Windows for this task.
 

Great, thanks.
I checked the newfs manpage but didn't look too carefully when the summary
line said construct a new UFS1/UFS2 file system

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount: /dev/ada0p1: Device busy Busy with what?

2013-09-12 Thread Polytropon
On Fri, 13 Sep 2013 00:54:01 +0200, Per olof Ljungmark wrote:
 I have apart from the boot drives a SATA disk for storage. Usually I
 would mount it with
 mount /dev/ada0p1 /archive
 but as my last reboot into
 FreeBSD 9.1-STABLE #0 r252369
 I cannot mount the disk, I get
 mount: /dev/ada0p1: Device busy
 
 Well, busy with what?
 
 fuser -m /dev/ada0p1
 /dev/ada0p1:
 
 I REALLY need to acces trhis UFS formatted drive, how can I convice it
 that everything is ok and it's not really busy with anything?
 
 Could anyone please help to sort this please?

Maybe a fsck is running on the disk device? Also check mount -v
if the disk is really unmounted. Make sure any running fsck has
been finished and try again. In worst case, manually initiate a
file system check. Then try mounting the disk again.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mount: /dev/ada0p1: Device busy Busy with what?

2013-09-12 Thread Per olof Ljungmark
I have apart from the boot drives a SATA disk for storage. Usually I
would mount it with
mount /dev/ada0p1 /archive
but as my last reboot into
FreeBSD 9.1-STABLE #0 r252369
I cannot mount the disk, I get
mount: /dev/ada0p1: Device busy

Well, busy with what?

fuser -m /dev/ada0p1
/dev/ada0p1:

I REALLY need to acces trhis UFS formatted drive, how can I convice it
that everything is ok and it's not really busy with anything?

Could anyone please help to sort this please?

TIA

//per
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Warren Block

On Thu, 12 Sep 2013, Gary Aitken wrote:


I can't seem to find how to do this in the handbook or man pages.
I need to initialize a usb memory stick with an msdos file system.
Is it possible, or do I have to find a windoze system?


Sure, it's possible.  For maximum compatibility, I'd suggest creating an 
MBR layout on it.  Some devices expect that.  Assuming it is da0 (make 
sure) and that everything on it has been backed up...


# gpart destroy -F da0
# gpart create -s mbr da0
# gpart add -t \!12 da0
# newfs_msdos -F32 /dev/da0s1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mount: /dev/ada0p1: Device busy Busy with what?

2013-09-12 Thread Per olof Ljungmark
On 2013-09-13 01:30, Polytropon wrote:
 On Fri, 13 Sep 2013 00:54:01 +0200, Per olof Ljungmark wrote:
 I have apart from the boot drives a SATA disk for storage. Usually I
 would mount it with
 mount /dev/ada0p1 /archive
 but as my last reboot into
 FreeBSD 9.1-STABLE #0 r252369
 I cannot mount the disk, I get
 mount: /dev/ada0p1: Device busy

 Well, busy with what?

 fuser -m /dev/ada0p1
 /dev/ada0p1:

 I REALLY need to acces trhis UFS formatted drive, how can I convice it
 that everything is ok and it's not really busy with anything?

 Could anyone please help to sort this please?
 
 Maybe a fsck is running on the disk device? Also check mount -v
 if the disk is really unmounted. Make sure any running fsck has
 been finished and try again. In worst case, manually initiate a
 file system check. Then try mounting the disk again.

Yes, I've done at least five fsck's with different options and there has
not been any complaints. The drive is not mounted at boot time.

Anyway, mount -v seems to have sorted it. It was already mounted to a
different mountpoint due to my own brain damage apparently although I
cannot recall ever doing it. Problem solved.

Thank you!

//per
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Geom Multipath

2013-09-12 Thread Outback Dingo
does geom_multipath have some automatic type detection of mutipath drives?
like in solaris?
or is it all a manual process of labelling and such ??
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cant mount CD

2013-09-12 Thread Matthias Apitz
El día Thursday, September 12, 2013 a las 02:23:59PM +0100, Paul Wootton 
escribió:

 On 09/12/13 09:13, Matthias Apitz wrote:
 
  # mount -t cd9660 -o -e /dev/acd0 /mnt
  mount_cd9660: /dev/acd0: Invalid argument
 It's not a UDF format disk is it? If so, try mount_udf instead

Thanks to Paul, UDF was the trick; I never ever came across UDF before;

matthias
-- 
Sent from my FreeBSD netbook

Matthias Apitz, g...@unixarea.de, http://www.unixarea.de/ f: +49-170-4527211
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)   
  
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Gary Aitken
On 09/12/13 16:26, Polytropon wrote:
 On Thu, 12 Sep 2013 16:13:11 -0600, Gary Aitken wrote:
 On 09/12/13 15:51, Polytropon wrote:
 On Thu, 12 Sep 2013 15:39:26 -0600, Gary Aitken wrote:
 I can't seem to find how to do this in the handbook or man pages.
 I need to initialize a usb memory stick with an msdos file system.
 Is it possible, or do I have to find a windoze system?

 It is possible. The OS provides the newfs_msdos tool.
 There is no need to deal with Windows for this task.


 Great, thanks.
 I checked the newfs manpage but didn't look too carefully when the summary
 line said construct a new UFS1/UFS2 file system
 
 That's correct: newfs refers to newfs_ufs (which obviously
 initializes a UFS file system), but there are other newfs_*
 just as there are corresponding (and more) mount_* commands.
 
 See man newfs_msdos for more details.

I see that; but was surprised newfs didn't see-also newfs_msdosfs.

Anyhoo...  ugh, I think I just screwed it up, not thinking things through.

After doing 

# newfs_msdos -F 32 -S 4096 /dev/da0
newfs_msdos: trim 62 sectors to adjust to a multiple of 63
/dev/da0: 979584 sectors in 30612 FAT32 clusters (131072 bytes/cluster)
BytesPerSec=4096 SecPerClust=32 ResSectors=4 FATs=2 Media=0xf0 SecPerTrack=63 
Heads=255 HiddenSecs=0 HugeSectors=979650 FATsecs=30 RootCluster=2 FSInfo=1 
Backup=2

I can't mount it, and there are no partitions:

# ls /dev/da0*
/dev/da0
# mount -t msdosfs /dev/da0 /mnt/memstick
mount_msdosfs: /dev/da0: Invalid argument

Normally there is a /dev/da0s1.

I suspect I *should* have used /dev/da0s1 in the newfs_msdos cmd.

So, attempting to re-establish the partitions:

#gpart create -s MBR da0
da0 created
# gpart show -l da0
= 63  7837633  da0  MBR  (3.8G)
   63  7837633   - free -  (3.8G)
# gpart add -t mbr da0
gpart: Invalid argument

now what?
Is mbr the wrong kind of partition type?
man gpart indicates the MBR scheme requires the GEOM_PART_MBR kernel option;
since the create succeeded, I'm assuming this is present?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Fbsd8

Gary Aitken wrote:

On 09/12/13 16:26, Polytropon wrote:

On Thu, 12 Sep 2013 16:13:11 -0600, Gary Aitken wrote:

On 09/12/13 15:51, Polytropon wrote:

On Thu, 12 Sep 2013 15:39:26 -0600, Gary Aitken wrote:

I can't seem to find how to do this in the handbook or man pages.
I need to initialize a usb memory stick with an msdos file system.
Is it possible, or do I have to find a windoze system?

It is possible. The OS provides the newfs_msdos tool.
There is no need to deal with Windows for this task.


Great, thanks.
I checked the newfs manpage but didn't look too carefully when the summary
line said construct a new UFS1/UFS2 file system

That's correct: newfs refers to newfs_ufs (which obviously
initializes a UFS file system), but there are other newfs_*
just as there are corresponding (and more) mount_* commands.

See man newfs_msdos for more details.


I see that; but was surprised newfs didn't see-also newfs_msdosfs.

Anyhoo...  ugh, I think I just screwed it up, not thinking things through.

After doing 


# newfs_msdos -F 32 -S 4096 /dev/da0
newfs_msdos: trim 62 sectors to adjust to a multiple of 63
/dev/da0: 979584 sectors in 30612 FAT32 clusters (131072 bytes/cluster)
BytesPerSec=4096 SecPerClust=32 ResSectors=4 FATs=2 Media=0xf0 SecPerTrack=63 
Heads=255 HiddenSecs=0 HugeSectors=979650 FATsecs=30 RootCluster=2 FSInfo=1 
Backup=2

I can't mount it, and there are no partitions:

# ls /dev/da0*
/dev/da0
# mount -t msdosfs /dev/da0 /mnt/memstick
mount_msdosfs: /dev/da0: Invalid argument

Normally there is a /dev/da0s1.

I suspect I *should* have used /dev/da0s1 in the newfs_msdos cmd.

So, attempting to re-establish the partitions:

#gpart create -s MBR da0
da0 created
# gpart show -l da0
= 63  7837633  da0  MBR  (3.8G)
   63  7837633   - free -  (3.8G)
# gpart add -t mbr da0
gpart: Invalid argument

now what?
Is mbr the wrong kind of partition type?
man gpart indicates the MBR scheme requires the GEOM_PART_MBR kernel option;
since the create succeeded, I'm assuming this is present?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




read this how to
http://forums.freebsd.org/showthread.php?t=13780




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Gary Aitken
On 09/12/13 17:52, Warren Block wrote:
 On Thu, 12 Sep 2013, Gary Aitken wrote:
 
 I can't seem to find how to do this in the handbook or man pages. I
 need to initialize a usb memory stick with an msdos file system. Is
 it possible, or do I have to find a windoze system?
 
 Sure, it's possible.  For maximum compatibility, I'd suggest creating
 an MBR layout on it.  Some devices expect that.  Assuming it is da0
 (make sure) and that everything on it has been backed up...
 
 # gpart destroy -F da0 
 # gpart create -s mbr da0 
 # gpart add -t \!12 da0 
 # newfs_msdos -F32 /dev/da0s1 

That worked, thanks.

Where is the magic file type !12 described?
I don't see it as one of the possibilities in man gpart.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Warren Block

On Thu, 12 Sep 2013, Gary Aitken wrote:


On 09/12/13 17:52, Warren Block wrote:

On Thu, 12 Sep 2013, Gary Aitken wrote:


I can't seem to find how to do this in the handbook or man pages. I
need to initialize a usb memory stick with an msdos file system. Is
it possible, or do I have to find a windoze system?


Sure, it's possible.  For maximum compatibility, I'd suggest creating
an MBR layout on it.  Some devices expect that.  Assuming it is da0
(make sure) and that everything on it has been backed up...

# gpart destroy -F da0
# gpart create -s mbr da0
# gpart add -t \!12 da0
# newfs_msdos -F32 /dev/da0s1


That worked, thanks.

Where is the magic file type !12 described?
I don't see it as one of the possibilities in man gpart.


It's one of the many MS-DOS FAT variations:
http://en.wikipedia.org/wiki/Partition_type
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: initialize msdosfs on memory stick?

2013-09-12 Thread Gary Aitken
On 09/12/13 20:58, Warren Block wrote:
 On Thu, 12 Sep 2013, Gary Aitken wrote:
 
 On 09/12/13 17:52, Warren Block wrote:
 On Thu, 12 Sep 2013, Gary Aitken wrote:

 I can't seem to find how to do this in the handbook or man pages. I
 need to initialize a usb memory stick with an msdos file system. Is
 it possible, or do I have to find a windoze system?

 Sure, it's possible.  For maximum compatibility, I'd suggest creating
 an MBR layout on it.  Some devices expect that.  Assuming it is da0
 (make sure) and that everything on it has been backed up...

 # gpart destroy -F da0
 # gpart create -s mbr da0
 # gpart add -t \!12 da0
 # newfs_msdos -F32 /dev/da0s1

 That worked, thanks.

 Where is the magic file type !12 described?
 I don't see it as one of the possibilities in man gpart.
 
 It's one of the many MS-DOS FAT variations:
 http://en.wikipedia.org/wiki/Partition_type

Not fair, that makes it really magic ;-)
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


lprof startup issue, QAssistantClient not found

2013-09-12 Thread Gary Aitken
After installing (and reinstalling) devel/lprof,
I keep getting the error:

The QAssistantClient executable was not found.  Make sure that 
 assistant(.exe)is located either in your PATH or in the $QTDIR/bin directory.  
 
 Help will not be availble until this is corrected.

I have both
  devel/qt4-assistant
  devel/qt4-assistant-adp
installed, but that doesn't seem to make any difference.

assistant-qt4 and assistant_adp both exist in /usr/local/bin

If I create a symbolic link of assistant to either of the assistant* 
executables I no longer get the error message, but no help shows up either...

ideas?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org