Re: Bourne shell if syntax

2013-06-11 Thread Christoph Kukulies

On 10.06.2013 20:53, lcon...@go2france.com wrote:



script fragment:

PTR=`dig @some.dns +short +norec -x a.b.c.d`

echo $PTR

if  [  $PTR  ==]  ;  then



Use something like (== is wrong, btw.)

#!/bin/sh

if [ X$1 = X ] ; then
   echo foo
fi


--
Christoph



echo $PTR  /path/to/PTR_absent.txt

fi

===

output for an IP:


a-b-c-d.domain.net.
[: a-b-c-d.domain.net.: unexpected operator

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


___
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: 5.25 floppy drive

2010-10-02 Thread Christoph Kukulies

 Thanks to all.

Solved.

It was a multiple cause issue:

1st: BIOS Setting was incorrect (had to enable 1.2MB 5.25 rather than 
3.5 which was it set to - an oversight in the firts place, that occured 
to me).



2nd: Cable issue: I had a combined cable (3.5  connector at the end and 
edge connector second but last.



3rd:  in combination with 2nd: DS0 jumper issue.


Anyway, I found a cable that had two edge connectors.

In the end it turns out that the floppies that were lying in a drawer 
for 19 years, are producing read errors.
I also learnt about fdcontrol. Floppy interface has changed 
significantly since Joerg Wunsch and Bruce Evans

worked on them in the early FreeBSD days back in 1995 :)


--
Christoph


Am 01.10.2010 19:18, schrieb Warren Block:

On Fri, 1 Oct 2010, Christoph Kukulies wrote:

I'm in the need of reading some data from old 5.25 floppy media 
(1.2MB).
I lent 2 drives from neighbour institutes at the university and after 
having recalled that the
floppies have to be enabled in the BIOS I'm now seeing the fd0 device 
in dmesg (FreeBSD 8.0 RELEASE).


I can do a dd if=/dev/fd0 of=/root/fd0.dmp

The select light is lit, the head motor seems to get power but the 
spindle doesn't spin.


Possibly a drive select issue.  Some drives had jumpers or switches, 
some cables have flipped-around wires so the connectors are specific 
to one drive or another.  If your cabling is straight-through with no 
funny business at the connectors, set the drive to DS0.  If the cable 
has split out and flipped-over sections, DS1 should be set in the 
jumpers --but then it depends on which connector is used.  ...I think, 
anyway, it's been a few years since I've had to use a 5.25.



I tried that with two TEAC drives to no avail.

Any clues what I may have forgotten? The drive is connected with the 
edge connector and the end is open.

Does it need to be terminated?


None that I've seen.
___
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


5.25 floppy drive

2010-10-01 Thread Christoph Kukulies

 I'm in the need of reading some data from old 5.25 floppy media (1.2MB).
I lent 2 drives from neighbour institutes at the university and after 
having recalled that the
floppies have to be enabled in the BIOS I'm now seeing the fd0 device in 
dmesg (FreeBSD 8.0 RELEASE).


I can do a dd if=/dev/fd0 of=/root/fd0.dmp

The select light is lit, the head motor seems to get power but the 
spindle doesn't spin.


I tried that with two TEAC drives to no avail.

Any clues what I may have forgotten? The drive is connected with the 
edge connector and the end is open.

Does it need to be terminated?

--
Christoph

___
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: copying a disk with ignoring errors

2010-07-06 Thread Christoph Kukulies

Am 05.07.2010 21:39, schrieb Polytropon:

On Mon, 05 Jul 2010 16:09:23 +0200, Christoph Kukuliesk...@kukulies.org  
wrote:
   


I tried PHKs' recoverdisk with  recoverdisk -b 1024000 /dev/ad2 ad2.dmp

and it went off quite promising just few dma read timeouts and when I
was at 7% of recovery
it suddenly says:
ad2: FAILURE - device detached.
1558528000 1024000 failed (device not configured)
#
 

Not good. Can you obtain an 1:1 copy of the disk using ddrescue?
And it's often easier to operate partition-wise, if there are
functionally separated partitions on the disk; let's assume
the /home directory was mounted from slice 1 partition f, then
try:

# ddrescue -d -r 3 -n /dev/ad2s1f home.ddr logfile

If you are lucky to get a copy of this partition, you can try
to apply analytic and repairing tools to that partition copy.



   

Hmm. How can I avoid that the device gets detached?
 

I do not think you can do anything against it. A device detachment
means a MASSIVE failure. It *can* be a problem of the controller,
but mostly it is a problem of the disk itself. There can be a way
to get around it - by replacing the disk's PCB with an identical
one. But it's not for sure that this will work, e. g. if the disk's
drive components have massive defects.

A device detachment at least doesn't look like an easy I/O problem
within the drive's components (the platters, heads, the motors).

The error must be that massive that the disk itself says goodbye
to the system and disappears so that no control commands will reach
it.

You can try atacontrol reinit to force the disk back on-line,
but it may refuse to do so. See man atacontrol for other options.
You can also use the smartctl program (from port smartmontools)
to check the drive's error memory to see what has caused the detachment;
maybe there's some information there.

It's like /dev/cpu: device disappeared. :-)
   


Thanks for the detailed alternatives and explanations. I managed in a 
second attempt
by using the option recoverdisk -b 102400 -r workfile -w workfile 
/dev/ad2 ad2.dmp
(maybe I was using a different large number for the -b option, maybe I 
even tried it once with -b 0).
Anyway the second time it held until I was down to a few thousand block 
being unrecoverable.


In the end I was able to recover the data. Thanks.

Christoph

___
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: copying a disk with ignoring errors

2010-07-05 Thread Christoph Kukulies

Am 06.01.2010 02:30, schrieb Polytropon:

On Tue, 05 Jan 2010 15:31:46 +0100, Christoph Kukuliesk...@kukulies.org  
wrote:
   

It copies a disk sector by sector to a file (kind of dd), but ignores
errors, it just skips sectors it couldn't read (after a couple
of retries). The result was, that one had a - albeit - worm-eaten -
image of the disk allowing to access the filesystem
and getting to the important files with a little luck these not being
amongst the corrupted data.

Anyone knowing what this little tool was named? Something like diskcopy,
devcopy, I forgot.
 

 From my list of recovery-related tools:
dd_rescue
ddrescue
fetch -rRdevice
recoverdisk

I'm quite sure it was one of them.

   



Allow me to followup on this a bit vintaged thread but it's an all over 
again happening issue.

Some student lost some important data due to disk failure.

I tried PHKs' recoverdisk with  recoverdisk -b 1024000 /dev/ad2 ad2.dmp

and it went off quite promising just few dma read timeouts and when I 
was at 7% of recovery

it suddenly says:
ad2: FAILURE - device detached.
1558528000 1024000 failed (device not configured)
#

Hmm. How can I avoid that the device gets detached?

--
Christoph








___
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 splash screen - freezes my Dell Inspiron 9400

2010-04-01 Thread Christoph Kukulies

I'm observing the following with 8.0 Release:

Just for fun I installed a FreeBSD splash screen The Power to Serve 
with the abstracted little demon.
As long as the vidcontrol screen saver (not X11, I'm not running X11 at 
present) has not fired the first time,

everything  is fine - I can work in alphanumeric mode.

But when I leave the computer unattended for a while so that the 
screensaver switches to darken/blank the screen
the first time, the machine freezes or at least cannot be woken up again 
so that the character screen shows up again.


Anyone seen this or having a clue?

Also not sure whether it is a splash screen issue at all, butr I thought 
so, since it would have come up earlier otherwise.


--
Christoph Kukulies

___
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: dd cloning slightly different disks

2010-03-31 Thread Christoph Kukulies
Thanks, Peter and all others. Indeed, in contrary to the expected, I 
went into my office this morning, swapped the
HD against the SSD, and was able to boot both FreeBSD, Windows without a 
hitch or any other tweaking.


The dd over USB 2.0 to the SSD from the WD hard disk took 21261 s 
(nearly 6 hours)
I would possibly have had better results if I had both disks connected 
to a SATA controller

and did the dd there, but so what, I'm there happily.

Thanks for sharing.

--
Christoph
Will post bonnie results later.

Peter Steele schrieb:

Theoretically, doing a straight dd copy of one disk to another and then 
swapping in that disk should work. I've done it, with no other tweaking needed. 
I've never done it with mixed OS instances on the same disk, or for that matter 
with a solid state drive. You'll lose the trailing 12GB of your disk, although 
you might be able to expand the last partition of whatever OS uses it to 
include this lost space

-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Christoph Kukulies
Sent: Tuesday, March 30, 2010 8:48 AM
To: freebsd-questions@freebsd.org
Subject: dd cloning slightly different disks

Though not 100% FreeBSD centric, my question, I know that disk partitioning 
experts are around here.
My noteook HD is a WD 5000BEVT, (500GB). Today I bought a Kingston SDnowV+ 
Solid State drive, 512GB, with the intention to make my notebook a bit faster. 
It's an Intel Core 2 Duo,
7400 CPU.

The WD disk shows as having 976773168 sectors (500108 MB), the SSD has 
1000215216 sectors (512110 MB).

At the moment I'm copying (dd) from the WD internal disk to the SSD which I had 
put into an external SATA Icybox.

I'm hoping to be able to use my FreeBSD and Windows partitions afterwards 
somehow, possibly with some geometry tweaking or what. Due to the different 
disk geometry I'm expecting that the partition table entries will be wrong.

Any clues how I should proceed when the copy will be done in 7 hours or so? 
(20MB/s is the transfer rate I got from a short test that I did before starting 
the big copy).

--
Christoph
  


___
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: dd cloning slightly different disks

2010-03-31 Thread Christoph Kukulies

This are the bonnie results:

# bonnie -s 4000
File './Bonnie.1283', size: 4194304000
Writing with putc()...done
Rewriting...done
Writing intelligently...done
Reading with getc()...done
Reading intelligently...done
Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done...
 ---Sequential Output ---Sequential Input-- 
--Random--
 -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- 
--Seeks---
MachineMB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  
/sec %CPU
4000 118158 79.4 119134 19.0 44154 10.4 61967 53.0 104888 10.5 
5344.4 12.4


--
Christoph

Christoph Kukulies schrieb:
Thanks, Peter and all others. Indeed, in contrary to the expected, I 
went into my office this morning, swapped the
HD against the SSD, and was able to boot both FreeBSD, Windows without 
a hitch or any other tweaking.


The dd over USB 2.0 to the SSD from the WD hard disk took 21261 s 
(nearly 6 hours)
I would possibly have had better results if I had both disks connected 
to a SATA controller

and did the dd there, but so what, I'm there happily.

Thanks for sharing.

--
Christoph
Will post bonnie results later.

Peter Steele schrieb:
Theoretically, doing a straight dd copy of one disk to another and 
then swapping in that disk should work. I've done it, with no other 
tweaking needed. I've never done it with mixed OS instances on the 
same disk, or for that matter with a solid state drive. You'll lose 
the trailing 12GB of your disk, although you might be able to expand 
the last partition of whatever OS uses it to include this lost space


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Christoph 
Kukulies

Sent: Tuesday, March 30, 2010 8:48 AM
To: freebsd-questions@freebsd.org
Subject: dd cloning slightly different disks

Though not 100% FreeBSD centric, my question, I know that disk 
partitioning experts are around here.
My noteook HD is a WD 5000BEVT, (500GB). Today I bought a Kingston 
SDnowV+ Solid State drive, 512GB, with the intention to make my 
notebook a bit faster. It's an Intel Core 2 Duo,

7400 CPU.

The WD disk shows as having 976773168 sectors (500108 MB), the SSD 
has 1000215216 sectors (512110 MB).


At the moment I'm copying (dd) from the WD internal disk to the SSD 
which I had put into an external SATA Icybox.


I'm hoping to be able to use my FreeBSD and Windows partitions 
afterwards somehow, possibly with some geometry tweaking or what. Due 
to the different disk geometry I'm expecting that the partition table 
entries will be wrong.


Any clues how I should proceed when the copy will be done in 7 hours 
or so? (20MB/s is the transfer rate I got from a short test that I 
did before starting the big copy).


--
Christoph


___
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


dd cloning slightly different disks

2010-03-30 Thread Christoph Kukulies
Though not 100% FreeBSD centric, my question, I know that disk 
partitioning experts are around here.

My noteook HD is a WD 5000BEVT, (500GB). Today I bought a Kingston SDnowV+
Solid State drive, 512GB, with the intention to make my notebook a bit 
faster. It's an Intel Core 2 Duo,

7400 CPU.

The WD disk shows as having 976773168 sectors (500108 MB),
the SSD has 1000215216 sectors (512110 MB).

At the moment I'm copying (dd) from the WD internal disk to the SSD 
which I had put into

an external SATA Icybox.

I'm hoping to be able to use my FreeBSD and Windows partitions 
afterwards somehow,
possibly with some geometry tweaking or what. Due to the different disk 
geometry

I'm expecting that the partition table entries will be wrong.

Any clues how I should proceed when the copy will be done in 7 hours or 
so? (20MB/s
is the transfer rate I got from a short test that I did before starting 
the big copy).


--
Christoph

___
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: dd cloning slightly different disks

2010-03-30 Thread Christoph Kukulies

Jerry McAllister schrieb:

On Tue, Mar 30, 2010 at 05:47:44PM +0200, Christoph Kukulies wrote:

  
Though not 100% FreeBSD centric, my question, I know that disk 
partitioning experts are around here.

My noteook HD is a WD 5000BEVT, (500GB). Today I bought a Kingston SDnowV+
Solid State drive, 512GB, with the intention to make my notebook a bit 
faster. It's an Intel Core 2 Duo,

7400 CPU.

The WD disk shows as having 976773168 sectors (500108 MB),
the SSD has 1000215216 sectors (512110 MB).

At the moment I'm copying (dd) from the WD internal disk to the SSD 
which I had put into

an external SATA Icybox.

I'm hoping to be able to use my FreeBSD and Windows partitions 
afterwards somehow,
possibly with some geometry tweaking or what. Due to the different disk 
geometry

I'm expecting that the partition table entries will be wrong.

Any clues how I should proceed when the copy will be done in 7 hours or 
so? (20MB/s
is the transfer rate I got from a short test that I did before starting 
the big copy).



Well, this could possibly work, but I wonder why you want to do it
this way.I would be inclined to divide the disk as desired, do
the MSW install in the first slice and then get a FeeBSD fixit and
partition the other slice and then use dump/restore to move the FreeBSD
stuff over.   That way you get the best fit for the new disk, no
worries about tweaking geometry and no loss of the amount the new
drive is bigger than the old one.
  


Reason was: I wanted to preserve all settings (Windows XP and FreeBSD) 
and avoid any
reinstallation of packages or sth. and wanted to continue working with a 
minimum of interruption.


Maybe I could  use the 12GB overspace  either later by assigning it an 
extra partition or

grow some partition that is adjacent to the free space.

--
Christoph


jerry


  

--
Christoph

___
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


md5 of /dev/acd0

2010-03-08 Thread Christoph Kukulies
I was trying to determine a md5sum from a DVD I had inserted into a 
FreeBSD 8.0

on my Dell Inspiron 9400 notebook.

I thought dd if=/dev/acd0 | md5 would work but I got Invalid argument.

Trying dd if=/dev/acd0 bs=1048k | md5 worked  in so far that it didn't 
yield an error
but after the DVD stopped spinning the command  hung and I only could 
bail out using ^C.


Any clues?

--
Christoph

___
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: Cannot boot FreeBSD (8.0) from USB stick (Dell Inspiron 9400)

2010-01-23 Thread Christoph Kukulies

Fbsd1 schrieb:

Christoph Kukulies wrote:

I don't know why you shout. (?)


Not shouting, just making my inserted comments visible within the old 
post as in different from bottom or top posting.


Ok, writing in capitals is normally treated as shouting (see 
netiquette) or only allowed when

someone is disabled by eyes.

Just write your comments inbetween. I and others will know how to read :)

--
Christoph

___
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: Cannot boot FreeBSD (8.0) from USB stick (Dell Inspiron 9400)

2010-01-22 Thread Christoph Kukulies

I don't know why you shout. (?)

Fbsd1 schrieb:

Christoph Kukulies wrote:

Fbsd1 schrieb:

Christoph Kukulies wrote:
I installed FreeBSD 8.0 on an USB-stick and was able to boot it on 
my Desktop PC and install 8.0

from it.


DO YOU MEAN YOU INSTALLED THE 8.0 ISO ON A USB STICK. BOOTED FROM IT 
AS INSTALL SOURCE AND INSTALLED 8.0 ON A DESKTOP PC TO THE MOTHERBOARD 
CABLED HARD DRIVE??? OR DO YOU MEAN YOU INSTALLED 8.0 ON A DESKTOP PC 
TO ANOTHER USB STICK???


The former, I copied the 8.0 iso image to an USB stick, booted it and 
installed it to the desktop PCs hard drive.
That was one story. The other point is, that I now wanted to plug this 
USB stick into my Dell inspiron and install FreeBSD in the same manner 
to a free partition on my notebooks hard drive.







Now I plugged the same stick into my Dell Inspiron 9400 and the USB 
stick (2GB) is not even listed in the F12 Bios boot menu.


YOU MEAN YOU PLUGGED THE STICK WITH THE ISO INSTALLED ON IT THAT THE 
DESKTOP BOOTED FROM???


Yes, that same stick booted the desktop but is not recognized in the F12 
menu of my notebook.






Any clues?

--
Christoph



Older pc's have bios which do not have option to boot from USB stick.
I think that is so in your case. Check mfg website for bios update.
If not you are SOL. (shit outof luck)


I can boot USB sticks in general from that notebook/BIOS. That Dell 
9400 isn't that old. Today I tried an another USB stick (16GB) an 
Ubuntu 9.04 boot image and it worked fine. I saw the boot device 
under F12 in the bootable device menu.
It's definitely not the BIOS. Could be some partition problem (active 
partition?). 

 Why is it part #4 btw, that FreeBSD resides in and not part #1 ?

LETS NOT GET CONFUSED WITH MSDOS /FREEBSD TERMS. IN FREEBSD A SLICE IS 
WHAT MSDOS CALLS A PARTITION. IN FREEBSD A PARTITION IS A FILE SYSTEM 
SUCH AS /, /USR, /VAR WITH IN THE SLICE. A SLICE IS MARKED AS ACTIVE 
MEANING ITS BOOTABLE. THE MBR


The FreeBSD fdisk program names it partition.

(MASTER BOOT RECORD)PARTITION TABLE IS REALLY FREEBSD SLICE TABLE. 
FROM YOUR STATEMENT ABOVE YOU HAVE A MOTHERBOARD CABLED HARD DRIVE 
WITH 4 PARTITIONS/SLICES DEFINED IN THE MBR PARTITION TABLE. THE FIRST 
3 PARTITIONS COULD BE HOLDING OTHER OPERATING SYSTEMS THAT YOU MAY 
WANT TO BOOT FROM. IS THIS CORRECT?


Actually, I thought the USB stick had been blanked out before, but I'm 
nit sure and will look at it again.




 I followed some FreeBSD howto, if I'm not wrong, to bring the ISO

to the USB stick. Think it was a tool from HP to write it to the stick.

--
Christoph







I will come back with the results of the check below later.

--
Christoph

!-- scripts deleted-- 
___
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: Cannot boot FreeBSD (8.0) from USB stick (Dell Inspiron 9400)

2010-01-22 Thread Christoph Kukulies

Here is some more info:

The file I copied to the USB stick was

ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/8.0/8.0-RELEASE-i386-memstick.img

Actually, I don't remember how I got the image to the USB stick. I 
believe I used a free tool from HP

from within Windows XP.

I will try out your method below now.


kernel messages at the time usb stick is inserted:
ugen4.3: USB 2.0 at usbus4
umass0: USB 2.0 Flash Disk, class 0/0, rev 2.00/1.10, addr 3 on usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x
umass0:1:0:-1: Attached to scbus1
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have 
changed

(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: USB 2.0 Flash Disk PMAP Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 1921MB (3935000 512 byte sectors: 255H 63S/T 244C)
GEOM: da0: media size does not match label.
#
#
# fdisk /dev/da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=244 heads=255 sectors/track=63 (16065 blks/cyl)

/tmp/l12: unmodified, readonly: line 1
kernel messages at the time usb stick is inserted:
ugen4.3: USB 2.0 at usbus4
umass0: USB 2.0 Flash Disk, class 0/0, rev 2.00/1.10, addr 3 on usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x
umass0:1:0:-1: Attached to scbus1
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have 
changed

(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: USB 2.0 Flash Disk PMAP Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 1921MB (3935000 512 byte sectors: 255H 63S/T 244C)
GEOM: da0: media size does not match label.
#
#
# fdisk /dev/da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=244 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=244 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:
UNUSED
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
   start 0, size 5 (24 Meg), flag 80 (active)
   beg: cyl 0/ head 0/ sector 1;
   end: cyl 1023/ head 254/ sector 63
#
--
Christoph

___
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


Cannot boot FreeBSD (8.0) from USB stick (Dell Inspiron 9400)

2010-01-21 Thread Christoph Kukulies
I installed FreeBSD 8.0 on an USB-stick and was able to boot it on my 
Desktop PC and install 8.0

from it.

Now I plugged the same stick into my Dell Inspiron 9400 and the USB 
stick (2GB) is not even listed in the F12 Bios boot menu.


Any clues?

--
Christoph

___
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: Cannot boot FreeBSD (8.0) from USB stick (Dell Inspiron 9400)

2010-01-21 Thread Christoph Kukulies

Fbsd1 schrieb:

Christoph Kukulies wrote:
I installed FreeBSD 8.0 on an USB-stick and was able to boot it on my 
Desktop PC and install 8.0

from it.

Now I plugged the same stick into my Dell Inspiron 9400 and the USB 
stick (2GB) is not even listed in the F12 Bios boot menu.


Any clues?

--
Christoph

___
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




Older pc's have bios which do not have option to boot from USB stick.
I think that is so in your case. Check mfg website for bios update.
If not you are SOL. (shit outof luck)


I can boot USB sticks in general from that notebook/BIOS. That Dell 9400 
isn't that old. Today I tried an another USB stick (16GB) an Ubuntu 9.04 
boot image and it worked fine. I saw the boot device under F12 in the 
bootable device

menu.
It's definitely not the BIOS. Could be some partition problem (active 
partition?). Why is it part #4 btw, that FreeBSD resides in and not part 
#1 ? I followed some FreeBSD howto, if I'm not wrong, to bring the ISO 
to the USB stick. Think it was a tool from HP to write it to the stick.


--
Christoph

___
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: Salvage files from harddrive

2010-01-19 Thread Christoph Kukulies

Your computers date/time is wrong. It's dated in the future.

--
Christoph

jeffry killen schrieb:



Thank you in advance for guidance, suggestions.
JK


___
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: rum0 acting as an Access point (belkin router) 8.0 R

2010-01-19 Thread Christoph Kukulies

Paul B Mahol schrieb:


Argh sorry, you need to use:
create_args_wlan0=wlanmode hostap


  

Yep, it works now:

rc.conf:
wlans_rum0=wlan0
create_args_wlan0=wlanmode hostap
network_interfaces=lo0 rl0 wlan0 # List of network interfaces (or auto).
ifconfig_lo0=inet 127.0.0.1   # default loopback device configuration.
ifconfig_rl0=inet 172.27.4.219 netmask 255.255.248.0
ifconfig_wlan0=inet 10.0.0.1/24 ssid OFFICE wepmode on wepkey 
0xf00baaf00baaf00baaf00baaf0  weptxkey 1 channel 1

defaultrouter=172.27.2.116

ifconfig:

rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
   ether 00:11:50:cb:52:10
   media: IEEE 802.11 Wireless Ethernet autoselect mode 11g hostap
   status: running
wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   ether 00:11:50:cb:52:10
   inet 10.0.0.1 netmask 0xff00 broadcast 10.0.0.255
   media: IEEE 802.11 Wireless Ethernet autoselect mode 11g hostap
   status: running
   ssid OFFICE channel 1 (2412 Mhz 11g) bssid 00:11:50:cb:52:10
   country US authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit
   txpower 0 scanvalid 60 protmode CTS dtimperiod 1 -dfs



Hmm, should I throw the Belkin thing into the waste and buy something
else? I was hoping that 8.0 had changed it to the better a bit. But if
you are saying, rum(4) is still crappy...



Not rum(4) but chip.

  



Thanks for helping.

--
Christoph

___
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: rum0 acting as an Access point (belkin router) 8.0 R

2010-01-18 Thread Christoph Kukulies

Paul B Mahol schrieb:

On 1/15/10, Christoph Kukulies k...@kukulies.org wrote:
  

I'm not sure wether syntax has changed but I wanted to cretae an wlan
acess point
and tried various things. Under 7.0 I got it working with the following
command

ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid CITYOFFICE  wepmode
on wepkey 0xf00baf00ba weptxkey 1 channel 1


I tried this but got a socket error Invalid argument.

Then I tried (from an example in the rum (4) manpage):ifconfig wlan
create wlandev rum0 10.0.0.1/24 mediaopt hostap CITYOFFICE wepmode on
wepkey 0xf00baaf00baa  weptxkey 1 channel 1




Perhaps you want this one:

ifconfig wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid
CITYOFFICE wepmode on wepkey 0xf00baaf00baa  weptxkey 1 channel 1

  


I tried this in rc.conf:

ifconfig_rum0=wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid 
CITYOFFICE  wepmode on wepkey 0xf00baaf00baa weptxkey 1 channel 1


I got this:

rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
   ether 00:11:50:cb:52:10
   media: IEEE 802.11 Wireless Ethernet autoselect adhoc 
(autoselect adhoc)

   status: no carrier


Why no carrier?
And I would expect more info on the interface like SSID and such.

--
Christoph


and got:


wlan0
ifconfig: SIOCSIFMEDIA (media): Device not configured

But suddenly the wlan0 device is there.

Can anybody fill me in?

--
Christoph




___
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: rum0 acting as an Access point (belkin router) 8.0 R

2010-01-18 Thread Christoph Kukulies

Craig Butler schrieb:

On Mon, 2010-01-18 at 16:25 +0100, Samuel Martín Moro wrote:
  

in my rc.conf:
ifconfig_rum0=DHCP wepmode on weptxkey 1 wepkey 1:0xBC45AD1BD5 ssid
ReseauWIFI

Maybe your problem is that wepkey is malformatted in your command
If not, I didn't try to understand, but I also had troubles with the
position of SSID keyword.
(ifconfig arg error, might be your problem)
(btw: I also had problem with ssid containing spaced characters)


Later, I tried to set it up as an hostap, it seems to work well.
But when I try to connect from an other computer, I'm unable to to join the
network.
(running under 7.2, I compiled the kernel adding a define matching my
device, based on a similar (I hope so...) chipset)


good luck


Samuel Martín Moro
CamTrace
{EPITECH.} tek4

Nobody wants to say how this works.
 Maybe nobody knows ...
 Xorg.conf(5)


On Mon, Jan 18, 2010 at 3:43 PM, Christoph Kukulies k...@kukulies.orgwrote:



Paul B Mahol schrieb:

 On 1/15/10, Christoph Kukulies k...@kukulies.org wrote:
  


I'm not sure wether syntax has changed but I wanted to cretae an wlan
acess point
and tried various things. Under 7.0 I got it working with the following
command

ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid CITYOFFICE  wepmode
on wepkey 0xf00baf00ba weptxkey 1 channel 1


I tried this but got a socket error Invalid argument.

Then I tried (from an example in the rum (4) manpage):ifconfig wlan
create wlandev rum0 10.0.0.1/24 mediaopt hostap CITYOFFICE wepmode on
wepkey 0xf00baaf00baa  weptxkey 1 channel 1



  

Perhaps you want this one:

ifconfig wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid
CITYOFFICE wepmode on wepkey 0xf00baaf00baa  weptxkey 1 channel 1





I tried this in rc.conf:

ifconfig_rum0=wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid
CITYOFFICE  wepmode on wepkey 0xf00baaf00baa weptxkey 1 channel 1

I got this:

rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
  ether 00:11:50:cb:52:10
  media: IEEE 802.11 Wireless Ethernet autoselect adhoc (autoselect
adhoc)
  status: no carrier


Why no carrier?
And I would expect more info on the interface like SSID and such.

--
Christoph


 and got:
  

wlan0
ifconfig: SIOCSIFMEDIA (media): Device not configured

But suddenly the wlan0 device is there.

Can anybody fill me in?

--
Christoph



  


Wireless changed on 8, you have to define wlans in rc.conf then set the
  


That's why I'm asking :)


network up onto the appropriate wlan entry;

example;

wlans_wpi0=wlan0
ifconfig_wlan0=WPA DHCP

Regards

Craig B

  


Thanks Craig, and also Paul. It looks a bitt better now though still not 
perfect. I don't see the SSID on the network yet

(I filled in a bogus wepkey for posting here, of course):

rc.conf:
wlans_rum0=wlan0
network_interfaces=lo0 rl0 wlan0 # List of network interfaces (or auto).
ifconfig_lo0=inet 127.0.0.1   # default loopback device configuration.
ifconfig_rl0=inet 172.27.4.219 netmask 255.255.248.0
ifconfig_wlan0=wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap 
ssid Aachen

wepmode on wepkey 0xf00baaf00baa  weptxkey 1 channel 1
defaultrouter=172.27.2.116

ifconfig:
rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
   ether 00:11:50:cb:52:10
   media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
   status: associated
wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   ether 00:11:50:cb:52:10
   media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
   status: no carrier
   ssid  channel 10 (2457 Mhz 11g)
   country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
   bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
   protmode CTS bintval 0

Note, that I would like to build up an AP, not a peer to peer or WLAN 
client.


--
Christoph




___
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: rum0 acting as an Access point (belkin router) 8.0 R

2010-01-18 Thread Christoph Kukulies

Paul B Mahol schrieb:

On 1/18/10, Christoph Kukulies k...@kukulies.org wrote:
  

Craig Butler schrieb:


On Mon, 2010-01-18 at 16:25 +0100, Samuel Martín Moro wrote:

  

in my rc.conf:
ifconfig_rum0=DHCP wepmode on weptxkey 1 wepkey 1:0xBC45AD1BD5 ssid
ReseauWIFI

Maybe your problem is that wepkey is malformatted in your command
If not, I didn't try to understand, but I also had troubles with the
position of SSID keyword.
(ifconfig arg error, might be your problem)
(btw: I also had problem with ssid containing spaced characters)


Later, I tried to set it up as an hostap, it seems to work well.
But when I try to connect from an other computer, I'm unable to to join
the
network.
(running under 7.2, I compiled the kernel adding a define matching my
device, based on a similar (I hope so...) chipset)


good luck


Samuel Martín Moro
CamTrace
{EPITECH.} tek4

Nobody wants to say how this works.
 Maybe nobody knows ...
 Xorg.conf(5)


On Mon, Jan 18, 2010 at 3:43 PM, Christoph Kukulies
k...@kukulies.orgwrote:




Paul B Mahol schrieb:

 On 1/15/10, Christoph Kukulies k...@kukulies.org wrote:

  

I'm not sure wether syntax has changed but I wanted to cretae an wlan
acess point
and tried various things. Under 7.0 I got it working with the
following
command

ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid CITYOFFICE
wepmode
on wepkey 0xf00baf00ba weptxkey 1 channel 1


I tried this but got a socket error Invalid argument.

Then I tried (from an example in the rum (4) manpage):ifconfig wlan
create wlandev rum0 10.0.0.1/24 mediaopt hostap CITYOFFICE wepmode on
wepkey 0xf00baaf00baa  weptxkey 1 channel 1




  

Perhaps you want this one:

ifconfig wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid
CITYOFFICE wepmode on wepkey 0xf00baaf00baa  weptxkey 1 channel 1






I tried this in rc.conf:

ifconfig_rum0=wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap ssid
CITYOFFICE  wepmode on wepkey 0xf00baaf00baa weptxkey 1 channel 1

I got this:

rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
2290
  ether 00:11:50:cb:52:10
  media: IEEE 802.11 Wireless Ethernet autoselect adhoc
(autoselect
adhoc)
  status: no carrier


Why no carrier?
And I would expect more info on the interface like SSID and such.

--
Christoph


 and got:

  

wlan0
ifconfig: SIOCSIFMEDIA (media): Device not configured

But suddenly the wlan0 device is there.

Can anybody fill me in?

--
Christoph




  

Wireless changed on 8, you have to define wlans in rc.conf then set the

  

That's why I'm asking :)



network up onto the appropriate wlan entry;

example;

wlans_wpi0=wlan0
ifconfig_wlan0=WPA DHCP

Regards

Craig B


  

Thanks Craig, and also Paul. It looks a bitt better now though still not
perfect. I don't see the SSID on the network yet
(I filled in a bogus wepkey for posting here, of course):

rc.conf:
wlans_rum0=wlan0
network_interfaces=lo0 rl0 wlan0 # List of network interfaces (or auto).
ifconfig_lo0=inet 127.0.0.1   # default loopback device configuration.
ifconfig_rl0=inet 172.27.4.219 netmask 255.255.248.0
ifconfig_wlan0=wlan create wlandev rum0 10.0.0.1/24 wlanmode hostap
ssid Aachen



Still incorrect, remove wlan create wlandev rum0

  

 wepmode on wepkey 0xf00baaf00baa  weptxkey 1 channel 1
defaultrouter=172.27.2.116

ifconfig:
rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
ether 00:11:50:cb:52:10
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:11:50:cb:52:10
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid  channel 10 (2457 Mhz 11g)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
protmode CTS bintval 0

Note, that I would like to build up an AP, not a peer to peer or WLAN
client.



BTW rum(4) is crap in hostap mode.

  


This is what it looks like now:

rc.conf:

wlans_rum0=wlan0
network_interfaces=lo0 rl0 wlan0 # List of network interfaces (or auto).
ifconfig_lo0=inet 127.0.0.1   # default loopback device configuration.
ifconfig_rl0=inet 172.27.4.219 netmask 255.255.248.0
ifconfig_wlan0=10.0.0.1/24 wlanmode hostap ssid OFFICE wepmode on 
wepkey 0xf00baaf00baaweptxkey 1 channel 1

defaultrouter=172.27.2.116

ifconfig:


rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
   ether 00:11:50:cb:52:10
   media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
   status: associated
wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
   ether 00:11:50:cb:52:10
   media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
   status: no carrier
   ssid  channel 11 (2462 Mhz 11g

Re: rum0 acting as an Access point (belkin router) 8.0 R

2010-01-18 Thread Christoph Kukulies

Craig Butler schrieb:



ifconfig_wlan0=10.0.0.1/24 wlanmode hostap ssid OFFICE wepmode on
wepkey 0xf00baaf00baaweptxkey 1 channel 1

erm missing inet ??? missing space between the wepkey and weptxkey ??
  


This only was a cut/paste error in the email text, not actually in the 
rc.conf.


But I noticed that I can piecewise add parameters to the wlan0 interface:

ifconfig wlan0 inet 10.0.0.1/24   adds the IP
ifconfig ssid OFFICE adds the ssid

Only passing all parametrs in one line I fail to manage.

--
Christoph


___
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


rum0 acting as an Access point (belkin router) 8.0 R

2010-01-15 Thread Christoph Kukulies
I'm not sure wether syntax has changed but I wanted to cretae an wlan 
acess point
and tried various things. Under 7.0 I got it working with the following 
command


ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid CITYOFFICE  wepmode 
on wepkey 0xf00baf00ba weptxkey 1 channel 1



I tried this but got a socket error Invalid argument.

Then I tried (from an example in the rum (4) manpage):ifconfig wlan 
create wlandev rum0 10.0.0.1/24 mediaopt hostap CITYOFFICE wepmode on 
wepkey 0xf00baaf00baa  weptxkey 1 channel 1


and got:


wlan0
ifconfig: SIOCSIFMEDIA (media): Device not configured

But suddenly the wlan0 device is there.

Can anybody fill me in?

--
Christoph


___
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: copying a disk with ignoring errors

2010-01-12 Thread Christoph Kukulies
Allow me to continue this thread with a question about a method to erase 
a disk that has bad sectors.
I bought a 1TB hard disk and will do the recoverdisk job soon. Then the 
disk, a Seagate which is still under warranty
until 2013 as my local distributor told me, will go back and hopefully 
I'll be getting a replacement in a few weeks.


But before I'll giv back that disk I would like to erase the disk 
thoroughly.


Now, is the a way to do that in the opposite direction? Would

dd noerror

do that?

Christoph Kukulies schrieb:

Thanks to all.

recoverdisk

was the one, indeed. phk was the original author. And that was the one 
that already helped me once.
Maybe I could have searched the archives  also and would have been 
able to find that previous message a couple of years ago.


I also found by searching archives, that ffsrecov, now ffs2recov, 
might be a tool for partially recovering a disk.


--
Christoph

Mike Tancsa schrieb:

At 08:30 PM 1/5/2010, Polytropon wrote:

recoverdisk


This one worked for me to recover my mum's borked Windows XP HD. It 
was able to recover enough, that I only needed to find one missing 
dll.  Prior to that, it wouldnt even boot up getting stuck on the 
failing parts of the disk.


---Mike



___
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: copying a disk with ignoring errors

2010-01-06 Thread Christoph Kukulies

Thanks to all.

recoverdisk

was the one, indeed. phk was the original author. And that was the one 
that already helped me once.
Maybe I could have searched the archives  also and would have been able 
to find that previous message a couple of years ago.


I also found by searching archives, that ffsrecov, now ffs2recov, might 
be a tool for partially recovering a disk.


--
Christoph

Mike Tancsa schrieb:

At 08:30 PM 1/5/2010, Polytropon wrote:

recoverdisk


This one worked for me to recover my mum's borked Windows XP HD. It 
was able to recover enough, that I only needed to find one missing 
dll.  Prior to that, it wouldnt even boot up getting stuck on the 
failing parts of the disk.


---Mike




Mike Tancsa,  tel +1 519 651 3400
Sentex Communications,m...@sentex.net
Providing Internet since 1994www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike



___
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


copying a disk with ignoring errors

2010-01-05 Thread Christoph Kukulies
I recall a case when I had a hard disk that had got bad sectors and it 
wasn't accessible through normal mounting anymore.
Then a tool came into the game that - I believe - Poul Henning had 
recommended or written for this purpose.


It copies a disk sector by sector to a file (kind of dd), but ignores 
errors, it just skips sectors it couldn't read (after a couple
of retries). The result was, that one had a - albeit - worm-eaten - 
image of the disk allowing to access the filesystem
and getting to the important files with a little luck these not being 
amongst the corrupted data.


Anyone knowing what this little tool was named? Something like diskcopy, 
devcopy, I forgot.


--
Christoph

___
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


7.1 rum0 belkin USB AP

2009-04-06 Thread Christoph Kukulies

I'm in the need of getting a FreeBSD box acting as a router for a 11b wlan.
It seemed to have worked with 11g but the Dell treumobile card which is 
in an older Inspiron 8000
only seems to understand 11b. It doesn't seem to connect to the wlan my 
FreeBSD is offering at the moment with the belkin USB AP.


My ifconfig line is

ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid CITYOFFICE  wepmode 
on wepkey 0xf00baf00ba weptxkey 1 channel 1



The SSID is seen by the dell truemobile card but it cannot connect to 
the network.


Do I have to explicitly force 11b on the belkin ?

--
Christoph

___
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


mod_php5 and apache22

2009-03-24 Thread Christoph Kukulies
I moved a site from some FreeBSD 5.2 or something (with apache2 and 
mod_php5 at that time,

about 3 years old) to 7.1 (Beta though) and apache22.

Now I don't find something that looks like mod_php5 in /usr/ports/www.

Has that changed somehow?

--
Christoph Kukulies


___
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


phpBB3, php5 and mysql

2009-03-24 Thread Christoph Kukulies
I'm in the process of moving a phpBB3 forum to a new machine (formerly 
5.2, now 7.1).

I also was so keen to move to php5 (was running php4 before, I believe).

I have the phpBB3 forum directory copied back into the DocumentRoot.
Mysql 4.1 is running, The database is there, I can log in to mysql and 
view the database.

I can get phpinfo.

Only I can't get the hell out of the phpBB3 forum. When I invoke the 
index.php
I get a blank page with an incomplete xml header. I have no idea were to 
look at the moment.


It looks a bit like php5 is not accessing the database (mysql) or 
something. Is there some module
or driver to be compiled in? I installed php5 now from ports with the 
apache mod_php5 module

being installed.

Any help welcome,

--
Christoph Kukulies

___
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


libxml-2-7-3 (php5 pkg_add)

2009-03-23 Thread Christoph Kukulies

I wanted to do a

pkg_add -r php5

under 7.1 Beta1 and got a warning:

pkg_add: warning: package 'php5-5.2.8' requires 'libxml2-2.7.3', but 
'libxml2-2.6.32' is installed



Should I care and if, how do I repair this?

--
Christoph Kukulies



___
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


7.1 mysql-server-60 stalls

2009-03-20 Thread Christoph Kukulies

I did a pkg_add -r mysql60-server
and then

# mysql_install_db --user=mysql
Installing MySQL system tables...
090320 17:11:24 [Note] Falcon: unable to open system data files.
090320 17:11:24 [Note] Falcon: creating new system data files.
^T ^T
load: 0.01  cmd: mysqld 1028 [uwait] 0.01u 0.01s 0% 11420k
load: 0.01  cmd: mysqld 1028 [uwait] 0.01u 0.01s 0% 11420k

and it hangs forever.

Previously I already had installed mysql-server 60 from ports and it 
showed the same hang on

/usr/local/etc/rc.d/mysql-server start

Then I went back to a server 5.1.26 or something, which worked.

But why does mysql 6.0 not work? I have (simple) rc.firewall with an 
IPDIVERT kernel

and two interfaces with natd running, if that matters anyhow.

--
Christoph P.U. Kukulies

___
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


wlan disappears on rum0

2008-11-28 Thread Christoph Kukulies

I start an

ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid MySID wepmode on 
wepkey 0x01020304050607080910111213 weptxkey 1 channel 1


and it seems that after a day or a night the wlan is gone. No SSID is 
being seen in the air.

I then manually start it again and the wlan is up again.

I have no idea right now when it disappears or why.

Could it be that some nightly periodic is causing this?

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


Re: wlan disappears on rum0

2008-11-28 Thread Christoph Kukulies

Mel schrieb:

On Friday 28 November 2008 11:25:34 Christoph Kukulies wrote:

  

Could it be that some nightly periodic is causing this?



Easy to rule out by running periodic daily by hand, when it's not 3am in the 
morning.
  

Easier said than done. /etc/periodic/daily/ is a bunch of scripts, anyway

# for i in `ls | sort -n`
do
sh ./$i
echo $i
done

is not the culprit. So it must be something else.


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


vnconfig virtual nodes - how is that done nowadays in 7.x?

2008-11-13 Thread Christoph Kukulies
There was a vnconfig way back  in FreeBSD that allowed for managing 
virtual disks or disks as

files. What is the means to handle that kind of situation?

I have a couple of NTFS and UFS partitions on physical disks which I 
would like to dd to files

and then mount them as virtual nodes or whatever that is called now.

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


Re: 7.1-BETA2 installation on ASUS P4S8X fails BIG MEDIUM ERROR

2008-11-12 Thread Christoph Kukulies

Christoph Kukulies schrieb:

Hi,

don't know whether it's the CDROM drive (a Creative 52x mx) or the 
motherboard (ASUS P4S8X) or what.
Anyway, I tried to install a recent version of FreeBSD (7.1-BETA2) and 
the installation

hangs right in the boot process of the installation CD disc1.

I see

acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x11 ascq=0x00
run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config
run_interrupt_driven_hooks: still waiting after 120 seconds for 
xpt_config
run_interrupt_driven_hooks: still waiting after 180 seconds for 
xpt_config


and so on.

Final remark:

I changed the motherboard in the end but actually I suspect that the 
reason the install got hung was not the
READ BIG MEDIUM ERROR (I got this error also with the new motherboard 
and the install got past this error and
continued), the reason was, that I had an ASUS ST-200 SCSI card (NCR 
Symbios chipset?) sticking in the

system that could have caused all the trouble.

Either it was the fact that this card had trouble with FreeBSD anyway (I 
remember something in this vein)

or the card was defective or it was a problem with card and motherboard.

Anyway, the problem has resolved.

Thanks  a lot for the good advice, explanations, tips etc.

--
Christoph

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


Re: 7.1-BETA2 installation from floppies - has anyone tried lately?

2008-11-06 Thread Christoph Kukulies
In the vein of getting a way to install FreeBSD 7.1-BETA2 onto my SATA 
IDE drive (otherwise still running 5.2.1. from IDE drives) I found in 
the seek of other methods to bootstrap myself, that the boot floppy 
hangs after asking for kern1 floppy. Could that be just bad media or 
could it have another cause. In other words: Has anyone tried to boot 
from a 7.1-BETA2 floppy set recently?


Other suggestion of how to bootstrap me from 5.2.1 to 7.1 are welcome:

Doing a cvs-sup ? (Is there still this method of updating FreeBSD? - 
I've been a while off from the front)
Making my SATA drive (/dev/ar0) bootable and putting the contents of the 
distribution into it?

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


hit some FS/slice size limit?

2008-11-06 Thread Christoph Kukulies
I partitioned my Seagate 500 GB Sata drive  under the FreeBSD 7.1 
sysinstall (booted from the install CD while having the drive attached 
to USB on my notebook). When creating the filesystems I chose 472 G for 
the / partition (wanted to put everything into one partition - yeah, I 
know, one should
granulate this finer, but I didn' t want to bother right now). I got 
told that it could not create the slice

(too big? it said). Hmm, is there some limit on a FreeBSD slice size?

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


Re: 7.1-BETA2 installation on ASUS P4S8X fails BIG MEDIUM ERROR

2008-11-05 Thread Christoph Kukulies

Christoph Kukulies schrieb:

Hi Al,

thanks for pointing me to safe mode install. That I will probably try 
tomorrow.
The day ended up in havoc: I tried to boot a floppy to do an ASUS BIOS 
upgrade and somehow messed with the power cable.
A big flash occurred originating from the power supply. I opened the 
power supply, found a blown fuse, ran to the electronics store, bought 
a new fuse (+ one in reserve), inserted the fuse, tried the power 
supply, with connections off and a firework, prematurely - your 
presidential elections aren't finished yet - , developed in front of 
my face. Will continue tomorrow, when America has a new president.




Back at the problem: I chose 3. safe mode to no avail. Still get this

acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x11 ascq=0x00 
run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config


I even changed the CDROM drive to a very old slow one. I changes IDE 
busses (first vs. second IDE) to no avail.
I'm now gonna burn another medium. No luck yet installing 7.1 BETA2. I'm 
also a long time FreeBSD user btw,

from times where it was called 386bsd :-)

--
Christoph


--
Christoph

Al Plant schrieb:

Julien Cigar wrote:

I've this problem too on almost all my machines. The only solution I've
found is to disable DMA (atapi_dma), but then performances are very 
poor

(and I'm still unable to burn a CD/DVD)

On Tue, 2008-11-04 at 16:03 +0100, Christoph Kukulies wrote:

Hi,

don't know whether it's the CDROM drive (a Creative 52x mx) or the 
motherboard (ASUS P4S8X) or what.
Anyway, I tried to install a recent version of FreeBSD (7.1-BETA2) 
and the installation

hangs right in the boot process of the installation CD disc1.

I see

acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x11 ascq=0x00
run_interrupt_driven_hooks: still waiting after 60 seconds for 
xpt_config
run_interrupt_driven_hooks: still waiting after 120 seconds for 
xpt_config
run_interrupt_driven_hooks: still waiting after 180 seconds for 
xpt_config


and so on.

Any clues?

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



Aloha,

I have had similiar happen on 7 and 8 Freebsd installs recently.

If you install using safe mode it will work. Then in /boot/loader.conf

#boot/loader.conf
hw.ata.ata-dma=0
hw.ata.atapi_dma=0

This makes the HD and CD to  work for me after the install.

The error that comes up when you burn a CD seems to be bogus as I 
have used the CD's with out error for installing on other boxes.



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


Re: 7.1-BETA2 installation on ASUS P4S8X fails BIG MEDIUM ERROR

2008-11-05 Thread Christoph Kukulies

Christoph Kukulies schrieb:

Christoph Kukulies schrieb:

Hi Al,

thanks for pointing me to safe mode install. That I will probably try 
tomorrow.
The day ended up in havoc: I tried to boot a floppy to do an ASUS 
BIOS upgrade and somehow messed with the power cable.
A big flash occurred originating from the power supply. I opened the 
power supply, found a blown fuse, ran to the electronics store, 
bought a new fuse (+ one in reserve), inserted the fuse, tried the 
power supply, with connections off and a firework, prematurely - your 
presidential elections aren't finished yet - , developed in front of 
my face. Will continue tomorrow, when America has a new president.




Back at the problem: I chose 3. safe mode to no avail. Still get this

acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x11 ascq=0x00
I now tried with a 7.0 BETA  Boot CD (which I had laying around from 
possibly another fruitless attempt in the past to
update that system from 5.1 or something to 7.x). Same picture. Hangs on 
this


acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x21 ascq=0x00

(asc=0x21 at this time FWIW).

Please help me in getting FreeBSD onto this machine iin whatever way.

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


Re: 7.1-BETA2 installation on ASUS P4S8X fails BIG MEDIUM ERROR

2008-11-04 Thread Christoph Kukulies

Julien Cigar schrieb:

I've this problem too on almost all my machines. The only solution I've
found is to disable DMA (atapi_dma), but then performances are very poor
  


What I've found is enable/disable IDE Master in the BIOS settings. I 
disabled it to no avail.

Just bought a SATA CD/DVD burner hoping to get along with this.

--
Christoph  Kukulies

(and I'm still unable to burn a CD/DVD)

On Tue, 2008-11-04 at 16:03 +0100, Christoph Kukulies wrote:
  

Hi,

don't know whether it's the CDROM drive (a Creative 52x mx) or the 
motherboard (ASUS P4S8X) or what.
Anyway, I tried to install a recent version of FreeBSD (7.1-BETA2) and 
the installation

hangs right in the boot process of the installation CD disc1.

I see

acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x11 ascq=0x00
run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config
run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config
run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config

and so on.

Any clues?

--
Christoph Kukulies



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


Re: 7.1-BETA2 installation on ASUS P4S8X fails BIG MEDIUM ERROR

2008-11-04 Thread Christoph Kukulies

Christoph Kukulies schrieb:

Julien Cigar schrieb:

I've this problem too on almost all my machines. The only solution I've
found is to disable DMA (atapi_dma), but then performances are very poor
  


What I've found is enable/disable IDE Master in the BIOS settings. I 
disabled it to no avail.

Just bought a SATA CD/DVD burner hoping to get along with this.



Pitfall - SATA CDROM drive is not seen by the BIOS so I cannot boot from 
it or
is there a way to get around this? Any other method to boot from? This 
motherboard isn't one of the
newest, in contrary, quite old. Doesn't seem to support boot from USB 
device, so I depend on

getting the system booted from CDROM.

--
Christoph Kukulies

--
Christoph  Kukulies

(and I'm still unable to burn a CD/DVD)

On Tue, 2008-11-04 at 16:03 +0100, Christoph Kukulies wrote:
 

Hi,

don't know whether it's the CDROM drive (a Creative 52x mx) or the 
motherboard (ASUS P4S8X) or what.
Anyway, I tried to install a recent version of FreeBSD (7.1-BETA2) 
and the installation

hangs right in the boot process of the installation CD disc1.

I see

acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x11 ascq=0x00
run_interrupt_driven_hooks: still waiting after 60 seconds for 
xpt_config
run_interrupt_driven_hooks: still waiting after 120 seconds for 
xpt_config
run_interrupt_driven_hooks: still waiting after 180 seconds for 
xpt_config


and so on.

Any clues?

--
Christoph Kukulies


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


Re: 7.1-BETA2 installation on ASUS P4S8X fails BIG MEDIUM ERROR

2008-11-04 Thread Christoph Kukulies

Hi Al,

thanks for pointing me to safe mode install. That I will probably try 
tomorrow.
The day ended up in havoc: I tried to boot a floppy to do an ASUS BIOS 
upgrade and somehow messed with the power cable.
A big flash occurred originating from the power supply. I opened the 
power supply, found a blown fuse, ran to the electronics store, bought a 
new fuse (+ one in reserve), inserted the fuse, tried the power supply, 
with connections off and a firework, prematurely - your presidential 
elections aren't finished yet - , developed in front of my face. Will 
continue tomorrow, when America has a new president.



--
Christoph

Al Plant schrieb:

Julien Cigar wrote:

I've this problem too on almost all my machines. The only solution I've
found is to disable DMA (atapi_dma), but then performances are very poor
(and I'm still unable to burn a CD/DVD)

On Tue, 2008-11-04 at 16:03 +0100, Christoph Kukulies wrote:

Hi,

don't know whether it's the CDROM drive (a Creative 52x mx) or the 
motherboard (ASUS P4S8X) or what.
Anyway, I tried to install a recent version of FreeBSD (7.1-BETA2) 
and the installation

hangs right in the boot process of the installation CD disc1.

I see

acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x11 ascq=0x00
run_interrupt_driven_hooks: still waiting after 60 seconds for 
xpt_config
run_interrupt_driven_hooks: still waiting after 120 seconds for 
xpt_config
run_interrupt_driven_hooks: still waiting after 180 seconds for 
xpt_config


and so on.

Any clues?

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



Aloha,

I have had similiar happen on 7 and 8 Freebsd installs recently.

If you install using safe mode it will work. Then in /boot/loader.conf

#boot/loader.conf
hw.ata.ata-dma=0
hw.ata.atapi_dma=0

This makes the HD and CD to  work for me after the install.

The error that comes up when you burn a CD seems to be bogus as I have 
used the CD's with out error for installing on other boxes.


~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* - 8.* +
   email: [EMAIL PROTECTED] 
All that's really worth doing is what we do for others.- Lewis Carrol



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


7.1-BETA2 installation on ASUS P4S8X fails BIG MEDIUM ERROR

2008-11-04 Thread Christoph Kukulies

Hi,

don't know whether it's the CDROM drive (a Creative 52x mx) or the 
motherboard (ASUS P4S8X) or what.
Anyway, I tried to install a recent version of FreeBSD (7.1-BETA2) and 
the installation

hangs right in the boot process of the installation CD disc1.

I see

acd0: FAILURE - READ BIG MEDIUM ERROR asc=0x11 ascq=0x00
run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config
run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config
run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config

and so on.

Any clues?

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


fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Hi list,

I'm considering using a bootable USB stick with FreeBSD to perform a 
backup of my notebooks'
500 GB hard disk to a physically identical (same make, same type, same 
size) hard disk attached to  USB.


What would be the fastest way to do that sector by sector copy? I'm 
using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000

but maybe there is a utility which does this faster or a larger buffer 
size? Probably the limit will be

the USB 2.0 bus speed anyway?

--
Christoph

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


Re: fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Ivan Voras schrieb:

Jeremy Chadwick wrote:
  

On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:



  
What would be the fastest way to do that sector by sector copy? I'm  
using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000
  


  

On the flip side, your blocksize (bs) there is quite high for no good
reason.  I'd pick something more like bs=64k or bs=128k.  The default
(512) is too small for what you want, but 10MBytes is silly.



Not only that, but 1000 isn't even correct - it needs to be a
multiple of sector size. Generally, using suffixes will do the right thing:

dd if=/dev/ad0 of=/dev/da0 bs=1m

  
OK, I understand that 1000 isn't good, I just thought it wouldn't 
harm. But if it is a transfer rate killer then I'd better think of 
typing ^C now. The command is running for 6 hours now.


An idea how I can check the current amount of transfered byed alongside 
the running dd command? Or watch the current i/o rate?



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


Re: fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Christoph Kukulies schrieb:

Ivan Voras schrieb:

Jeremy Chadwick wrote:
 

On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:



 
What would be the fastest way to do that sector by sector copy? 
I'm  using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000
  


 

On the flip side, your blocksize (bs) there is quite high for no good
reason.  I'd pick something more like bs=64k or bs=128k.  The default
(512) is too small for what you want, but 10MBytes is silly.



Not only that, but 1000 isn't even correct - it needs to be a
multiple of sector size. Generally, using suffixes will do the right 
thing:


dd if=/dev/ad0 of=/dev/da0 bs=1m

  
OK, I understand that 1000 isn't good, I just thought it wouldn't 
harm. But if it is a transfer rate killer then I'd better think of 
typing ^C now. The command is running for 6 hours now.


An idea how I can check the current amount of transfered byed 
alongside the running dd command? Or watch the current i/o rate?

Ack, I mean bytes :)

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


Re: fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Jeremy Chadwick schrieb:

On Fri, Oct 31, 2008 at 03:36:02PM +0100, Christoph Kukulies wrote:
  

Ivan Voras schrieb:


Jeremy Chadwick wrote:
  
  

On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:


  
  
What would be the fastest way to do that sector by sector copy? I'm 
 using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000
  
  
  
  

On the flip side, your blocksize (bs) there is quite high for no good
reason.  I'd pick something more like bs=64k or bs=128k.  The default
(512) is too small for what you want, but 10MBytes is silly.



Not only that, but 1000 isn't even correct - it needs to be a
multiple of sector size. Generally, using suffixes will do the right thing:

dd if=/dev/ad0 of=/dev/da0 bs=1m

  
  
OK, I understand that 1000 isn't good, I just thought it wouldn't  
harm. But if it is a transfer rate killer then I'd better think of  
typing ^C now. The command is running for 6 hours now.



Six hours?  Hmm...  That seems too long, but of course the FreeBSD USB
stack is involved, and a USB device in general.  I would have assumed
that copy should have finished after 2-3 hours tops.

  
An idea how I can check the current amount of transfered byed alongside  
the running dd command? Or watch the current i/o rate?



iostat or gstat (I'm willing to bet you prefer the latter) will get you
what you want, more or less.

  



The job just finished and I have a figure of the Ubuntu performance, 
with the unfortunate blocksize parameter though, so I think it isn't 
much worth. Anyway here is the figure of the

above dd command copying 500GB to a WDC disk in an Icy box.

50010+1 Datensätze ein
50010+1 Datensätze aus
500107862016 Bytes (500GB) kopiert, 25787,9 s, 19,4 MB/s

Will do that using FreeBSD next time.

Thanks a lot so far.

--
Christoph

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


Re: fastest raw device copy?

2008-10-31 Thread Christoph Kukulies

Jerry McAllister schrieb:

On Fri, Oct 31, 2008 at 09:48:16AM +0100, Christoph Kukulies wrote:

  

Hi list,

I'm considering using a bootable USB stick with FreeBSD to perform a 
backup of my notebooks'
500 GB hard disk to a physically identical (same make, same type, same 
size) hard disk attached to  USB.


What would be the fastest way to do that sector by sector copy? I'm 
using dd right now,


dd if=/dev/ad0 of=/dev/da0 bs=1000

but maybe there is a utility which does this faster or a larger buffer 
size? Probably the limit will be

the USB 2.0 bus speed anyway?



Are you sure you want to do a sector-by-sector copy?
That won't get you much that is useful in terms of a backup.

Can't you use dump/restore instead?

Dump each file system on /dev/ad0 to a file on /dev/da0.

Create a file system on /dev/da0 using newfs first.   You may or
may not want to create a FreeBSD slice and partition there before
doing the newfs.  
Make a mount point and mount it.


mkdir /bkmnt
mount /dev/da0 /bkmntOr if you created slice and partition in /dev/da0
 mount /dev/da0s1a /bkmnt

Then do the dumps

  dump 0af /bkmnt/rootbackup /
  dump 0af /bkmnt/usrbackup /usr
  dump 0af /bkmnt/homehackup /home

etc for whatever file systems you want to back up.

You will be much better off than with a sector by sector copy.

jerry
  


The idea was  to have a drop in backup for my notebook that allows me to 
continue working with a minimum of delay. (requires a philips 
screwdriver though :-)


Of course a failure of the source disk while doing the image copy as the 
worst case scenario

would leave me with empty hands :-)

There are a couple of partitions with different OSs on that hard drive.

--
Christoph



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


could not determine fs type - fsck

2006-05-08 Thread Christoph Kukulies
I replaced a disk that had trouble with fsck in a 5.3 system and connected it
to a 5.2.1 system for further examinaton.

starting fsck /dev/ad3 gave me an error: could not determine file system type.

Had there been some change in FS right between FreeBSD 5.2 and 5.3 such that
either systems couldn't recognize each others FSs?
--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tun0, firewall, natd

2004-07-19 Thread Christoph Kukulies
Somehow I haven´t yet managed to get my FreeBSD 5.2 current system
boot up smoothly with initiatiying the network properly.

I´m running ADSL and tun0 doesn´t seem to be initialized when the firewall
rules are being applied and when natd ist started.

I´m getting an error socket not available or cannot bind or something
like that early on tun0.

Also sendmail (kqread) hangs very long after it times out due to DNS
not being available.

When I start natd manually after the system has come up that way (with the
DNS timeouts and all that) it works fine but this situation is not
tolerable in the long run since manual intervention isn´t possible in all
situations.

I´d appreciate some help here. Thank you.

--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org
-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


natd, ipfw and MS netmeeting

2004-06-03 Thread Christoph Kukulies
I have problems getting a MC netmeeting seession established 
across a FreeBSD gateway (5.2-current).

Anyway, the prsent (simple) natd rules don't seem to suffice.

Does anyone have a set of rules to
accomplish this?

Thanks.

--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tr A-Z a-z

2004-05-07 Thread Christoph Kukulies
Strange: I was used to do upper case lower case conversion always like this
and it suddenly doesn't work anymore:

$ echo Z | tr [A-Z] [a-z]
ÿ


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


firewall settings and dhcpd

2004-04-25 Thread Christoph Kukulies
I'm getting this in my log/messages:

Apr 25 13:25:42 mybox dhcpd: send_packet: Permission denied

Could it be that a certain firewall setting or something missing
would be causing this?


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


majordomo question

2004-04-23 Thread Christoph Kukulies
I was trying to find out why I din't receive any mail from
the freebsd-java list and sent a

which

command to majordomo at freebsd.org but didn't get
me listed with my email address. That's strange since I'm definitely
subscribed to a couple of lists and I'm receiving messages.


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


USB stick

2003-09-08 Thread Christoph Kukulies

Hi,

I inserted an USB stick into a 5.1 FreeBSD box and
was pleasantly surprised to see it being autodetected:

umass0: UrDisk USB FLASH DISK, rev 1.10/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: UrDisk USB FLASH DISK 1.00 Removable Direct Access SCSI-2 device 
da0: 1.000MB/s transfers
da0: 15MB (32000 512 byte sectors: 64H 32S/T 15C)

But when I try to mount it, I'm getting 

# mount -t msdos /dev/da0 /mnt
msdosfs: /dev/da0: Invalid argument


Assumed I will get it working soon, how can I achieve that
it is automatically mounted?

Is there a user wrapper to mount/unmount the USB stick?


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de

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


FreeBSD fdisk/sysinstall

2003-08-09 Thread Christoph Kukulies
I tried to invoke sysinstall to write an additional FreeBSD slice
to the disk I was currently booted from.

I intentionally chose the W option to write the changes since
I didn't want to do an installtion. But I got an error that I could
not write to the disk.
Why is that? Because I'm booted from that disk? Or because
the can only be one slice? Don't know. Just wondering.

Is there a neat fdisk for FreeBSD like the linux fdisk
(which is pfdisk derived, I believe). The FreeBSD fdisk
is really archaic and I was not able to specify start/end
block numbers. The calulated cyl numbers seemed to overlap
with the previous partition so I bailed out and left
it as it was and put up this question instead.

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


grub and FreeBSD

2003-08-07 Thread Christoph Kukulies
I was trying to do a grub-install /dev/ad0 but only
get

/dev/ad0 does not have any corresponding BIOS drive


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cvsup tag for 4.8-STABLE?

2003-06-27 Thread Christoph Kukulies

I wanted to cvsup src-all from 4.8-STABLE and tried with
*default release=cvs  tag=RELENG_4

Is this correct?

The cvsup went fine but building the src tree resulted in
errors.

First I got some from some multiply defined typedef (first make world).
Then I did a 'make includes' FWIW, and the subsequent make world then gave
a different error:

In file included from 
/usr/src/gnu/usr.bin/texinfo/info/../../../../contrib/texinfo/info/terminal.c:35:
/usr/include/termcap.h:42: ncurses_dll.h: No such file or directory
mkdep: compile failed
*** Error code 1


I could have a tainted installation with traces from 5.0R but I thought
that a cvsup would wipe them out in /usr/src and /usr/include as well.

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de

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


Bad IP version for 1.44.2.5

2002-11-24 Thread Christoph Kukulies
Strange, I kill -HUP inetd and get the following:
Nov 24 20:44:50 host inetd[201]: bad IP version for 1.44.2.5

Any clues?
(FreeBSD 4.4)
--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



xmcd - rcd0 YAMAHA CRW4260

2002-07-18 Thread Christoph Kukulies


I ran xmcd on a different CD drive today in my 4.5 system since
racd0c wasn't available for the moment and got
the following errors:

CD audio: (pass2:ncr0:0:5:0): READ SUB-CHANNEL. CDB: 42 2 40 0 0 0 0 0 30 0 
(pass2:ncr0:0:5:0): ILLEGAL REQUEST asc:24,0
(pass2:ncr0:0:5:0): Invalid field in CDB

CD audio: (pass2:ncr0:0:5:0): READ SUB-CHANNEL. CDB: 42 2 40 0 0 0 0 0 30 0 
(pass2:ncr0:0:5:0): ILLEGAL REQUEST asc:24,0
(pass2:ncr0:0:5:0): Invalid field in CDB

CD audio: (pass2:ncr0:0:5:0): READ SUB-CHANNEL. CDB: 42 2 40 0 0 0 0 0 30 0 
(pass2:ncr0:0:5:0): ILLEGAL REQUEST asc:24,0
(pass2:ncr0:0:5:0): Invalid field in CDB


No music playing :-(

Any ideas?

My config:

deviceList: /dev/rcd0c
deviceInterfaceMethod:  0
driveVendorCode:0
numDiscs:   1
mediumChangeMethod: 1
scsiAudioVolumeBase:0
minimumPlayBlocks:  25
playAudio10Support: True
playAudio12Support: False
playAudioMSFSupport:True
playAudioTISupport: True
loadSupport:False
ejectSupport:   True
modeSenseSetDBD:False
volumeControlSupport:   True
balanceControlSupport:  False
channelRouteSupport:False
pauseResumeSupport: True
strictPauseResume:  False
playPausePlay:  False
caddyLockSupport:   True
curposFormat:   False
noTURWhenPlaying:   False
MSFSupport:True
volumeControlTaper: 0
startupVolume:  -1   
channelRoute:   0
searchSkipBlocks:   145
searchPauseInterval:80
searchSpeedUpCount: 15
searchVolumePercent:35
searchMinVolume:2 
spinDownOnLoad: True
playOnLoad: False
ejectOnDone:False
ejectOnExit:False
stopOnExit: True
exitOnEject:False
closeOnEject:   False
repeatMode: False
shuffleMode:False
caddyLock:  True
multiPlay:  False
reversePlay:False
internalSpeakerEnable:  False

--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message