Re: Format a USB flash drive using gpart

2012-07-09 Thread Bruce Cran

On 08/07/2012 13:10, Warren Block wrote:
bsdinstall(8) has a curses partition editor.  There is probably a 
trick needed to use that outside of an install context.


Just run bsdinstall partedit.

--
Bruce Cran
___
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: power failure, boot, and fsck

2012-07-09 Thread Matthew Seaman
On 09/07/2012 04:22, Patrick Donnelly wrote:
 UFS: /dev/ad10s3f (/usr)
 Automatic file system check failed, help!
 error aborting boo (sending sigtem to parent)!
 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode.
 enter full pathname of shell or RETURN for /bin/sh:
 
 In single-user mode I just `fsck /dev/da0s1a` and reboot. That fixes
 the problem. However, I would like this to be automatic on boot. It
 would be annoying if I'm out-of-town and the server cannot recover
 without my help. Any tips?

fsck does run automatically when a filesystem does not get shut down
cleanly.  However, fsck cannot fix all of the problems a filesystem can
experience without risk of loss of data.  In those cases, there is no
option but to stop and ask the operator to intervene.

Your best bet is to avoid an unclean shutdown entirely.  Buy a UPS.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW





signature.asc
Description: OpenPGP digital signature


Re: power failure, boot, and fsck

2012-07-09 Thread Wojciech Puchar


fsck does run automatically when a filesystem does not get shut down
cleanly.  However, fsck cannot fix all of the problems a filesystem can
experience without risk of loss of data.  In those cases, there is no
option but to stop and ask the operator to intervene.


fsck_y_enable=YES in rc.conf





Your best bet is to avoid an unclean shutdown entirely.  Buy a UPS.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW





___
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: power failure, boot, and fsck

2012-07-09 Thread Wojciech Puchar

After a power failure at home, my FreeBSD server automatically starts
again but fails to mount my UFS /boot disk because it was not properly
unmounted. Here is my fstab:

$ cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/da0s1a  /boot-disk ufsrw  00


why 0 and 0? no fsck for boot-disk?

BTW wouldn't rw,noauto be helpful or /boot-disk is actually needed after 
boot?



that looks like (copied from another thread; devices and mount points
don't match):

UFS: /dev/ad10s3f (/usr)
Automatic file system check failed, help!
error aborting boo (sending sigtem to parent)!
init: /bin/sh on /etc/rc terminated abnormally, going to single user mode.
enter full pathname of shell or RETURN for /bin/sh:


fsck_y_enable=YES

something must be seriously wrong anyway if you boot partition (that is 
mostly untouched) got corrupted! check out things a bit.



BTW. Enable ahci it really works better
___
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: Format a USB flash drive using gpart

2012-07-09 Thread Polytropon
On Sun, 08 Jul 2012 23:27:23 -0400, Thomas Mueller wrote:
 You mean the non-subdivided 1.44 MB or other capacity of a floppy
 is called a partition?

Let's try to use the correct terminology.

If you're talking about an MS-DOS disk, then yes, it contains
a DOS partition which is formatted. In FreeBSD, we would call
it a slice (slice == DOS primary partition). In this case,
there is no (sub)partitioning, the _slice_ carries the MS-DOS
file system here. You know that MS-DOS does not have support
for partitioning.



 Same question for CDs?

Not sure. A CD contains an ISO-9660 file system without an
enclosing partition per se.

If we look back into OS history, we find the magical 'c' partition.
Historically, partition letters have been reserved for specific
purposes: the 'a' partition means a bootable partition, 'b' is
a swap partition, and 'c' is the whole disk, refering either
to the disk device (da0c == da0) or the whole slice (da0s1c == da0s1).

You _can_ put a UFS file system, even many of them, on a CD, that
is possible, but don't expect any Windows to be able to deal
with it. :-)



 Also, a file system can be contained in an image file.  Or is this
 a virtual partition?

As devices and real files are quite the same, you can mount
a file system that is contained in a file. You typically do this
when doing data recovery and forensic analysis, where your starting
point is an image file of a disk, a slice or a partition. You
then connect it to a virtual node (vnconfig - e. g. md0) and
then you mount it as if it was a device file.



 Might 
  # tar xf /dev/da0
 work in other BSDs or even other (quasi-)Unixes including Linux,
 using the appropriate device name where applicable in place of da0?

That's quite possible. I've been speaking about tar as the most
universal file system which isn't one -- I've been using it on
floppies many many years ago, to transfer data among Sun Sparcstations,
Linux workstations and a BSD server. It's important not to use
any fancy tar features, and of course you need to know the
device names corresponding to the floppy drive which differ
across the systems, but it is possible to first use fdformat,
then tar cf, then tar xf. This of course happened before the
dawn of networking. :-)



 While that particular construst could probably not be booted,
 it is possible to boot from a floppy or image file that does
 not contain a file system.

For bare booting, a file system isn't that essential. You just
have to make sure the boot chain is properly resolved, such
as for example the FreeBSD boot mechanism works. You can read
more about it in man 8 boot.



 Some of the disk images on the System Rescue CD (sysresccd.org)
 are not viewable/mountable as file systems.

I haven't looked into this particular one, but that is very well
possible. A CD doesn't _need_ to be in a ISO-9660 format (even
though it's the default data format). The _implementation_ of
the boot mechanism matters: it could even select from several
different boot images stored in some arbitrary (but addressable)
manner on the CD.




-- 
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: Format a USB flash drive using gpart

2012-07-09 Thread Wojciech Puchar

If you're talking about an MS-DOS disk, then yes, it contains
a DOS partition which is formatted. In FreeBSD, we would call
it a slice (slice == DOS primary partition). In this case,
there is no (sub)partitioning, the _slice_ carries the MS-DOS


unless you need windows 98 support partitionless USB drives works 
absolutely fine


clear it out

dd if=/dev/zero of=/dev/da0 bs=64k count=1


format

newfs_msdos /dev/da0


Same question for CDs?


Not sure. A CD contains an ISO-9660 file system without an
enclosing partition per se.

In FreeBSD (as well as NetBSD, OpenBSD, maybe linux) CD is just block 
device. You may make disklabel on it, and whatever you like.



In excuse of OS (windows) CD/DVD MUST BE CD9660 or UDF formatted without 
partitions.


You may record NTFS formatted DVD, perfectly readable on FReeBSD, 
unreadable under windows in spite it is windows native filesystem.


--
You may actually make hybrid DVD that will show whatever you want under 
windoze, and have real data in tar format.


below the recipe:

1) prepare windows-vizible layout, all needed viruses and autorun.inf in 
some directory and do


mkisofs -J -q .|dd of=/path/to/tempfile bs=512 skip=1

2)

tar cf - /path/to/tempfile ...list of what you want to be tarred...|growisofs 
-dvd-compat -Z /dev/cd0=-


now use tar to read files from that DVD, while in windows it will run 
viruses properly.




a virtual partition?


As devices and real files are quite the same, you can mount
a file system that is contained in a file. You typically do this
when doing data recovery and forensic analysis, where your starting
point is an image file of a disk, a slice or a partition. You
then connect it to a virtual node (vnconfig - e. g. md0) and


vnconfig is quite in old FreeBSD
today it is mdconfig

___
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: YASSDQ

2012-07-09 Thread Wojciech Puchar


Notes:

1. SSDs don't necessarily use 4k blocks, some use larger ones. Starting the


All use 4K as it is NTFS default block size and most are sold to be used 
with windoze.



first filesystem partition at 1M works for most of the common values.


Alignment of filesystem cannot be better than it's block size.

3. Swap is tricky with small drives, even trickier if you want to use TRIM. 
Swap files can be used, and then you get TRIM, but see 
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/168544 for a way to dismount 
that swap file before shutdown and an annoying panic.


my solution:

# cat /etc/rc.local
#!/bin/sh
echo creating swapfile
/bin/rm -f /swapfile.tmp
dd if=/dev/zero of=/swapfile.tmp bs=8m seek=1k count=0
/sbin/mdconfig -a -t vnode -u 0 -f /swapfile.tmp || /bin/sh
/bin/chflags nodump /swapfile.tmp
/bin/rm -f /swapfile.tmp
/sbin/swapctl -a /dev/md0


# cat /etc/rc.shutdown.local
#!/bin/sh
echo removing swapfile
/sbin/swapctl -d /dev/md0
/sbin/mdconfig -d -u 0


my partitioning:

# disklabel ada0
# /dev/ada0:
8 partitions:
#  size offsetfstype   [fsize bsize bps/cpg]
  a:  117231408  04.2BSD0 0 0
  c:  117231408  0unused0 0 # raw part, don't edit




99% of the time swap is not needed so doesn't take space.
___
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


Granatelli Motor Sports Newsletter - Issue #3 - July 2012

2012-07-09 Thread Granatelli Motor Sports, Inc.


Granatelli Motor Sports Newsletter - Issue 1 - October 2011 -
Granatelli 
Twin Turbo Kit Update for 5th Gen Camaros, Granatelli Dominates
Ignition Test, 
Granatelli Sure Start Smart Eliminates Dead Batteries 

http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0PSFBTS1FWUlUG

 *
 
 Parts
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0FAh1SBx5XVlUHDg%3D%3D
*
 *
 
 Specials
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0HBB1SBx5XVlUHDg%3D%3D
*
 *
 
 Gallery
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0HBR1SBx5XVlUHDg%3D%3D
*
 *
 
 Racing
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0HBh1SBx5XVlUHDg%3D%3D
*
 *
 
 Tuning
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0HBx1SBx5XVlUHDg%3D%3D
*
 *
 
 Amazon
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0HAB1SBx5XVlUHDg%3D%3D
*
 *
 
 Facebook
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0HAR1SBx5XVlUHDg%3D%3D
*
 *
 
 YouTube
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0HAh1SBx5XVlUHDg%3D%3D
*

 *

 Granatelli Motor Sports 
 In-House Fabrication

 /Watch The Video of Made In American Excellence/*

 Did you know all Granatelli suspension 
 products are manufactured right her in the U.S.A. by expert racing 
 fabricators. Our artisans of excellence build every component 
 like it was going on their own race car utilizing on the highest 
 quality materials and the highest quality welds. 
 
 Watch
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0FAx1SBx5XVlUHDg%3D%3D
our step by step video as we 
 manufacture a set of one of our popular sellers: Granatelli 
 butterfly sub-frame connectors for 2010-2013 Camaros.

 *Granatelli LS Compound 
 Boost Engine Dyno Tested

 /Makes An Incredible 1,257 Lb./Ft. Torque @ 2,500 RPM!/*

 Ok...you 
 might be asking, what is a compound boosted engine? Why it's an
engine 
 with not one but two power adders. In this case, it features a 
 Magnuson TVS 2300 Intercooled supercharger AND Granatelli's twin 
 turbo system. Is it streetable? Yes. Can I run it on pump 
 gas? Yes. Is it reliable? With a built engine and the 
 proper fuel / spark / timing control, yes! For details, check out the

 video
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0FDB1SBx5XVlUHDg%3D%3D
. 

 *Granatelli 
 Motor Sports Customer Service

 /We Listen To YOUR Needs 
  Deliver Great Service!/*

 Since 1985, Granatelli Motor Sports has prided 
 itself on delivering great customer service and experiences. 
 At Granatelli, if your not happy you can always talk to the owner, 
 J.R. Granatelli. He do everything possible to ensure your 
 complete satisfaction. Where else can you get service like 
 that? Watch our
 
 video
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0FDR1SBx5XVlUHDg%3D%3D
and let some of our customers 
 tell you why Granatelli offers superior customer service.

 *Granatelli 
 3 Exhaust System Featured On Incredible

 /Kaase Boss Nine 589 c.i. 
 2008 Mustang GT/*

 There are Mustangs and then...there are Mustangs. This one combines 
 the best of both worlds. Modern conveniences and styling of the 
 SN197 Mustang with the brute power of the legendary Boss 429 big 
 block Ford engine. This bad boy produces 902HP @ 6,800 RPM and 800 
 lb. / ft. torque at 5,100 RPM. The car features a Granatelli 3 
 stainless exhaust system and makes the car sound absolutely wicked. 
 You can read all about this fabulous, one of a kind Mustang
 
 here
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0CBB1SBx5XVlUHDg%3D%3D
.

 *Granatelli 
 Announces It Is the Title Sponsor Of 

 /NMCA West Mustang 
 Madness Class/*

 Granatelli Motor 
 Sports, the 
 premier name in 
 high-performance 
 components for 
 Ford, GM and 
 Mopar muscle 
 cars, is pleased 
 to announce it 
 is the title 
 Sponsor of the 
 NMCA West 
 Mustang Madness 
 class.The 
 class is open to 
 all years of 
 Ford Mustangs, 
 and all 
 modifications 
 and power adders 
 are allowed. 

 For details on 
 the Granatelli 
 Motor Sports 
 contingency 
 program, click

 here
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0CBR1SBx5XVlUHDg%3D%3D
.

 *Granatelli Z06 
 Performance Package Adds 52RWHP**

 */*To Stone Stock 2012 Centennial Edition Z06!*/

 Granatelli Motor Sports tested a 
 stone stock 2012 Centennial Edition Z06 Corvette made 443.2 RWHP and
417. 
 lb. ft. of torque on our Mustang chassis dyno. We then bolted on our
Granatelli 
 Z06 performance package (Granatelli Pro Street Coils, 0 ohm plug
wires and our 
 high flow air intake). Watch 
 the before and after video 
 
 here
http://granatellimotorsports.hosted.phplist.com/lists/lt.php?id=MR0CBh1SBx5XVlUHDg%3D%3D
. 
 To purchase call 1-805-486-6644.

 This email was sent by: 

 i...@granatellimotorsports.com
mailto:i...@granatellimotorsports.com
. To ensure 
 delivery to your Inbox, please 

Re: power failure, boot, and fsck

2012-07-09 Thread Daniel Feenberg



On Mon, 9 Jul 2012, Matthew Seaman wrote:


On 09/07/2012 04:22, Patrick Donnelly wrote:

UFS: /dev/ad10s3f (/usr)
Automatic file system check failed, help!
error aborting boo (sending sigtem to parent)!
init: /bin/sh on /etc/rc terminated abnormally, going to single user mode.
enter full pathname of shell or RETURN for /bin/sh:

In single-user mode I just `fsck /dev/da0s1a` and reboot. That fixes
the problem. However, I would like this to be automatic on boot. It
would be annoying if I'm out-of-town and the server cannot recover
without my help. Any tips?


fsck does run automatically when a filesystem does not get shut down
cleanly.  However, fsck cannot fix all of the problems a filesystem can
experience without risk of loss of data.  In those cases, there is no
option but to stop and ask the operator to intervene.


Won't soft updates solve this problem?

  http://www.freebsd.org/doc/en/books/handbook/configtuning-disk.html

The handbook says. We recommend to use Soft Updates on all of your file 
systems. but doesn't mention booting specifically. This isn't something I 
have tried (we boot over the network).




Your best bet is to avoid an unclean shutdown entirely.  Buy a UPS.



We have lots of UPS systems. They constitute a single point of failure, 
a prodigous amount of hazardous waste every couple of years. I'd sure like 
to drop them - and not on my foot.


I should say that we stopped using soft updates because the background 
fsck was very slow, but that was on very large partitions. On a boot

drive with no user data, the timing would be fine.

dan feenberg


Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW





___
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: Format a USB flash drive using gpart

2012-07-09 Thread Bruce Cran

On 09/07/2012 11:16, Polytropon wrote:

If you're talking about an MS-DOS disk, then yes, it contains
a DOS partition which is formatted. In FreeBSD, we would call
it a slice (slice == DOS primary partition). In this case,
there is no (sub)partitioning, the _slice_ carries the MS-DOS
file system here. You know that MS-DOS does not have support
for partitioning.


Floppy disks aren't partitioned/sliced - they use 'dangerously 
dedicated' mode, containing nothing except the filesystem. The way you'd 
mount it would be:


mount /dev/fd0 /mnt/point

You can do the same with a normal USB or other disk using:

newfs /dev/da0
mount /dev/da0 /mnt/point

The reason it's called 'dangerously dedicated' I think is that other 
systems - or even the same system months/years later if you forget and 
run the wrong tools - won't know there's a filesystem there and it's 
easy to think the disk's empty.  If you're on an old system and run 
'gpart show da0' and don't see a partition table it's quite easy to 
forget to check if da0 itself contains a filesystem.


When using GPT what were called slices are now partitions, and instead 
of 'ada0s1a' (disk 0, slice 1, partition a) you just have 'ada0p1'. A 
partition table supports up to 4096 entries (gpart creates one 
supporting 128 by default) so there's no need for the freebsd container 
any more - you just create freebsd-boot, freebsd-ufs, freebsd-zfs, 
freebsd-swap entries e.g. 'gpart add -t freebsd-ufs -s 64g da0'.


--
Bruce Cran
___
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: Format a USB flash drive using gpart

2012-07-09 Thread Wojciech Puchar

Floppy disks aren't partitioned/sliced - they use 'dangerously dedicated'


they use dangerously obsolete mode. nobody use them at all.

disk's empty.  If you're on an old system and run 'gpart show da0' and don't 
see a partition table it's quite easy to forget to check if da0 itself 
contains a filesystem.


unless it is a normal way of using it.
___
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: Format a USB flash drive using gpart

2012-07-09 Thread Bruce Cran

On 09/07/2012 13:17, Wojciech Puchar wrote:

they use dangerously obsolete mode. nobody use them at all.



A company I worked with were still distributing files on floppy disks as 
recently as 2009. They _are_ obsolete, but I suspect plenty of people 
still use them.



unless it is a normal way of using it.


That's right - I was thinking of my system where I destroyed all the 
data on a HDD because it didn't have a partition table. When I ran the 
FreeBSD installer and saw the disk was 'empty' I forgot it had a 
filesystem and reformatted it. Obviously people using floppy or USB 
disks would be more ready for there to be data on the disk without a 
partition table.


--
Bruce Cran

___
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: Format a USB flash drive using gpart

2012-07-09 Thread Wojciech Puchar
A company I worked with were still distributing files on floppy disks as 
recently as 2009.

quite funny :)

They _are_ obsolete, but I suspect plenty of people still 
use them.



unless it is a normal way of using it.


That's right - I was thinking of my system where I destroyed all the data on 
a HDD because it didn't have a partition table. When I ran the FreeBSD 
only your fault, not FreeBSD. Why you connected your data disk at first 
place.

___
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: Format a USB flash drive using gpart

2012-07-09 Thread Bruce Cran

On 09/07/2012 13:29, Wojciech Puchar wrote:
only your fault, not FreeBSD. Why you connected your data disk at 
first place.


I didn't say it was FreeBSD's fault. If I thought it was, I would have 
fixed it!


--
Bruce Cran
___
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: YASSDQ

2012-07-09 Thread Bruce Cran

On 09/07/2012 11:31, Wojciech Puchar wrote:
All use 4K as it is NTFS default block size and most are sold to be 
used with windoze.


Apparently the Intel 320 SSDs use an 8KB page/block size.

--
Bruce Cran
___
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: YASSDQ

2012-07-09 Thread Arthur Chance

On 07/09/12 13:38, Bruce Cran wrote:

On 09/07/2012 11:31, Wojciech Puchar wrote:

All use 4K as it is NTFS default block size and most are sold to be
used with windoze.


Apparently the Intel 320 SSDs use an 8KB page/block size.



From a Crucial forum, thread about Crucial M4 SSDs, posted by a Crucial 
employee:


[http://forum.crucial.com/t5/Solid-State-Drives-SSD/Page-size-and-erase-block-size-for-M4-64GB-128GB-256GB-models/td-p/64403 
about half way down the page]


 One correction to the information here. The page size is based on 
the  density of the NAND not the process geometry. The 64GB and 128GB 
m4’s  utilize NAND with 4K page sizes and the 256GB and 512GB m4’s 
utilize  NAND with 8K pages.


Looks like larger SSDs have larger block sizes.
___
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: YASSDQ

2012-07-09 Thread Warren Block

On Mon, 9 Jul 2012, Wojciech Puchar wrote:


Notes:

1. SSDs don't necessarily use 4k blocks, some use larger ones. Starting the


All use 4K as it is NTFS default block size and most are sold to be used with 
windoze.


No.  For example, some of the Crucial M4 drives are 4K, some are 8K.


first filesystem partition at 1M works for most of the common values.


Alignment of filesystem cannot be better than it's block size.


1M is semi-standard and aligns with all expected block sizes and erase 
block sizes.

___
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


encrypted ZFS root and encrypted swap OOTB?

2012-07-09 Thread David Christensen

freebsd-questions:

It is possible to install FreeBSD with an encrypted ZFS root and 
encrypted swap using FreeBSD-9.0-RELEASE-amd64-dvd1?



I'm looking for something similar to the Debian installer, which 
provides disk partitioning, file system creation, mounts, LUKS, LVM, etc..



TIA,

David

--

References:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html

https://www.dan.me.uk/blog/2012/05/06/full-disk-encryption-with-zfs-root-for-freebsd-9-x/
___
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: Format a USB flash drive using gpart

2012-07-09 Thread Ian Smith
On Sun, 8 Jul 2012 21:00:40 +0100, Bruce Cran wrote:
  On 08/07/2012 16:06, Ian Smith wrote:
   In general they're not distinct in usage from any other type of disk.
  
  The more expensive disks of course support TRIM so you'd want to pass -t to
  newfs to enable it.

Thanks.  Next time I blow around AU$455 on a 120GB flashdrive, I'll be 
glad to be better informed about getting the most out of it :)

At least with sysinstall|sade you can set extra newfs options such as 
-t, and as importantly for me, you can toggle whether or not to newfs 
particular partition/s, such as leaving say /home alone on an existing 
partitioning, which didn't seem straightforward with bsdinstall last I 
tried (admittedly at 9.0-BETA1) but I've not followed later updates.

I might take Matthew's suggestion and try the PCBSD 9 installer; I did 
boot a PCBSD 8 memstick at one stage, and was surprisingly impressed -
or I could use freebsd-update instead of sources to go from 7.4 to 9.1

It's the options that drive ya crazy -- Silly Symphony C.'83

cheers, Ian
___
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: Format a USB flash drive using gpart

2012-07-09 Thread Warren Block

On Mon, 9 Jul 2012, Bruce Cran wrote:


On 09/07/2012 11:16, Polytropon wrote:

If you're talking about an MS-DOS disk, then yes, it contains
a DOS partition which is formatted. In FreeBSD, we would call
it a slice (slice == DOS primary partition). In this case,
there is no (sub)partitioning, the _slice_ carries the MS-DOS
file system here. You know that MS-DOS does not have support
for partitioning.


Floppy disks aren't partitioned/sliced - they use 'dangerously dedicated' 
mode, containing nothing except the filesystem.


Dangerously dedicated refers to a disk with a bsdlabel partition table 
and boot block.  Floppies don't have even that, it's just a raw 
filesystem.

___
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 9.0 LSI MegaRAID SATA problem

2012-07-09 Thread Bosko Radivojevic
Hi all!

I have a problem installing FreeBSD 9.0 on Fujitsu Primergy RX200 S5
server with LSI MegaRAID SATA controller (two SATA HDDs in RAID1
array). When booted from a CD, FreeBSD doesn't recognize RAID Array,
it recognizes HDDs only (ad4  ad6). On the same server, FreeBSD 8.3
installation recognizes RAID Array (ar0).

pciconf -vl on FreeBSD 9.0:
ahci0@pci0:0:31:2: class=0x010400 card=0x11501734 chip=0x3a258086
rev=0x00 hdr=0x00
vendor = 'Intel Corporation'
device = '82801JIR (ICH10R) SATA RAID Controller'
class  = mass storage
subclass = RAID

pciconf -vl on FreeBSD 8.3:
atapci0@pci0:0:31:2:class=0x010400 card=0x11501734 chip=0x3a258086
rev=0x00 hdr=0x00
vendor = 'Intel Corporation'
device = 'SATA RAID Controller'
class  = mass storage
subclass   = RAID

dmesg output on FreeBSD 8.3:
# dmesg|grep ar0
ar0: writing of DDF metadata is NOT supported yet
ar0: 952720MB DDF RAID1 status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (mirror) using ad6 at ata3-master

As far as I understand (while I don't have that much FreeBSD
experience), amr is the appropriate driver for this controller. Tried
to load it manually (kldload /boot/kernel/amr.ko) but it seems the
driver is already present in kernel.

What am I missing here?

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


Using smartctl to detect scan errors (like google tells me to do ...)

2012-07-09 Thread Jason Usher
The big report that google published made it clear that even a single scan 
error in the SMART data of a disk drive is a good predictor of eventual 
failure...

However, when I run smartctl:

# smartctl -a /dev/da0 | grep -i pre-fail
  1 Raw_Read_Error_Rate 0x000b   100   100   016Pre-fail  Always   
-   0
  2 Throughput_Performance  0x0005   135   135   054Pre-fail  Offline  
-   84
  3 Spin_Up_Time0x0007   126   126   024Pre-fail  Always   
-   612 (Average 612)
  5 Reallocated_Sector_Ct   0x0033   100   100   005Pre-fail  Always   
-   0
  7 Seek_Error_Rate 0x000b   100   100   067Pre-fail  Always   
-   0
  8 Seek_Time_Performance   0x0005   123   123   020Pre-fail  Offline  
-   31
 10 Spin_Retry_Count0x0013   100   100   060Pre-fail  Always   
-   0


There is nothing called a scan error.  Further, the wikipedia page for 
S.M.A.R.T. has nothing in the error table called a scan error.


So ...


What is a scan error, and which metric should I tell smartctl to check ?


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


Re: Using smartctl to detect scan errors (like google tells me to do ...)

2012-07-09 Thread Bruce Cran

On 09/07/2012 16:12, Jason Usher wrote:

What is a scan error, and which metric should I tell smartctl to check ?


I think they mean a SMART scan, as in a self-test - 
http://www.twopenguins.it/2011/12/test-an-hard-disk-with-smartctl/ has 
details of how to run it.


--
Bruce Cran
___
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: Format a USB flash drive using gpart

2012-07-09 Thread Jerry McAllister
On Mon, Jul 09, 2012 at 07:44:28AM +0200, Wojciech Puchar wrote:

 You don't.  You wipe the FAT32 with fdisk and make a FreeBSD slice on it.
 Then you can bsdlabel it with one partition and newfs it.  Or you can
 
 repeat 100 times more that you have to make fdisk and bsdlabel. you 
 don't, and it doesn't make sense

You can do many things as indicated in several posts and most of them 
will work if you want it that way.   But, they do not answer the
question as posted.

Turning the USB stick into a FreeBSD type or mounting it as MSDOSFS
does answer that question.   

I am not sure why the rabid promotion of non-slicing, but it not
worth all the extra bandwidth applied to it.

jerry



 ___
 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


NTFS data recovery

2012-07-09 Thread Graeme Dargie
Hi All,

I have been given a laptop to look at for a friend, the hard disk is close to 
death with a SMART error on POST. My initial thought was to just mount it on an 
Windows 7 machine and grab what I can from the drive. No joy Windows insists 
that the partition is RAW and I need to format it. I can however mount it under 
FreeBSD without any problems, the directory structure appears to be intact but 
there are no files in the places I would expect to find them under the Users 
directory, I am guessing that these have somehow been deleted or perhaps the 
victim of a partial OEM recovery process. Is there a way to scan the drive for 
deleted files from the command line or something from the ports tree that 
anyone can recommend to fulfil this requirement.

Regards

Graeme
___
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: encrypted ZFS root and encrypted swap OOTB?

2012-07-09 Thread Colin Barnabas
Perhaps this will help-

http://www.aisecure.net/2011/11/28/root-zfs-freebsd9/

On Mon, Jul 09, 2012 at 07:13:05AM -0700, David Christensen wrote:
 freebsd-questions:
 
 It is possible to install FreeBSD with an encrypted ZFS root and 
 encrypted swap using FreeBSD-9.0-RELEASE-amd64-dvd1?
 
 
 I'm looking for something similar to the Debian installer, which 
 provides disk partitioning, file system creation, mounts, LUKS, LVM, etc..
 
 
 TIA,
 
 David
 
 --
 
 References:
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/bsdinstall-partitioning.html
 
 https://www.dan.me.uk/blog/2012/05/06/full-disk-encryption-with-zfs-root-for-freebsd-9-x/
 ___
 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

-- 
Colin Barnabas
___
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: NTFS data recovery

2012-07-09 Thread Polytropon
On Mon, 9 Jul 2012 16:01:56 +, Graeme Dargie wrote:
 Hi All,
 
 I have been given a laptop to look at for a friend, the hard disk
 is close to death with a SMART error on POST. My initial thought
 was to just mount it on an Windows 7 machine and grab what I can
 from the drive.

Bad idea. You cannot fully make sure that the disk's content
isn't altered. There's no mount -o ro in Windows. Even
worse, it might lead to more corruption during attempts to
repair it.



 No joy Windows insists that the partition is RAW and I need to
 format it.

Don't format it, it will massively decrease your chances for
data recovery. Work with what you have, touch it as few as
possible, use the proper tools. You won't find them on Windows.



 I can however mount it under FreeBSD without any problems, the
 directory structure appears to be intact but there are no files
 in the places I would expect to find them under the Users directory,
 I am guessing that these have somehow been deleted or perhaps
 the victim of a partial OEM recovery process.

That's quite possible. Check df vs. du output and see if it
magically fits, e. g. that the data is somewhere.



 Is there a way to scan the drive for deleted files from the
 command line or something from the ports tree that anyone can
 recommend to fulfil this requirement.

Because it's about NTFS recovery, things are a bit complicated,
but not impossible. I'd suggest to first make a copy of the
disk using dd, then work with that copy. Do _NOT_ fiddle with
the original disks!

If dd doesn't work, try ddrescue and dd_rescue.

There are programs in the sysutils/ntfsprogs port will be
surely useful to dealing with the NTFS content.

Then of course you'll find The Sleuth Kit very helpful. It's
programs fls, dls and ils might be what you're searching for.
Sadly the documentation has been moved into a web page. :-(

Additionally, you may try magicrescue, recoverjpeg and foremost,
maybe fatback (but I doubt it). Those are acting outside of
the FS.

For missing files, maybe you can find a differing MFT to
check? I know there was something related in the documentation
of the older versions of TSK, but as I said, that situation
has disimproved. :-(

Note that data recovery is a dirty job, it takes time and
is therefore quite expensive if delegated to a company. In
your case it means you'll have to invest MUCH TIME into
getting the data back. I hope the files are worth it.
The absence of a backup seems to imply the opposite. :-)

Anyway, good luck!






-- 
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: NTFS data recovery

2012-07-09 Thread Jerry
On Mon, 9 Jul 2012 18:54:37 +0200
Polytropon articulated:

 On Mon, 9 Jul 2012 16:01:56 +, Graeme Dargie wrote:
  Hi All,
  
  I have been given a laptop to look at for a friend, the hard disk
  is close to death with a SMART error on POST. My initial thought
  was to just mount it on an Windows 7 machine and grab what I can
  from the drive.
 
 Bad idea. You cannot fully make sure that the disk's content
 isn't altered. There's no mount -o ro in Windows. Even
 worse, it might lead to more corruption during attempts to
 repair it.

I have seen this work, but not on Windows 7.

(based on Windows 2003 SP2)

1) switch off automount using the mountvol.exe command

2) present disk to Windows 2003 SP2

3) do not mount the disk

4) launch diskpart

5) do a list disk and list volume

6) note down the correct volume number

7) in diskpart do a select volume X (where X is the correct volume number)

8) then in diskpart doa att vol set readonly

9) then in diskpart do a detail vol and ensure the readonly bit is set

10) then you can mount the volume, the volume will be readonly

Interestingly enough, only a few months ago, I used SpinRite 6 to
recover an 80 Gb disk that was supposedly fried. If the HD can be seen
by the system hardware, SpinRite has a fighting chance of recovering it.
It took a week but it got all of the data back. I did take the HD out of
the original PC and put it into a backup unit since I could not tie
that PC up for an extended time. SpinRite does not need a super high
speed machine to work off of.

Good luck, you'll need it.

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__
This is supposed to be a happy occasion.
Let's not BICKER and ARGUE over who killed who!
___
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: NTFS data recovery

2012-07-09 Thread jb
Graeme Dargie arab at tangerine-army.co.uk writes:

  ...
 Is there a way to scan the drive for deleted files from the command
 line or something from the ports tree that anyone can recommend to fulfil
 this requirement.

testdisk
http://www.freebsd.org/cgi/url.cgi?ports/sysutils/testdisk/pkg-descr

I would suggest you compile it before use (otherwise grab a package).
jb




___
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: NTFS data recovery

2012-07-09 Thread jb
jb jb.1234abcd at gmail.com writes:

 ...
ntfs utilities
http://www.freebsd.org/cgi/url.cgi?ports/sysutils/ntfsprogs/pkg-descr
 
I would suggest you compile it before use (otherwise grab a package).
jb




___
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: qbittorrent freezes, ioctl sign-extension ioctl ffffffff8004667e

2012-07-09 Thread Mario Lobo
On Sat, 7 Jul 2012 20:52:50 +0200
Jens Schweikhardt schwe...@schweikhardt.net wrote:

 hello, world\n
 
 is anybody else seeing this? On a fresh 9-STABLE/amd64 as of July 7,
 with all ports compiled from scratch. Qbittorrent (2.9.11) freezes
 after about 10 to 20 seconds, reacts to mouse clicks only after a
 minute or so; the window isn't redrawn when it was obscured by other
 windows and /var/log/messages has this to say:
 
 Jul  7 11:09:56 hal9000 kernel: WARNING pid 89448 (qbittorrent):
 ioctl sign-extension ioctl 8004667e Jul  7 11:10:50 hal9000
 kernel: WARNING pid 89448 (qbittorrent): ioctl sign-extension ioctl
 8004667e Jul  7 11:11:21 hal9000 last message repeated 38
 times
 
 There's no way out other than sending two SIGINT (CTRL-C) to kill
 qbittorrent.
 
 It looks like this is similar or even the same problem as in
 http://lists.freebsd.org/pipermail/freebsd-stable/2010-June/057360.html
 If it was ever fixed, then it looks like it reappeared.
 
 Regards,
 
   Jens

Just upgrade to net-p2p/libtorrent-rasterbar-16 and
libtorrent-rasterbar-16-python.

This should fix it.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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


Invalid GPT backup header

2012-07-09 Thread dweimer
I have had a few virtual machine installations come up with gptboot: 
invalid GPT backup header error message while booting. (some 
immediately on first boot after install) They still boot fine, and run 
without problems, but I would like to find a way to fix the problem.  
Does anyone know how you can write a new GPT backup header to the 
partition table.  I have even gone to the extent of adding a second 
virtual disk, using gpart to create a partition table and then add new 
partitions and setup bootstrap then use cpio to copy data over and 
switched the drive SCSI IDs within the virtual machines configuration to 
boot from the second drive instead.  Still same error message when 
booting off the new drive.  I did however leave out the size option when 
creating the last UFS partition so it may have filled to the end and 
overwrote the backup GPT table.


I have searched online for a solution to recreating the backup GPT 
header from the main header, but I have been unable to find anything.  
Not sure if I am missing something simple, if no one else has had this 
problem, or if others are just ignoring it since their system works even 
with it?  All the machines with the problem are VMware hosted machines, 
some on ESX, and some on VMware Workstations.


--
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/
___
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: NTFS data recovery

2012-07-09 Thread Wojciech Puchar

I have been given a laptop to look at for a friend, the hard disk is close to 
death with a SMART error on POST. My initial thought was to just mount it on an 
Windows 7 machine and grab what I can from the drive. No joy Windows insists 
that the partition is RAW and I need to format it. I can however mount it under 
FreeBSD without any problems, the directory structure appears to be intact but 
there are no files in the places I would expect to find them under the Users 
directory, I am guessing that these have somehow been deleted or perhaps the 
victim of a partial OEM recovery process. Is there a way to scan the drive for 
deleted files from the command line or something from the ports tree that 
anyone can recommend to fulfil this requirement.

get other disk or just use free space on large filesystem and do

dd if=/dev/baddisk of=file bs=64k conv=noerror,sync

then - after having backup, try to salvage things

___
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: YASSDQ

2012-07-09 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Jul  9 07:40:35 2012
 Date: Mon, 09 Jul 2012 13:38:57 +0100
 From: Bruce Cran br...@cran.org.uk
 To: Wojciech Puchar woj...@wojtek.tensor.gdynia.pl
 Cc: freebsd-questions@freebsd.org, Graham Bentley ad...@cpcnw.co.uk
 Subject: Re: YASSDQ

 On 09/07/2012 11:31, Wojciech Puchar wrote:
  All use 4K as it is NTFS default block size and most are sold to be 
  used with windoze.

 Apparently the Intel 320 SSDs use an 8KB page/block size.

Don't attempt to confuse Wociech with facts.  He knows more about everything
than anybody.  And his opinions are the only correct way to do anything.


___
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: FreeBSD vs Hurd what is the differences?

2012-07-09 Thread Julian H. Stacey
Hi,
Carsten Mattner wrote:
 On Fri, Jul 6, 2012 at 2:42 AM, Julian H. Stacey j...@berklix.com wrote:
  Hi,
  Reference:
  From: Carsten Mattner carstenmatt...@gmail.com
  Date: Fri, 6 Jul 2012 00:28:32 +0200
  Message-id:   
  cacy+hvpb08w4bjgucjb1ghvf-jgpzs0869qvxfryrtxef91...@mail.gmail.com
 
  Carsten Mattner wrote:
  On Thu, Jul 5, 2012 at 4:39 PM, Wojciech Puchar
  woj...@wojtek.tensor.gdynia.pl wrote:
   As for reading anything else than internal firefox data it is not
   possible
   except very basic bug is there.
  
  
   Yes otherwise all the flash sites would have gathered files from local
   disks.
  
  
   true. javascript activity is sandboxed. But within that sandbox there are
   million bugs.
  
   i've already seen trojans that completely took control over firefox.
   But - in spite it was windoze - ONLY firefox. Everything else was fine.
  
   Deleting firefox user data removed the trojan.
 
  Nothing is impossible at that complexity.
 
  I'd still like to know what Julian saw as you didn't see that.
  Did it really contain a script which made it fetch random files from the
  local disk?
 
  I don't know.
  I wrote how I obtained the data patern I saw, in my:
 
 Fair enough :).
 
  Message-id: 201207050936.q659awci016...@fire.js.berklix.net
  Date: Thu, 05 Jul 2012 11:36:32 +0200
 
  Others very welcome to try it.
 
 Of course.
 
   Julian?
 
  Which Firefox version?
 
  Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
 
 I don't want to be that guy whos says it but that version is old and
 may contain widely known holes.

Good point.
( Till now I I just built ports in current when odd ports from RELEASE broke,
  That's too simplistic, Thanks.)


   I am a little concerned.
 
  Me too !
  Not had tme to pursued it though.
   I dont feel like exporting that data public
  in case its already gone too far.
 
 You don't have to export it at all.
 Can you confirm the data within is the same as say the same
 file in /etc or ~/.ssh? If that's really the case, it's a problem.

No I happily can not confirm that, despite a quick-ish look.
( I wouldn't particularly xpect it, if a trojan took control, it would be pretty
easy to store data [hidden or scrambled] in different format.)

The string I saw was in file jquery.js:

/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage


Some machines have more valuable data in user files, than /etc/
passwords.  If 'only' /etc/*passwd got harvested, but data beyond
did not yet get harvested, waiting for a 2nd pass with trojan,
damage would be less.


  I suggest others create a dummy guest account  then accesss URL  do
  page save as I wrote.


Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below not above, cumulative like a play script,  indent with  .
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
Mail from @yahoo dumped @berklix.  http://berklix.org/yahoo/
___
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: qbittorrent freezes, ioctl sign-extension ioctl ffffffff8004667e [SOLVED]

2012-07-09 Thread Mario Lobo
On Mon, 9 Jul 2012 00:00:20 +0200 (CEST)
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

 
 
 On Sun, 8 Jul 2012, RW wrote:
 
  On Sat, 7 Jul 2012 20:52:50 +0200
  Jens Schweikhardt wrote:
 
  hello, world\n
 
  is anybody else seeing this? On a fresh 9-STABLE/amd64 as of July
  7, with all ports compiled from scratch. Qbittorrent (2.9.11)
  freezes after about 10 to 20 seconds, reacts to mouse clicks only
  after a minute or so; the window isn't redrawn when it was
  obscured by other windows and ...
 
  I tried it a few weeks ago on 8.3. I found that it locks-up just
  after the first torrent is added, or if it's started with a torrent
  already loaded.
 mosy probably not FreeBSD related. just a buggy program
 ___
 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


Sorry for my last post. Spoke too soon. I found the problem!.

It lies inside devel/boost-libs.

After you issue make patch, apply this to
work/boost_1_48_0/boost/asio/detail/io_control.hpp. 
I couldn't manage to produce a proper diff file.

*** 46,52 
// Get the name of the IO control command.
ioctl_cmd_type name() const
{
- return static_castint(FIONBIO);
+ return static_castioctl_cmd_type(FIONBIO);


*** 96,102 
// Get the name of the IO control command.
ioctl_cmd_type name() const
{
- return static_castint(FIONREAD);
+ return static_castioctl_cmd_type(FIONREAD);
}

-Rebuild/reinstall devel/boost-libs
-Rebuild/reinstall net-p2p/libtorrent-rasterbar-16
-Rebuild/reinstall net-p2p/libtorrent-rasterbar-16-python
-Rebuild/reinstall net-p2p/qbittorrent

No more lockups and kernel messages!! :) after I did this, qbittorrent
has been up flawlessly for almost 2 hours.

I don't know how to get in touch with the boost-lib port mantainer so
he/she can fix the port file patch-boost_asio-ioctl to add these
changes.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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


Can't get plone to run

2012-07-09 Thread Len Conrad
Following the instructions from Professional Plone 4 Development book.

(not plone/zope from ports)

freebsd 9.0

got pretty far, then:

plone# bin/instance fg

2012-07-09 16:49:55 INFO ZServer HTTP server started at Mon Jul  9 16:49:55 2012
Hostname: 0.0.0.0
Port: 8080
2012-07-09 16:49:55 INFO Zope Set effective user to myname
Traceback (most recent call last):
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/Zope2/Startup/run.py, 
line 76, in module
run()
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/Zope2/Startup/run.py, 
line 22, in run
starter.prepare()
  File 
/usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/Zope2/Startup/__init__.py, line 
86, in prepare
self.startZope()
  File 
/usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/Zope2/Startup/__init__.py, line 
259, in startZope
Zope2.startup()
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/Zope2/__init__.py, line 
46, in startup
from Zope2.App.startup import startup as _startup
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/Zope2/App/startup.py, 
line 38, in module
import OFS.Application
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/OFS/Application.py, line 
22, in module
import App.Product
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/App/Product.py, line 44, 
in module
from OFS.Folder import Folder
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/OFS/Folder.py, line 24, 
in module
from webdav.Collection import Collection
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/webdav/Collection.py, 
line 30, in module
from webdav.Resource import Resource
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/webdav/Resource.py, line 
35, in module
from OFS.event import ObjectClonedEvent
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/OFS/event.py, line 20, 
in module
import OFS.interfaces
  File /usr/home/myname/eggs/Zope2-2.13.15-py2.7.egg/OFS/interfaces.py, line 
19, in module
from zope.location.interfaces import IPossibleSite
ImportError: cannot import name IPossibleSite

ideas?

Thanks
Len

___
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: qbittorrent freezes, ioctl sign-extension ioctl ffffffff8004667e [SOLVED]

2012-07-09 Thread Eitan Adler
On 9 July 2012 15:26, Mario Lobo l...@bsd.com.br wrote:
 I don't know how to get in touch with the boost-lib port mantainer so
 he/she can fix the port file patch-boost_asio-ioctl to add these
 changes.

The best way to contact a maintainer for something like this is to
submit a PR: http://www.freebsd.org/send-pr.html


-- 
Eitan Adler
___
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: qbittorrent freezes, ioctl sign-extension ioctl ffffffff8004667e [SOLVED]

2012-07-09 Thread Mario Lobo
On Mon, 9 Jul 2012 15:35:01 -0700
Eitan Adler li...@eitanadler.com wrote:

 On 9 July 2012 15:26, Mario Lobo l...@bsd.com.br wrote:
  I don't know how to get in touch with the boost-lib port mantainer
  so he/she can fix the port file patch-boost_asio-ioctl to add these
  changes.
 
 The best way to contact a maintainer for something like this is to
 submit a PR: http://www.freebsd.org/send-pr.html
 
 

Done it! Thanks

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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