Re: USB can't mount msdosfs drive

2013-06-06 Thread Joseph Mays

Just checking the obvious: you're sure this particular disk is showing
up as da2, right?


Yes.

___
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: USB can't mount msdosfs drive

2013-06-06 Thread Joseph Mays

If you do a ls /dev/da* What does it show.


root@warehouse:/root # ls -la /dev/da*
crw-r-  1 root  operator0, 123 Jun  4 17:08 /dev/da0
crw-r-  1 root  operator0, 124 Jun  4 17:08 /dev/da0s1
crw-r-  1 root  operator0, 131 Jun  4 17:08 /dev/da1
crw-r-  1 root  operator0, 132 Jun  4 17:08 /dev/da1s1
crw-r-  1 root  operator0, 138 Jun  4 17:08 /dev/da2
crw-r-  1 root  operator0, 108 Jun  5 15:11 /dev/da2s1
crw-r-  1 root  operator0, 154 Jun  4 17:08 /dev/da3
crw-r-  1 root  operator0, 155 Jun  4 17:08 /dev/da3s1
crw-r-  1 root  operator0, 152 Jun  4 12:08 /dev/da3s2

___
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: USB can't mount msdosfs drive

2013-06-05 Thread Joseph Mays

did you already try to access da2 instead of da2s1?


Yeah, tried that early on, got the same result.

root@warehouse:/backups/postgres-02/info # mount_msdosfs /dev/da2 /usb2
mount_msdosfs: /dev/da2: Invalid argument


But just to be fully sure: This is a USB stick / thumb drive, right?


Yes. It's one of several thumb drives that were mounted in the back of some 
linux machines at remote sites we help a customer with. The client is unsure 
what was on them, but needs to know. We asked them to gather them up and 
stick them into usb ports on a freebsd machine we have access to and manage 
at their location (in another state). Most of them I got mounted as either 
msdosfs, or ufs, or ntfs, or extfs2, and was able to get the data off them. 
This thumb drive is one of two holdouts.


___
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: USB can't mount msdosfs drive

2013-06-05 Thread Joseph Mays

root@warehouse:/backups # mount_msdosfs -o large /dev/da2s1 /usb2
mount_msdosfs: /dev/da2s1: Invalid argument

-Original Message- 
From: Warren Block

Sent: Wednesday, June 05, 2013 2:50 PM
To: Joseph Mays
Cc: freebsd-questions@freebsd.org
Subject: Re: USB can't mount msdosfs drive

On Wed, 5 Jun 2013, Joseph Mays wrote:

Tried several iterations, though it?s 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=1897 heads=255 sectors/track=63 (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=1897 heads=255 sectors/track=63 (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:

The data for partition 3 is:

The data for partition 4 is:


root@warehouse:/root # mount_msdosfs /dev/da2s1 /usb2
mount_msdosfs: /dev/da2s1: Invalid argument
root@warehouse:/root #


Maybe the "large" option to mount_msdosfs(8)?

Also, something is odd about the first partition starting at 8064.
What does 'gpart show da2' say? 


___
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: USB can't mount msdosfs drive

2013-06-05 Thread Joseph Mays

Maybe the "large" option to mount_msdosfs(8)?


Also, something is odd about the first partition starting at 8064. 
What does 'gpart show da2' say?


root@warehouse:/backups # gpart show da2
=>  63  30481089  da2  MBR  (14G)
   63  8001   - free -  (3.9M)
 8064  304730881  !12  [active]  (14G)

___
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: USB can't mount msdosfs drive

2013-06-05 Thread Joseph Mays

WARNING: mount of da2s1 denied due to unsupported optional features



That's odd, because that warning comes from ext2fs not msdosfs. Do you
use ext2fs anywhere?
What version of FreeBSD is this? And is this just a standard installation
or do you compile your own kernel?


root@warehouse:/root # uname -a
FreeBSD warehouse 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012 
r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


No, I didn't compile my own kernel. The USB stick in question was stuck into 
the back of a redhat linux box. Okay, I did actually try also mounting it 
with:


mount -t ext2fs /dev/da2s1 /usb2

just to see what would happen. After trying it a couple more times I see 
that was what was adding the that warning to dmesg. So that's explained, but 
I still don't understand why I can't mount it with mount_msdosfs





-Original Message- 
From: Tijl Coosemans

Sent: Wednesday, June 05, 2013 1:36 PM
To: Joseph Mays
Cc: freebsd-questions@freebsd.org
Subject: Re: USB can't mount msdosfs drive

___
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: USB can't mount msdosfs drive

2013-06-05 Thread Joseph Mays
One item of note – 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 
Sent: Wednesday, June 05, 2013 11:55 AM
To: freebsd-questions@freebsd.org 
Subject: USB can't mount msdosfs drive

Tried several iterations, though it’s 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=1897 heads=255 sectors/track=63 (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=1897 heads=255 sectors/track=63 (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:

The data for partition 3 is:

The data for partition 4 is:


root@warehouse:/root # mount_msdosfs /dev/da2s1 /usb2
mount_msdosfs: /dev/da2s1: Invalid argument
root@warehouse:/root #
___
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"

USB can't mount msdosfs drive

2013-06-05 Thread Joseph Mays
Tried several iterations, though it’s 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=1897 heads=255 sectors/track=63 (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=1897 heads=255 sectors/track=63 (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:

The data for partition 3 is:

The data for partition 4 is:


root@warehouse:/root # mount_msdosfs /dev/da2s1 /usb2
mount_msdosfs: /dev/da2s1: Invalid argument
root@warehouse:/root #
___
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"

9.1 permissions in the / directory

2012-11-14 Thread Joseph Mays
Have a recently set up 9.1 RC1 system. Someone (not me, just sayin') did a 
chmod 600 in the / directory. Needless to say this caused numerous problems. 
I tried to change them back as best I could by comparing them to an older 
directory, but some things are still not right. Trying to log in, via either 
console or ssh  as anyone other than root. Ssh gets:


%ssh mays@[redacted]
Password:
Last login: Wed Nov 14 15:50:37 2012
Could not chdir to home directory /home/mays: Permission denied
/bin/tcsh: Permission denied
Connection to [redacted] closed.
%

followed by a disconnect. Console complains about the /home/user directory 
not being there (though it is and the permissions look normal), says it's 
logging in with slash instead, then says "/bin/tcsh: no such file or 
directory", though /bin/tcsh is there and permissions look fine. I'm 
attaching a screenshot of the message log that shows up on console logins.


So, two questions. What is causing the problem, and does anyone have 
anything that shows what the normal / directory permissions for 9.1 RC1 
should look like?



___
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 8.3 with LSI MegaRAID 9265-8i

2012-10-04 Thread Joseph Mays
Trying to load FreeBSD 8.3 on to an LSI MegaRAID 9265i volume -- 3 3TB disks 
for a total volume size of 8.8 TB. The installer program runs from the DVD 
(we are using 8.3 because we couldn't get a 9.0 boot disk to load at all, 
actually.) But when it gets to the point of creating partitions it says no 
hard disk is present. Is this something I should have expected, or am I 
missing something?


___
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"


PHP5/MySQL Problem

2007-07-16 Thread Joseph Mays
Been dealing with a very frustrating couple of days, and have hit a wall. I 
had a working gallery2 installation, then upgraded mysqli, and  all hell 
broke loose.


When I try to open a page (in this case gallery2) that connects to the 
database. It always says "Too many open links". The thing is, it even says 
that if mysqld is not running.


I'm running under freebsd 6.1.

You can examine my server setup at http://geekfleet.tai-gear.com/server-info

You can examine the php setup at http://geekfleet.tai-gear.com/phpinfo.php

The problem I'm having now is that php5 won't connect to the mysql server. 
It's not a gallery thing, I've confirmed that I have the exact same problem 
with a simple script to just connect to the mysql server and read the 
database. And, in fact, the exact same error occurs if mysqld is not running 
at all. Apache shows --


[Mon Jul 16 02:07:10 2007] [error] [client 66.249.66.10] PHP Warning:
mysql_connect() [function.mysql-connect]: Too many
open links (0) in
/usr/local/www/apache22/data/gallery2/lib/adodb/drivers/adodb-mysql.in
c.php on line 366


Here is the info in php.ini --

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no
limit.
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect()
will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will
only look
; at MYSQL_PORT.
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the
built-in
; MySQL defaults.
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this
file.
; *Any* user with PHP access can run 'echo
get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access
to this
; file will be able to reveal the password as well.
mysql.default_password =

; Maximum time (in secondes) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for
table/index scans an
d
; SQL-Errors will be displayed.
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset,
mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will
only look
; at MYSQL_PORT.
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the
built-in
; MySQL defaults.
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
mysqli.default_user =


; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this
file.
; *Any* user with PHP access can run 'echo
get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access
to this
; file will be able to reveal the password as well.
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"