Upgrading to higher major version directly or via small steps?

2010-10-04 Thread c0re
Hello all!


I'm interested in 2 updates:
- from 6.2 to 7.3
and
- from 6.2 to 8.1

Can I update directly from 6.2 to 7.3? like set RELENG_7_3 in supfile
and make csup. Or I should update to 6.4, then to 7.0, and then to
7.3?

And same question about upgrading from 6.2 to 8.1 - can i csup
directly to 8.1? If not - why is it so?

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: Cleaning /var/db/portsnap/files/, how?

2010-10-04 Thread RW
On Mon, 04 Oct 2010 12:01:24 +0200
O. Hartmann ohart...@zedat.fu-berlin.de wrote:

 On several FreeBSD boxes performing portsnap fetch updating the
 ports on a regular basis, folder /var/db/portsnap/files/ gets filled
 over time. I was wondering if there is not an elegant, sophisticated
 way cleaning up those files not needed anymore.

There shouldn't be any need to do that, they are supposed to be deleted
automatically. I have 22371, if you have much more than that you
probably should remove the contents of /var/db/portsnap/ and do another
fetch.
___
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: Cleaning /var/db/portsnap/files/, how?

2010-10-04 Thread Jerry
On Mon, 4 Oct 2010 12:59:50 +0100
RW rwmailli...@googlemail.com articulated:

 There shouldn't be any need to do that, they are supposed to be
 deleted automatically. I have 22371, if you have much more than that
 you probably should remove the contents of /var/db/portsnap/ and do
 another fetch.

I have 22339 files on a FreeBSD 8.1/amd64 system. It might be
interesting to find out how to ascertain the correct number of files
that should be located there.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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


change MAC address for PPPoE connection

2010-10-04 Thread Sergeant M.G.Bob
Hello
I'm using PPPoE link to connect to the INTERNET. my problem is that I have
to change my MAC address for my night time link. I do that using ifconfig
command before connecting the night link:

*killall ppp
ifconfig cdce0 ether 2a:00:00:00:00:00
ppp -ddial adslnight*

cdce0 is the interface connected to the ADSL modem. command will change the
MAC address on the interface but PPP still uses the old MAC (I can see it
over tcpdump).
I think it's some cache or something that keeps the old MAC.
please help me, I couldn't find anything related on-line.

my ppp.conf:
*adsl:
  set log Phase tun command
  set redial 99 3
  set device PPPoE:cdce0
  set authname UserName
  set authkey Password
  set dial
  set login
  add default HISADDR

adslnight:
  set log Phase tun command
  set redial 99 3
  set device PPPoE:cdce0
  set authname NightUserName
  set authkey NightPassword
  set dial
  set login
  add default HISADDR*
___
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: Upgrading to higher major version directly or via small steps?

2010-10-04 Thread Odhiambo Washington
On Mon, Oct 4, 2010 at 4:47 PM, c0re nr1c...@gmail.com wrote:

 Hello all!


 I'm interested in 2 updates:
 - from 6.2 to 7.3
 and
 - from 6.2 to 8.1

 Can I update directly from 6.2 to 7.3? like set RELENG_7_3 in supfile and
 make csup. Or I should update to 6.4, then to 7.0, and then to 7.3?

 And same question about upgrading from 6.2 to 8.1 - can i csup directly to
 8.1? If not - why is it so?


http://people.freebsd.org/~rse/upgrade/



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
If you have nothing good to say about someone, just shut up!.
   -- Lucky Dube
___
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: OT: fdisk

2010-10-04 Thread Zbigniew Komarnicki
On Saturday 02 of October 2010 20:36:40 Robert wrote:
 Greetings

Maybe good tool will be System Rescue CD, Linux Live distribution, it has a 
tool named ntfs-3g and ntfsprogs. See here:
http://www.sysresccd.org/Main_Page
http://www.sysresccd.org/Sysresccd-manual-en_Mounting_an_NTFS_partition_with_full_Read-Write_support

 Thanks for any suggestions.

Good luck!

 Robert
Zbigniew
___
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: Cleaning /var/db/portsnap/files/, how?

2010-10-04 Thread Polytropon
On Mon, 04 Oct 2010 12:01:24 +0200, O. Hartmann ohart...@zedat.fu-berlin.de 
wrote:
 On several FreeBSD boxes performing portsnap fetch updating the ports 
 on a regular basis, folder /var/db/portsnap/files/ gets filled over 
 time. 

Sorry for not answering your question, but allow me a little
sidenote regarding the proper terminology.

FreeBSD, as every UNIX OS, has *directories*, not folders.
You do also use the name files, not sheets of paper,
don't you? :-)



-- 
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: CYRUS IMAP cyradm core dump problem

2010-10-04 Thread Reko Turja

Am Thu, Sep 23, 2010 at 03:05:30PM +0300 Reko Turja schrieb:
 I applied the patch as suggested by Reko, but it seemed to make 
 no

 difference

After the patch recompiling and linking at least SASL is needed 
after

buildworld and inatallation of new world.

 removing libgssapiv2 libs however, solved my cyradm problem

 will this cause issues into the future for any other ports I may
 need ti
 install ?

Unless you need kerberos authentication at some point, removing the
libs is non-issue.


I'm running in the same situation as you (see 
http://www.freebsd.org/cgi/getmsg.cgi?fetch=846230+852662+/usr/local/www/db/text/2010/freebsd-stable/20101003.freebsd-stable). I 
did tried
a lot but end up in a broken make buildworld. Any ideas waht I'm 
doing wrong?


I sadly don't have any idea if the patch applies cleanly anymore to 
recent 8.STABLE - I did my testing on 8.1_PRERELEASE, where the patch 
applied cleanly. There was some talk about updating the patch when the 
problem was discussed more widely, but nothing has been realised this 
far.


I might be able to test the patch against 8.STABLE on my home system 
sometime this week - as of myself I just did some testing and 
troubleshooting back when the problem was discussed, as for myself 
having working Kerberos is still non-issue.


Of course if Kerberos functionality is critical for you, you could try 
removing Kerberos from base system using /etc.src.conf and then 
install either kerberos from ports and then linking sasl/cyrus against 
that.


-Reko 


___
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: simplest way to get gnome/ kde up and running

2010-10-04 Thread Foo JH



Have you actually installed KDE and/or Gnome?  I don't see that step
included in what you say you have done.
If you have not you will of course need to do that before you can
configure either of them.
For Gnome you will probably want the x11/gnome2 port/package while for
KDE you will probably want either x11/kde3 or x11/kde4 (depending on if
you want KDE 3.x or KDE 4.x)
I install Gnome via the DVD package. I believe it's gnome-desktop-... 
(sorry, need to be back home to get the actual package name). I tried to 
find gnome2 in the dvd package list (not the ports), but it's not listed 
there. Would it come under another name?









___
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: OT: fdisk

2010-10-04 Thread Polytropon
On Sun, 3 Oct 2010 22:27:02 -0600 (MDT), Warren Block wbl...@wonkity.com 
wrote:
 On Sun, 3 Oct 2010, Polytropon wrote:
 
  On Sun, 3 Oct 2010 10:00:51 -0700, Robert travelin...@cox.net wrote:
  I have a spare 250G hard drive. Can I use dd to capture 250 gigs
  from the old drive? Using da1 and ad12 as the if and of will the result
  be an NTFS formatted 250g drive? Will I have the same results, i.e.
  able to mount ad12 but not ad12s1?
 
  Yes, as dd gives you an 1:1 copy of what you have.
 
 It will give an exact copy of the first 250G, which also means it will 
 not resize the 500G filesystem into a working 250G version.
 
 The first step would be a copy of the entire drive.  Then the filesystem 
 can be repaired and resized.

Exactly. NEVER mess with the precious data. Only read, then
store away the drive. If all files are back, the drive can
be cleanly reformatted and then populated with the original
files. All investigation and modification tasks should be
done with a copy. If you mess up a copy, get a new one.

As hard disks are cheap, it might be worth buying a new one
just to have enough disk space available for such tasks.
Remember: Hard disks are cheap, your data isn't. :-)


-- 
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: OT: fdisk

2010-10-04 Thread Robert
On Mon, 4 Oct 2010 12:34:13 +0200
Polytropon free...@edvax.de wrote:

 On Sun, 3 Oct 2010 14:29:35 -0700, Robert travelin...@cox.net wrote:
  Thanks for the info. I successfully did the above and now I have a
  58.6GB file named disk.img on a UFS disk.
  
  Umm, what should I do now. Sorry for dumb question number 37 this
  weekend but I am a bit confused. Can I do just the opposite to
  another NTFS drive and end up with all the data looking like it
  should? I.E. dd from the file to an NTFS disk.
 
 You can now use the file as if it were a disk. To turn it into
 a device, simply do
 
   % mkdir mnt
   % sudo mdconfig -a -t vnode -u 10 -f disk.img
   % mount -o ro /dev/md10 mnt/
 
 This should give you the chance to extract files from it. You
 can also use fdisk on the /dev/md10 file (or any other unit
 number given by -u you want to use).
 

I have now a free 1TB drive for use. It is formatted as UFS. Should I
remove formatting before I dd the 500GB drive to it? 

I tried the above process and here is what I have.

[r...@asus64] ~# mdconfig -a -t vnode -u 10 -f /250extra/disk.img 
[r...@asus64] ~# mount -o ro /dev/md10 /mnt
mount: /dev/md10 : Invalid argument
[r...@asus64] ~# mount_ntfs -o ro /dev/md10 /mnt
mount_ntfs: /dev/md10: Input/output error
[r...@asus64] ~# ls -l /dev/md*
crw-r-  1 root  operator0, 129 Oct  4 06:43 /dev/md10
crw-r-  1 root  operator0, 130 Oct  4 06:43 /dev/md10s1
crw---  1 root  wheel   0,  66 Oct  1 14:43 /dev/mdctl
[r...@asus64] ~# mount -o ro /dev/md10s1 /mnt
[r...@asus64] ~# ls -l /mnt
total 0
[r...@asus64] ~# df -h
Filesystem   SizeUsed   Avail Capacity  Mounted on
snip
/dev/ad12s1d 226G 59G149G28%/250extra
/dev/md10s1  451G 32G383G 8%/mnt
  ^^^
[r...@asus64] ~# ls -la /mnt
total 0

 Warren wrote:
 It will give an exact copy of the first 250G, which also means it
 will not resize the 500G filesystem into a working 250G version.

Same questions as above. Can I dd to a 1TB? And what format on the
drive?

I apologize again if I am coming off as dense. I have not used dd
before as I have always used dump for backups. 

Robert


___
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: any one with acer 5740 running freebsd ?

2010-10-04 Thread Odhiambo Washington
On Mon, Oct 4, 2010 at 12:04 PM, Mbsd Basd new...@rocketmail.com wrote:

 Hi ,

 This is my first mail to the list. I would like to install free bsd/pcbsd
 to my laptop. Primary use is to use it as a multimedia pc and also to use it
 to learn about operating systems

 I tried the pc bsd live cd and it worked fine. I would like to hear any
 comments or +experience with install on  acer 5740.
 configuration is as below:.
 Intel i5
 3gb ram
 INSYDE BIOS 1.15
 320GB hard disk
 DVD+-RW
 b/g/n wireless

 thanks,


If it worked with the LiveCD, it will work when installed!


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
If you have nothing good to say about someone, just shut up!.
   -- Lucky Dube
___
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


any one with acer 5740 running freebsd ?

2010-10-04 Thread Mbsd Basd
Hi ,

This is my first mail to the list. I would like to install free bsd/pcbsd to my 
laptop. Primary use is to use it as a multimedia pc and also to use it to learn 
about operating systems

I tried the pc bsd live cd and it worked fine. I would like to hear any 
comments or +experience with install on  acer 5740.
configuration is as below:.
Intel i5
3gb ram
INSYDE BIOS 1.15
320GB hard disk
DVD+-RW 
b/g/n wireless

thanks,

alien




___
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


Cleaning /var/db/portsnap/files/, how?

2010-10-04 Thread O. Hartmann
On several FreeBSD boxes performing portsnap fetch updating the ports 
on a regular basis, folder /var/db/portsnap/files/ gets filled over 
time. I was wondering if there is not an elegant, sophisticated way 
cleaning up those files not needed anymore. Please shed light onto my 
darkness ...


Regards,

O. Hartmann

___
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


partitioning a gmirror (was Re: sysinstall vs gmirror)

2010-10-04 Thread perryh


binE6c8fkIE6U.bin
Description: Binary data
___
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: Cleaning /var/db/portsnap/files/, how?

2010-10-04 Thread Jerry
On Mon, 4 Oct 2010 13:24:18 +0200
Polytropon free...@edvax.de articulated:

 On Mon, 04 Oct 2010 12:01:24 +0200, O. Hartmann
 ohart...@zedat.fu-berlin.de wrote:
  On several FreeBSD boxes performing portsnap fetch updating the
  ports on a regular basis, folder /var/db/portsnap/files/ gets
  filled over time. 
 
 Sorry for not answering your question, but allow me a little
 sidenote regarding the proper terminology.
 
 FreeBSD, as every UNIX OS, has *directories*, not folders.
 You do also use the name files, not sheets of paper,
 don't you?

You say po-tah-toes, he says po-tay-toes, who cares? Were you
completely baffled by what he was trying to convey? At the very least,
you could have attempted to answer his question before giving him a
lecture that served no purpose other than to belittle the OP.

By the way, in Linux and other Unix-like operating system, everything
on the system is treated as being a file, and a directory is thus
considered to be just a special type of file that contains a list of
file names and the corresponding inodes for each file and directory
that it appears to contain. An inode is a data structure on a
filesystem that stores all the information about a file except its name
and its actual data. Therefore, strictly speaking, he could have just
referenced file instead. 

The term folder is used as a synonym for directory on the Microsoft
Windows and Macintosh operating systems.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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: Massive portupgrade without being interrupted by configuration screens?

2010-10-04 Thread Thomas Mueller
Thanks to all who responded, now I have several things to think about.

I will want to look at perl-after-upgrade script.  Even if I don't use it, it 
would likely be helpful to see what it does and guide me as to what I can do.

I also find I have a burning desire to check out pkgsrc (under NetBSD, now at 
5.1 RC4) to see how it compares to FreeBSD ports.

With a massive portupgrade, I may be delayed in checking and responding to 
email.

Tom
___
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: Cleaning /var/db/portsnap/files/, how?

2010-10-04 Thread RW
On Mon, 4 Oct 2010 08:22:58 -0400
Jerry freebsd.u...@seibercom.net wrote:

 On Mon, 4 Oct 2010 12:59:50 +0100
 RW rwmailli...@googlemail.com articulated:
 
  There shouldn't be any need to do that, they are supposed to be
  deleted automatically. I have 22371, if you have much more than that
  you probably should remove the contents of /var/db/portsnap/ and do
  another fetch.
 
 I have 22339 files on a FreeBSD 8.1/amd64 system. It might be
 interesting to find out how to ascertain the correct number of files
 that should be located there.


$ wc -l   /var/db/portsnap/INDEX 
   22365


I appear to have 6 superfluous files. Perhaps some ports have been
added since you last did a fetch.
___
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: OT: fdisk

2010-10-04 Thread Polytropon
On Mon, 4 Oct 2010 07:08:58 -0700, Robert travelin...@cox.net wrote:
 I have now a free 1TB drive for use. It is formatted as UFS. Should I
 remove formatting before I dd the 500GB drive to it? 

Not needed, as you're going to use it under the control of FreeBSD.
After formatting and mounting it, let's say as /mnt, use dd (or
ddrescue) to first get an 1:1 copy of the source disk.



 I tried the above process and here is what I have.
 
 [r...@asus64] ~# mdconfig -a -t vnode -u 10 -f /250extra/disk.img 
 [r...@asus64] ~# mount -o ro /dev/md10 /mnt
 mount: /dev/md10 : Invalid argument

Of course. :-)



 [r...@asus64] ~# mount_ntfs -o ro /dev/md10 /mnt
 mount_ntfs: /dev/md10: Input/output error

This indicates that the NTFS seems to be damaged and prevents
mount_ntfs from mounting it. Start with baby steps: Is there
a valid partition table?

# fdisk /dev/md10

You should now get a partition table.

Did you create disk.img by dd'ing da0 or da0s1? This may matter.



 [r...@asus64] ~# ls -l /dev/md*
 crw-r-  1 root  operator0, 129 Oct  4 06:43 /dev/md10
 crw-r-  1 root  operator0, 130 Oct  4 06:43 /dev/md10s1
 crw---  1 root  wheel   0,  66 Oct  1 14:43 /dev/mdctl
 [r...@asus64] ~# mount -o ro /dev/md10s1 /mnt

Good. At least a bit.



 [r...@asus64] ~# ls -l /mnt
 total 0
 [r...@asus64] ~# df -h
 Filesystem   SizeUsed   Avail Capacity  Mounted on
 snip
 /dev/ad12s1d 226G 59G149G28%/250extra
 /dev/md10s1  451G 32G383G 8%/mnt
   ^^^
 [r...@asus64] ~# ls -la /mnt
 total 0

Hmmm... you dd'ed the WHOLE disk to disk.img? Does the size look
reasonable?



  Warren wrote:
  It will give an exact copy of the first 250G, which also means it
  will not resize the 500G filesystem into a working 250G version.
 
 Same questions as above. Can I dd to a 1TB? And what format on the
 drive?

Format the target disk as UFS, as you do with any disk you want to
use for FreeBSD. Then dd (or ddrescue) the source disk to a file on
that target disk. Then connect this file to a memory disk (md)
device. Check the fdisk output for that device. Mount it. Get your
data off.



 I apologize again if I am coming off as dense. I have not used dd
 before as I have always used dump for backups. 

Correct: dump + restore are used for UFS backups, but in this case,
you need to deal with Windows stuff that does not support such
standard means. That's why you need dd to make an 1:1 copy to work
with it as you would work on the original disk.




-- 
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: OT: fdisk

2010-10-04 Thread Robert
On Mon, 4 Oct 2010 16:32:25 +0200
Polytropon free...@edvax.de wrote:

 On Mon, 4 Oct 2010 07:08:58 -0700, Robert travelin...@cox.net wrote:
  I have now a free 1TB drive for use. It is formatted as UFS. Should
  I remove formatting before I dd the 500GB drive to it? 
 
 Not needed, as you're going to use it under the control of FreeBSD.
 After formatting and mounting it, let's say as /mnt, use dd (or
 ddrescue) to first get an 1:1 copy of the source disk.
 

It is being performed even as we speak.

 
 
  I tried the above process and here is what I have.
  
  [r...@asus64] ~# mdconfig -a -t vnode -u 10 -f /250extra/disk.img 
  [r...@asus64] ~# mount -o ro /dev/md10 /mnt
  mount: /dev/md10 : Invalid argument
 
 Of course. :-)
 
 
 
  [r...@asus64] ~# mount_ntfs -o ro /dev/md10 /mnt
  mount_ntfs: /dev/md10: Input/output error
 
 This indicates that the NTFS seems to be damaged and prevents
 mount_ntfs from mounting it. Start with baby steps: Is there
 a valid partition table?
 
   # fdisk /dev/md10

[r...@asus64] ~# fdisk /dev/md10
*** Working on device /dev/md10 ***
parameters extracted from in-core disklabel are:
cylinders=7648 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=7648 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
start 63, size 976773105 (476939 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED

 
 You should now get a partition table.
 
 Did you create disk.img by dd'ing da0 or da0s1? This may matter.

da1...but not the entire disk.
 
 
 
  [r...@asus64] ~# ls -l /dev/md*
  crw-r-  1 root  operator0, 129 Oct  4 06:43 /dev/md10
  crw-r-  1 root  operator0, 130 Oct  4 06:43 /dev/md10s1
  crw---  1 root  wheel   0,  66 Oct  1 14:43 /dev/mdctl
  [r...@asus64] ~# mount -o ro /dev/md10s1 /mnt
 
 Good. At least a bit.

Is this the way to mount it, not _ntfs?

 
 
 
  [r...@asus64] ~# ls -l /mnt
  total 0
  [r...@asus64] ~# df -h
  Filesystem   SizeUsed   Avail Capacity  Mounted on
  snip
  /dev/ad12s1d 226G 59G149G28%/250extra
  /dev/md10s1  451G 32G383G 8%/mnt
    ^^^
  [r...@asus64] ~# ls -la /mnt
  total 0
 
 Hmmm... you dd'ed the WHOLE disk to disk.img? Does the size look
 reasonable?

No. I was trying to just get the data to a 250GB drive. Now I am doing
the 500GB to a 1TB drive and will follow up when complete.

Robert
___
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: Cleaning /var/db/portsnap/files/, how?

2010-10-04 Thread Polytropon
On Mon, 4 Oct 2010 08:17:02 -0400, Jerry freebsd.u...@seibercom.net wrote:
 You say po-tah-toes, he says po-tay-toes, who cares?

I say Kartoffel, you say name server, who cares? :-)



 Were you
 completely baffled by what he was trying to convey? At the very least,
 you could have attempted to answer his question before giving him a
 lecture that served no purpose other than to belittle the OP.

You know that I'm a bit picky about correct terminology, and I've
often said on this list that the things are correctly called
directories because that is their correct name, and even
their more correct name in UNIX context.

In specific fields of language, you have terminology. You have
them in education, in commerce, in politics, in the context of
law, and of course you have them in the field of IT. That is
nothing special, bad, or strange.



 By the way, in Linux and other Unix-like operating system, everything
 on the system is treated as being a file, and a directory is thus
 considered to be just a special type of file that contains a list of
 file names and the corresponding inodes for each file and directory
 that it appears to contain. An inode is a data structure on a
 filesystem that stores all the information about a file except its name
 and its actual data. Therefore, strictly speaking, he could have just
 referenced file instead. 

As he refered to a special file (in the more system-level context
of a file system) the naming directory would be better as it is
not misleading. Using the term file without further explainations
usually refers to a plain file. Let me give a quite formal
example:

usage of inodes = { file | directory | link }

file = { regular file | block device | pipe | ... }

This is not complete (and not trying to be), but it illustrates
that the word file does not carry the meaning directory per se
in its normal in-context use.



 The term folder is used as a synonym for directory on the Microsoft
 Windows and Macintosh operating systems.

Erm... no. Not quite correct.

The term folder is a description of a pictural element that
represents a directory, or, to be correct, it is the NAME of that
pictural element that represents a directory. This word is common
used *instead* of directory in the MICROS~1 land. While
directory is a technical term (as seen in the context of
IT), folder is a rather descriptive term that is used to
refer to the technical term (like when you're refering to
a heavy load transportation truck as a big car).



Jerry, I don't want to pollute the list with discussions about
terminology and other aspects of language and their use, but please
be sure that it was not my intention to belittle the OP, and
I'm sure the OP did understand my comment correctly, as so did
many others before him.

The fact is that we have certain terminology here, and it should
be the most natural thing to use it properly. That's just the
way it is. The use of the correct words distinguishes those who
know what they are talking about from those who don't (yet).

As the OP did post a valid (non-stupid) question to this list,
I am SURE that he knows the difference, so he definitely knows
what he's talking about. Using folder instead of directory
is therefore considered a simple fauxpas by me. It's possible
that the OP has also to work with Windows stuff, or he's also
using a Mac, so he got a little confused.



Now I have to check the zone papers of my Kartoffel, who cares. :-)


-- 
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: OT: fdisk

2010-10-04 Thread Polytropon
On Sun, 3 Oct 2010 14:29:35 -0700, Robert travelin...@cox.net wrote:
 Thanks for the info. I successfully did the above and now I have a
 58.6GB file named disk.img on a UFS disk.
 
 Umm, what should I do now. Sorry for dumb question number 37 this
 weekend but I am a bit confused. Can I do just the opposite to another
 NTFS drive and end up with all the data looking like it should? I.E. dd
 from the file to an NTFS disk.

You can now use the file as if it were a disk. To turn it into
a device, simply do

% mkdir mnt
% sudo mdconfig -a -t vnode -u 10 -f disk.img
% mount -o ro /dev/md10 mnt/

This should give you the chance to extract files from it. You
can also use fdisk on the /dev/md10 file (or any other unit
number given by -u you want to use).

I wouldn't dd the file back to the original drive, that might
make things worse.

For data extraction, I suggest dd'ing the WHOLE disk into an
image file and then working with this file, having the original
disk not touched anymore until the data is back.

See /usr/local/share/doc/sleuthkit/skins_ntfs.txt from TSK
(port: sleuthkit) for details about NTFS file recovery. As
you did show that you could mount the disk (I think you
presented a ls output with typical Windows files) this
should be possible again after fixing the partition table.

I have to admit that I've got NO CLUE about Windows file
systems as I don't use them, so I sadly can't be more specific.

You can also use ddrescue instead of dd, as it allows resuming
a dd operation, and it will dynamically adjust read block sizes,
so it might run faster.

% ddrescue -d -r 3 -n /dev/ad12 ntfs.ddr log.txt

If mounting does not work, you can use tools like photorec on
the /dev/md10 file which will extract known file types. The
tool magicrescue also could work:

% magicrescue -r /usr/local/share/magicrescue/recipes
-d mr_output /dev/md10





-- 
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: any one with acer 5740 running freebsd ?

2010-10-04 Thread Mbsd Basd

thanks...when i did a google search it comes up with issues of bsd with Insyde 
BIOS. I guess iam overly cautious...time to take the plunge...

thanks all..



--- On Mon, 4/10/10, Odhiambo Washington odhia...@gmail.com wrote:

From: Odhiambo Washington odhia...@gmail.com
Subject: Re: any one with acer 5740 running freebsd ?
To: Mbsd Basd new...@rocketmail.com
Cc: freebsd-questions@freebsd.org
Date: Monday, 4 October, 2010, 9:59 AM



On Mon, Oct 4, 2010 at 12:04 PM, Mbsd Basd new...@rocketmail.com wrote:


Hi ,



This is my first mail to the list. I would like to install free bsd/pcbsd to my 
laptop. Primary use is to use it as a multimedia pc and also to use it to learn 
about operating systems



I tried the pc bsd live cd and it worked fine. I would like to hear any 
comments or +experience with install on  acer 5740.

configuration is as below:.

Intel i5

3gb ram

INSYDE BIOS 1.15

320GB hard disk

DVD+-RW

b/g/n wireless



thanks,


If it worked with the LiveCD, it will work when installed! 


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
If you have nothing good to say about someone, just shut up!.
               -- Lucky Dube




___
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: OT: fdisk

2010-10-04 Thread Polytropon
On Mon, 4 Oct 2010 07:52:21 -0700, Robert travelin...@cox.net wrote:
 On Mon, 4 Oct 2010 16:32:25 +0200
 Polytropon free...@edvax.de wrote:
 [r...@asus64] ~# fdisk /dev/md10
 *** Working on device /dev/md10 ***
 parameters extracted from in-core disklabel are:
 cylinders=7648 heads=255 sectors/track=63 (16065 blks/cyl)
 
 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=7648 heads=255 sectors/track=63 (16065 blks/cyl)
 
 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
 start 63, size 976773105 (476939 Meg), flag 0
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 1023/ head 15/ sector 63
 The data for partition 2 is:
 UNUSED
 The data for partition 3 is:
 UNUSED
 The data for partition 4 is:
 UNUSED

Okay, as I see it, this looks valid - a working partition table.
What can prevent mounting now is a defect in the NTFS MFT, everything
after the disk's partition table.



   [r...@asus64] ~# ls -l /dev/md*
   crw-r-  1 root  operator0, 129 Oct  4 06:43 /dev/md10
   crw-r-  1 root  operator0, 130 Oct  4 06:43 /dev/md10s1
   crw---  1 root  wheel   0,  66 Oct  1 14:43 /dev/mdctl
   [r...@asus64] ~# mount -o ro /dev/md10s1 /mnt
  
  Good. At least a bit.
 
 Is this the way to mount it, not _ntfs?

My fault: Using mount_ntfs is the correct way (or mount -t ntfs);
mount without options for a device / directory NOT listed in fstab
defaults to UFS.



 No. I was trying to just get the data to a 250GB drive. Now I am doing
 the 500GB to a 1TB drive and will follow up when complete.

Very good. You can check the progress by issuing ^T - dd will then
show a status message. If you're using ddrescue (no big difference
here), you'll get some more info, like this:

% ddrescue -d -r 3 -n /dev/ad1s1f ad1s1f.ddr log.txt
Press Ctrl-C to interrupt
Initial status (read from logfile)
rescued: 0 B,  errsize:   0 B,  errors:   0
Current status
rescued:90772 MB,  errsize:   0 B,  current rate:6815 kB/s
   ipos:90772 MB,   errors:   0,average rate:6723 kB/s
   opos:90772 MB
Finished

This example is 3h 45min for 80 GB from one (P)ATA disk to another.
You can watch the progress continuously here.


-- 
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: Which OS for notebook

2010-10-04 Thread doug

On Mon, 4 Oct 2010, Leandro F Silva wrote:


Hi guys,

Which OS are you using on your notebook, FreeBSD / Linux or MAC ?
Also, can you tell us the hardware, Sony / HP etc..

Thank you !


Personally I like to use FreeBSD, but a better answer is found on 
freebsd-mob...@freebsd.org. Read the thread 'free bsd on laptops'. For the 
second check out http://laptop.bsdgroup.de/freebsd/index.html.




___
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: Which OS for notebook

2010-10-04 Thread Gautham Ganapathy
On Mon, Oct 4, 2010 at 5:11 AM, Leandro F Silva fsilvalean...@gmail.com wrote:
 Hi guys,

 Which OS are you using on your notebook, FreeBSD / Linux or MAC ?
 Also, can you tell us the hardware, Sony / HP etc..

 Thank you !
 ___

I would prefer FreeBSD, if not for the lack of support (yet) for
802.11n wireless chipsets (don't really like USB wifi poking out of
the laptop!). FreeBSD used to work fine on my old Dell Inspiron 9400
(no longer manufactured), except for the card reader, which I never
needed. I am waiting for support for wireless-n chipsets (and CUDA, if
I'm lucky!) for my Alienware m11x (ndis did not work out)

Regards
Gautham
___
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: OT: fdisk

2010-10-04 Thread Ian Smith
In freebsd-questions Digest, Vol 331, Issue 1, Message: 5
On Sun, 3 Oct 2010 08:19:36 -0500 (CDT) Robert Bonomi 
bon...@mail.r-bonomi.com wrote:
   On Sat, 2 Oct 2010 17:00:00 -0600 (MDT)
   Warren Block wbl...@wonkity.com wrote:
  
On Sat, 2 Oct 2010, Robert wrote:

 Greetings

 I am in deep with the wife. Her computer went belly up. It was
 running XP pro and I had backups going to a second drive. I can no
 longer access that drive.

 I pulled it and attached it via USB to one of my FreeBSD machines
 but it will not mount. It is a 500G hard drive and I get _wild_
 results just looking at it with fdisk.

 ~ fdisk /dev/da1s1
 *** Working on device /dev/da1s1 ***

Wait a minute... shouldn't that be just da1?  da1s1 is the first
slice (partition), and the data there should be your XP filesystem,
probably NTFS.
  
   Warren,
  
   You are right. Here it is:
  
~ fdisk /dev/da1
   *** Working on device /dev/da1 ***
   parameters extracted from in-core disklabel are:
   cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  
   Figures below won't work with BIOS for partitions not in cyl 1
   parameters to be used for BIOS calculations are:
   cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
  
   Media sector size is 512
   Warning: BIOS sector numbering starts with sector 1
   Information from DOS bootblock is:
   The data for partition 1 is:
   sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
   start 63, size 976773105 (476939 Meg), flag 0
  beg: cyl 0/ head 1/ sector 1;
  end: cyl 1023/ head 15/ sector 63
   The data for partition 2 is:
   UNUSED
   The data for partition 3 is:
   UNUSED
   The data for partition 4 is:
   UNUSED

Robert Bonomi, replying to yours before the above slipped away, but I'm 
directing this to Robert the OP, ok?

So pausing here for a bit .. starting at 63 (cyl 0/ head 1/ sector1 in 
CHS terms), looks correct for s1, one slice, whole disk for NTFS.  That 
should rule out a damaged MBR in sector 0 - though it doesn't rule out 
the boot code in the first 2 or so sectors having been clobbered.

You can often poke around the beginning of disks to advantage with say:
 # dd if=/dev/da1 bs=512 count=126 | hd | less
to see the first two tracks .. sector 63 should be where NTFS starts, ie 
after sectors 0-62 on head 0.  hd(1) skips repeated zeroes or 0xff and 
such, so you can hunt through quite a lot of early sectors without huge
output in less, usually.

   Which looks a lot better. I can mount /dev/da1 and it shows 

Just to be clear, you mean: '# mount_ntfs /dev/da1 /mnt' ?

(try to be sure to mount NTFS filesystems _explicitly_ read-only, 
especially if likely damaged)

~ ls -l /mnt
   total 70044
   -rwxr-xr-x  1 root  wheel  2560 Dec 31  1600 $AttrDef
   -rwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $BadClus
   -rwxr-xr-x  1 root  wheel   4194304 Dec 31  1600 $Bitmap
   -rwxr-xr-x  1 root  wheel  8192 Oct  1 09:09 $Boot
   drwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $Extend
   -rwxr-xr-x  1 root  wheel  67108864 Oct  1 09:09 $LogFile
   -rwxr-xr-x  1 root  wheel  4096 Oct  1 09:09 $MFTMirr
   -rwxr-xr-x  1 root  wheel 0 Dec 31  1600 $Secure
   -rwxr-xr-x  1 root  wheel131072 Oct  1 09:09 $UpCase
   -rwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $Volume
   -rwxr-xr-x  1 root  wheel 45124 Aug 18  2001 NTDETECT.COM
   drwxr-xr-x  1 root  wheel 0 Oct  1 17:29 System Volume
   Information 
   -rwxr-xr-x  1 root  wheel   193 Oct  1 09:12 boot.ini
   -rwxr-xr-x  1 root  wheel222368 Aug 18  2001 ntldr
  
   But I cannot mount /dev/da1s1
  
~ sudo mount_ntfs /dev/da1s1 /mnt
   mount_ntfs: /dev/da1s1: Invalid argument

Ok, and its not clear why/how mount_ntfs would be happy mounting da1 
'raw' but it sure looks like (at least part of) an NTFS root directory; 
not necessarily all what you'd see as C:\ in windows explorer, say; 
windows plays strange tricks the way it layers directories for display.

There's weird dates (1600?) and only you would know if those October 1st 
timestamps are of when you mounted it, or when windows last accessed it?

The fact that boot.ini is a few minutes later than some is interesting; 
that's where entries for multi-booting NT may exist, and maybe something 
messed with that, hardware glitch? or (not entirely unknown :) one of a 
hundred thousand or so viruses?

So, can you look at these files when so mounted?  Can you do something 
like 'du -d2 /mnt' and see anything useful?  I'm just guessing /hoping 
here that the disk may not be as badly scrambled as you fear, despite 
the apparent oddness of it mounting like that.

From a later message, quoting Robert:

  Warren, thanks for the link. I will be reading it and increasing my
  understanding of NTFS.

Though it's an old (pre-XP) article, it's good basics.  Note especially 
that NTFS keeps a copy somewhere near the 

Re: Which OS for notebook

2010-10-04 Thread Jack L.
On Mon, Oct 4, 2010 at 9:04 AM, Gautham Ganapathy gaut...@lisphacker.orgwrote:

 On Mon, Oct 4, 2010 at 5:11 AM, Leandro F Silva fsilvalean...@gmail.com
 wrote:
  Hi guys,
 
  Which OS are you using on your notebook, FreeBSD / Linux or MAC ?
  Also, can you tell us the hardware, Sony / HP etc..
 
  Thank you !
  ___

 FreeBSD with NDIS for wireless and xfce for desktop. Works great on a
 gateway ;)

___
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: Which OS for notebook

2010-10-04 Thread Erich Dollansky
Hi,

On Monday 04 October 2010 12:11:30 Leandro F Silva wrote:
 
 Which OS are you using on your notebook, FreeBSD / Linux or MAC ?
 Also, can you tell us the hardware, Sony / HP etc..

there is no general answer.

You must select an individual model first and see then if the hardware is 
supported.

I use normally FreeBSD 7 or 8 but I installed Fedora on a single machine as 
there is no driver for the LAN available in FreeBSD.

If I remember right, wireless was not a problem there.

So, choose a model and ask then again.

Ok, I have FreeBSD 7 running on an older Fujitsu Lifebook. 8.0 gave me problems 
with USB.

Erich
___
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: Which OS for notebook

2010-10-04 Thread Chris Whitehouse

On 10/04/10 17:55, Erich Dollansky wrote:

Hi,

On Monday 04 October 2010 12:11:30 Leandro F Silva wrote:


Which OS are you using on your notebook, FreeBSD / Linux or MAC ?
Also, can you tell us the hardware, Sony / HP etc..


there is no general answer.

You must select an individual model first and see then if the hardware is 
supported.

I use normally FreeBSD 7 or 8 but I installed Fedora on a single machine as 
there is no driver for the LAN available in FreeBSD.

If I remember right, wireless was not a problem there.

So, choose a model and ask then again.

Ok, I have FreeBSD 7 running on an older Fujitsu Lifebook. 8.0 gave me problems 
with USB.

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

I would rather find a machine which will run FreeBSD if possible. If 
possible go to a laptop shop with a bootable USB stick (memstick.img) 
and try booting different machines. Collect dmesg and pciconf output to 
study at your leisure.


I have a HP nc6320 which runs 8.* fine except for the card reader and 
sleep/resume functions.


chris
___
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: OT: fdisk

2010-10-04 Thread Robert
On Tue, 5 Oct 2010 03:53:09 +1100 (EST)
Ian Smith smi...@nimnet.asn.au wrote:

Ian

I am in the process of dd the entire disk to a 1TB disk but I wanted to
respond to you. You have given a lot of good advice and information and
I appreciate it.

 ~ fdisk /dev/da1
*** Working on device /dev/da1 ***
parameters extracted from in-core disklabel are:
cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
   
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)
   
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
start 63, size 976773105 (476939 Meg), flag 0
 beg: cyl 0/ head 1/ sector 1;
 end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED
 

 
 So pausing here for a bit .. starting at 63 (cyl 0/ head 1/ sector1
 in CHS terms), looks correct for s1, one slice, whole disk for NTFS.
 That should rule out a damaged MBR in sector 0 - though it doesn't
 rule out the boot code in the first 2 or so sectors having been
 clobbered.

I have tried earlier to explain what might/could have happened but was
most likely not specific enough. I will try to do better.

This was the wife's computer. It had Xp Pro on the first slice and
FreeBSD 7.x on the second. Windows started acting strange and then was
rebooting as soon as the desktop rendered. I booted to safe mode and
went back one day in the recover option. Same thing happened, i.e.
reboot after desktop rendered. I again booted in safe mode and went
back two days. Could never get it to boot again even in safe mode.

I booted into FreeBSD and copied some critical files off of the Windows
slice that she was desperate to have. I put them on a pen drive so she
could then access via her laptop. 

I checked the backup drive and saw that all was fine. I had the D$S
stuff backing up nightly. 

I was able to mount either drive with _ntfs or ntfs-3g. 

No matter what I tried I could not get windows to boot even in safe
mode. I left it running on FreeBSD aver night expecting to have to
reinstall windows in the morning.

The next day the system had rebooted with the GAG screen up. I ran
memtest for about 6 hours and it showed a couple of faults. I pulled
one of the three 512M memory chips and it seemed to run OK but still
could not boot windows. 

I reinstalled windows and was doing all of the updates when it started
failing to boot. Somewhere in that time the backup (500GB) drive became
invisible to windows. FreeBSD showed only ad6 without the s1 partition.
I used sade to look at it and it did not show as ntfs. I marked it as
ntfs thinking that would fix it but it probably caused all of these
problems.

Whatever is wrong with that computer it now completely messed up. It
will not even power on. I strapped out the power connect pins 3 and 4
and the PS runs and the voltages check out.

 
 You can often poke around the beginning of disks to advantage with
 say: # dd if=/dev/da1 bs=512 count=126 | hd | less
 to see the first two tracks .. sector 63 should be where NTFS starts,
 ie after sectors 0-62 on head 0.  hd(1) skips repeated zeroes or 0xff
 and such, so you can hunt through quite a lot of early sectors
 without huge output in less, usually.
 
Which looks a lot better. I can mount /dev/da1 and it shows 
 
 Just to be clear, you mean: '# mount_ntfs /dev/da1 /mnt' ?
 
 (try to be sure to mount NTFS filesystems _explicitly_ read-only, 
 especially if likely damaged)
 
 ~ ls -l /mnt
total 70044
-rwxr-xr-x  1 root  wheel  2560 Dec 31  1600 $AttrDef
-rwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $BadClus
-rwxr-xr-x  1 root  wheel   4194304 Dec 31  1600 $Bitmap
-rwxr-xr-x  1 root  wheel  8192 Oct  1 09:09 $Boot
drwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $Extend
-rwxr-xr-x  1 root  wheel  67108864 Oct  1 09:09 $LogFile
-rwxr-xr-x  1 root  wheel  4096 Oct  1 09:09 $MFTMirr
-rwxr-xr-x  1 root  wheel 0 Dec 31  1600 $Secure
-rwxr-xr-x  1 root  wheel131072 Oct  1 09:09 $UpCase
-rwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $Volume
-rwxr-xr-x  1 root  wheel 45124 Aug 18  2001 NTDETECT.COM
drwxr-xr-x  1 root  wheel 0 Oct  1 17:29 System Volume
Information 
-rwxr-xr-x  1 root  wheel   193 Oct  1 09:12 boot.ini
-rwxr-xr-x  1 root  wheel222368 Aug 18  2001 ntldr
   
But I cannot mount /dev/da1s1
   
 ~ sudo mount_ntfs /dev/da1s1 /mnt
mount_ntfs: /dev/da1s1: Invalid argument
 
 Ok, and its not clear why/how mount_ntfs would be happy mounting da1 
 'raw' but it sure looks like (at least part of) an NTFS 

Re: OT: fdisk

2010-10-04 Thread Henry Olyer
And still the wife doesn't suspect?



On Mon, Oct 4, 2010 at 2:42 PM, Robert travelin...@cox.net wrote:

 On Tue, 5 Oct 2010 03:53:09 +1100 (EST)
 Ian Smith smi...@nimnet.asn.au wrote:

 Ian

 I am in the process of dd the entire disk to a 1TB disk but I wanted to
 respond to you. You have given a lot of good advice and information and
 I appreciate it.

  ~ fdisk /dev/da1
 *** Working on device /dev/da1 ***
 parameters extracted from in-core disklabel are:
 cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)

 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=60801 heads=255 sectors/track=63 (16065 blks/cyl)

 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX)
 start 63, size 976773105 (476939 Meg), flag 0
  beg: cyl 0/ head 1/ sector 1;
  end: cyl 1023/ head 15/ sector 63
 The data for partition 2 is:
 UNUSED
 The data for partition 3 is:
 UNUSED
 The data for partition 4 is:
 UNUSED
 

 
  So pausing here for a bit .. starting at 63 (cyl 0/ head 1/ sector1
  in CHS terms), looks correct for s1, one slice, whole disk for NTFS.
  That should rule out a damaged MBR in sector 0 - though it doesn't
  rule out the boot code in the first 2 or so sectors having been
  clobbered.

 I have tried earlier to explain what might/could have happened but was
 most likely not specific enough. I will try to do better.

 This was the wife's computer. It had Xp Pro on the first slice and
 FreeBSD 7.x on the second. Windows started acting strange and then was
 rebooting as soon as the desktop rendered. I booted to safe mode and
 went back one day in the recover option. Same thing happened, i.e.
 reboot after desktop rendered. I again booted in safe mode and went
 back two days. Could never get it to boot again even in safe mode.

 I booted into FreeBSD and copied some critical files off of the Windows
 slice that she was desperate to have. I put them on a pen drive so she
 could then access via her laptop.

 I checked the backup drive and saw that all was fine. I had the D$S
 stuff backing up nightly.

 I was able to mount either drive with _ntfs or ntfs-3g.

 No matter what I tried I could not get windows to boot even in safe
 mode. I left it running on FreeBSD aver night expecting to have to
 reinstall windows in the morning.

 The next day the system had rebooted with the GAG screen up. I ran
 memtest for about 6 hours and it showed a couple of faults. I pulled
 one of the three 512M memory chips and it seemed to run OK but still
 could not boot windows.

 I reinstalled windows and was doing all of the updates when it started
 failing to boot. Somewhere in that time the backup (500GB) drive became
 invisible to windows. FreeBSD showed only ad6 without the s1 partition.
 I used sade to look at it and it did not show as ntfs. I marked it as
 ntfs thinking that would fix it but it probably caused all of these
 problems.

 Whatever is wrong with that computer it now completely messed up. It
 will not even power on. I strapped out the power connect pins 3 and 4
 and the PS runs and the voltages check out.

 
  You can often poke around the beginning of disks to advantage with
  say: # dd if=/dev/da1 bs=512 count=126 | hd | less
  to see the first two tracks .. sector 63 should be where NTFS starts,
  ie after sectors 0-62 on head 0.  hd(1) skips repeated zeroes or 0xff
  and such, so you can hunt through quite a lot of early sectors
  without huge output in less, usually.
 
 Which looks a lot better. I can mount /dev/da1 and it shows
 
  Just to be clear, you mean: '# mount_ntfs /dev/da1 /mnt' ?
 
  (try to be sure to mount NTFS filesystems _explicitly_ read-only,
  especially if likely damaged)
 
  ~ ls -l /mnt
 total 70044
 -rwxr-xr-x  1 root  wheel  2560 Dec 31  1600 $AttrDef
 -rwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $BadClus
 -rwxr-xr-x  1 root  wheel   4194304 Dec 31  1600 $Bitmap
 -rwxr-xr-x  1 root  wheel  8192 Oct  1 09:09 $Boot
 drwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $Extend
 -rwxr-xr-x  1 root  wheel  67108864 Oct  1 09:09 $LogFile
 -rwxr-xr-x  1 root  wheel  4096 Oct  1 09:09 $MFTMirr
 -rwxr-xr-x  1 root  wheel 0 Dec 31  1600 $Secure
 -rwxr-xr-x  1 root  wheel131072 Oct  1 09:09 $UpCase
 -rwxr-xr-x  1 root  wheel 0 Oct  1 09:09 $Volume
 -rwxr-xr-x  1 root  wheel 45124 Aug 18  2001 NTDETECT.COM
 drwxr-xr-x  1 root  wheel 0 Oct  1 17:29 System Volume
 Information
 -rwxr-xr-x  1 root  wheel   193 Oct  1 09:12 boot.ini
 -rwxr-xr-x  1 root  wheel222368 Aug 18  2001 ntldr

 But I cannot mount /dev/da1s1

  ~ sudo mount_ntfs 

Netbooks BSD

2010-10-04 Thread Mikle Krutov
Hello, list!
I'm going to buy a netbook soon, so a question is which one.
The choice is between
1) Samsung N127
2) ASUS Eee PC 900AX
3) MSI U120-094
Which one is the best for running FreeBSD?
The best mainly is for opensource (e.g. not ndis)  stable wireless
drivers.
So, any good experience and suggestions?
Thank you for your time!
___
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-update not working for me

2010-10-04 Thread Kurt Buff
On Fri, Oct 1, 2010 at 22:25, Jason jhelf...@e-e.com wrote:
 On Fri, Oct 01, 2010 at 04:45:46PM -0700, Kurt Buff thus spake:

 Weird little problem here...

 I've got a 7.1-RELEASE box I'm trying to get to 8.1-RELEASE. I was
 able to do 'freebsd-update -install' and get the security patches and
 all, but 'freebsd-update -r  8.1-RELEASE upgrade' fails - see output
 below. Can anyone point me in the right direction to start
 troubleshooting this? I don't see anything in /var/log/messages.

 You may want to see how many files you have downloaded under
 /var/db/freebsd-update. The patches were applied. It appears it was only an
 issue of getting more files. As the program is running you can do an ls
 under /var/db/freebsd-update to see how many files are being downloaded.

 Have you tried running the command again?
 -jgh

Ran the command again, and it failed again, dang it.

After running it again this morning, issuing

 'll /var/db/freebsd-update/files | wc -l'

yields 43625 files - only 9 of them were dated today.

Issuing

 'wc -l /var/db/freebsd-update/files.wanted'

yields '36196 /var/db/freebsd-update/files.wanted'

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


(no subject)

2010-10-04 Thread Len Conrad
installed:

Python 2.7 (r27:82500, Sep 30 2010, 16:50:36)


cd /usr/ports/www/py-django11

fails:


==
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
==
===  Installing for py27-MarkupSafe-0.11
===   py27-MarkupSafe-0.11 depends on file: /usr/local/bin/easy_install-2.7 - 
found
===   py27-MarkupSafe-0.11 depends on file: /usr/local/bin/python2.7 - found
===   Generating temporary packing list
===  Checking if textproc/py-MarkupSafe already installed
running easy_install
error: Not a URL, existing file, or requirement spec: 
'/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/dist/MarkupSafe-0.11-py2.7-freebsd-8.1-RELEASE-i386.egg'
*** Error code 1

Stop in /usr/ports/textproc/py-MarkupSafe.
*** Error code 1

Stop in /usr/ports/devel/py-Jinja2.
*** Error code 1

Stop in /usr/ports/devel/py-Jinja2.
*** Error code 1

Stop in /usr/ports/textproc/py-sphinx.
*** Error code 1

Stop in /usr/ports/www/py-django11.
*** Error code 1

Stop in /usr/ports/www/py-django11.

Seems like the path is wrong above compared to the ports tree:

mx1# find /usr/ports/ -iname *markupsafe* | less
/usr/ports/devel/py-Jinja2/work/Jinja2-2.5.2/jinja2/_markupsafe
/usr/ports/devel/py-Jinja2/work/Jinja2-2.5.2/build/lib/jinja2/_markupsafe
/usr/ports/textproc/py-MarkupSafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/markupsafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/MarkupSafe.egg-info
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/lib.freebsd-8.1-RELEASE-i386/markupsafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/temp.freebsd-8.1-RELEASE-i386-2.7/markupsafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/build/lib/markupsafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/dist/MarkupSafe-0.11-py2.7.egg
/usr/ports/textproc/py-MarkupSafe/work/.extract_done.MarkupSafe._usr_local
/usr/ports/textproc/py-MarkupSafe/work/.patch_done.MarkupSafe._usr_local
/usr/ports/textproc/py-MarkupSafe/work/.configure_done.MarkupSafe._usr_local
/usr/ports/textproc/py-MarkupSafe/work/.build_done.MarkupSafe._usr_local
/usr/ports/distfiles/MarkupSafe-0.11.tar.gz



===

the tkinter fails, too  (I'm trying to work thru thinkpython.pdf)


cd /usr/ports/x11-toolkits/py-tkinter


===   Returning to build of libX11-1.3.3_1,1
===   libX11-1.3.3_1,1 depends on file: /usr/local/bin/autoconf-2.67 - found
===   libX11-1.3.3_1,1 depends on package: libtool=2.2 - found
===   libX11-1.3.3_1,1 depends on executable: pkg-config - found
===  Configuring for libX11-1.3.3_1,1
configure.ac:5: warning: AC_INIT: not a literal: 
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
configure.ac:5: warning: AC_INIT: not a literal: 
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
configure.ac:5: warning: AC_INIT: not a literal: 
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
configure:14185: error: possibly undefined macro: AS_MESSAGE_LOG_FDdnl
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
*** Error code 1

Stop in /usr/ports/x11/libX11.
*** Error code 1

Stop in /usr/ports/x11-toolkits/tk85.
*** Error code 1

Stop in /usr/ports/x11-toolkits/tk85.
*** Error code 1

Stop in /usr/ports/x11-toolkits/py-tkinter.


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


Problems installing django and py-tkinter

2010-10-04 Thread Len Conrad
webmail ate my subject


-- Original Message --
From: Len Conrad lcon...@go2france.com
Reply-To: lcon...@go2france.com
Date:  Mon,  4 Oct 2010 21:47:23 +0200

installed:

Python 2.7 (r27:82500, Sep 30 2010, 16:50:36)


cd /usr/ports/www/py-django11

fails:


==
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
==
===  Installing for py27-MarkupSafe-0.11
===   py27-MarkupSafe-0.11 depends on file: /usr/local/bin/easy_install-2.7 - 
found
===   py27-MarkupSafe-0.11 depends on file: /usr/local/bin/python2.7 - found
===   Generating temporary packing list
===  Checking if textproc/py-MarkupSafe already installed
running easy_install
error: Not a URL, existing file, or requirement spec: 
'/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/dist/MarkupSafe-0.11-py2.7-freebsd-8.1-RELEASE-i386.egg'
*** Error code 1

Stop in /usr/ports/textproc/py-MarkupSafe.
*** Error code 1

Stop in /usr/ports/devel/py-Jinja2.
*** Error code 1

Stop in /usr/ports/devel/py-Jinja2.
*** Error code 1

Stop in /usr/ports/textproc/py-sphinx.
*** Error code 1

Stop in /usr/ports/www/py-django11.
*** Error code 1

Stop in /usr/ports/www/py-django11.

Seems like the path is wrong above compared to the ports tree:

mx1# find /usr/ports/ -iname *markupsafe* | less
/usr/ports/devel/py-Jinja2/work/Jinja2-2.5.2/jinja2/_markupsafe
/usr/ports/devel/py-Jinja2/work/Jinja2-2.5.2/build/lib/jinja2/_markupsafe
/usr/ports/textproc/py-MarkupSafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/markupsafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/MarkupSafe.egg-info
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/lib.freebsd-8.1-RELEASE-i386/markupsafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/temp.freebsd-8.1-RELEASE-i386-2.7/markupsafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/build/lib/markupsafe
/usr/ports/textproc/py-MarkupSafe/work/MarkupSafe-0.11/dist/MarkupSafe-0.11-py2.7.egg
/usr/ports/textproc/py-MarkupSafe/work/.extract_done.MarkupSafe._usr_local
/usr/ports/textproc/py-MarkupSafe/work/.patch_done.MarkupSafe._usr_local
/usr/ports/textproc/py-MarkupSafe/work/.configure_done.MarkupSafe._usr_local
/usr/ports/textproc/py-MarkupSafe/work/.build_done.MarkupSafe._usr_local
/usr/ports/distfiles/MarkupSafe-0.11.tar.gz



===

the tkinter fails, too  (I'm trying to work thru thinkpython.pdf)


cd /usr/ports/x11-toolkits/py-tkinter


===   Returning to build of libX11-1.3.3_1,1
===   libX11-1.3.3_1,1 depends on file: /usr/local/bin/autoconf-2.67 - found
===   libX11-1.3.3_1,1 depends on package: libtool=2.2 - found
===   libX11-1.3.3_1,1 depends on executable: pkg-config - found
===  Configuring for libX11-1.3.3_1,1
configure.ac:5: warning: AC_INIT: not a literal: 
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
configure.ac:5: warning: AC_INIT: not a literal: 
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
configure.ac:5: warning: AC_INIT: not a literal: 
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
configure:14185: error: possibly undefined macro: AS_MESSAGE_LOG_FDdnl
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
*** Error code 1

Stop in /usr/ports/x11/libX11.
*** Error code 1

Stop in /usr/ports/x11-toolkits/tk85.
*** Error code 1

Stop in /usr/ports/x11-toolkits/tk85.
*** Error code 1

Stop in /usr/ports/x11-toolkits/py-tkinter.


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


64-bit PGP isn't Decrypting.

2010-10-04 Thread Martin McCormick
There are two new FreeBSD8.1 systems. Both got pgp added
to them by use of pkg_add -r pgp. Both adds installed

Pretty Good Privacy(tm) 2.6.3ia - Public-key encryption for the masses.
(c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 1996-03-04
International version - not for use in the USA. Does not use RSAREF.

A test file that had been encrypted earlier was used on both
systems. It works fine on the 32-bit system and always fails on
the 64-bit system. Trust me. As many times as I tried it, I
couldn't possibly be mistyping the pass phrase every time on the
64-bit system and then getting it right on the 32-bit system.

On the 64-bit system, one can not seem to encrypt a file
and then decrypt it with the pass phrase.

If you take the encrypted file from the 64-bit system
and try to decrypt on the 32-bit system, that fails so something
appears wrong with the numerical encryption process that is
peculiar to being 64 bits. I am thinking some of the cipher
routines may be relying on the width of certain expressions that
change if running in 64-bit mode.

So far, files encrypted on the 64-bit system are
ultrasecure in that they can'ts seem to be read anywhere.:-)

Has anybody else had the same problem on a 64-bit
version of pgp?

I am glad I discovered this before anything crytical
happened.

Martin McCormick
___
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: Netbooks BSD

2010-10-04 Thread Jason Garrett
On Mon, Oct 4, 2010 at 18:33, Mikle Krutov nekoexmach...@gmail.com wrote:

 Hello, list!
 I'm going to buy a netbook soon, so a question is which one.
 The choice is between
 1) Samsung N127
 2) ASUS Eee PC 900AX
 3) MSI U120-094
 Which one is the best for running FreeBSD?
 The best mainly is for opensource (e.g. not ndis)  stable wireless

drivers.

 You won't find much support for N based wireless cards in FreeBSD.

So, any good experience and suggestions?


I would save my money to buy something that FreeBSD runs nice on...

just my 2 cents...

 Thank you for your time!
 ___
 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: Netbooks BSD

2010-10-04 Thread Matthias Apitz
El día Monday, October 04, 2010 a las 11:33:02PM +, Mikle Krutov escribió:

 Hello, list!
 I'm going to buy a netbook soon, so a question is which one.
 The choice is between
 1) Samsung N127
 2) ASUS Eee PC 900AX
 3) MSI U120-094
 Which one is the best for running FreeBSD?
 The best mainly is for opensource (e.g. not ndis)  stable wireless
 drivers.
 So, any good experience and suggestions?
 Thank you for your time!

I have no idea about which would be the best one,
but I'm using right now (in the moment of typing) an EeePC 900,
details here: http://www.unixarea.de/installEeePC-8CURRENT.txt
and this is just fine;

HIH

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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: ACPI battery issues

2010-10-04 Thread Peter Harrison
Saturday,  2 October 2010 at 17:01:41 -0400, Eitan Adler said:
 On Sat, Oct 2, 2010 at 4:01 PM,  four.harris...@googlemail.com wrote:
  I get the same messages with the stock acpi on a Lenovo S10e. Someone on 
  the acpi list (who's name I forget) wrote a patch which removes the error. 
  If you think it might help I'll root it out and forward it on.
 
 
 I'll be happy to take a look at the patch and see if it solves my
 problem. does the patch just remove the error message or solve a
 specific problem that might be causing the issue?

Eitan,

I've attached the patch - this came from David Naylor on the ACPI list. If I 
understand what he told me at the time, it doesn't fix the problem entirely - 
but I can't pretend I understand ACPI. I know it means that on my S10e I no 
longer get spammed with ACPI errors - and that my battery status and shutdown 
work properly.

The patch applies to /usr/src/sys/dev/acpica/acpi_ec.c

It needs some new entries in /boot/loader.conf to adjust the timeouts and 
delays - which you can tinker with. The settings given are what works for me - 
but search the acpi list archives for David's original email:

debug.acpi.ec.delay=200
debug.acpi.ec.gpe=1
debug.acpi.ec.timeout=100

Hope it helps,



Peter Harrison.

 
 
 
 
 
 ...
  I see
  ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
  [EmbeddedControl] (20100331/evregion-588)
  ACPI Error (psparse-0633): Method parse/execution failed
  [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
  AE_NO_HARDWARE_RESPONSE
 
  repeatedly in dmesg
 
  sysctl's relating to battery information is also slow:
  % time sysctl hw.acpi.battery.state
  hw.acpi.battery.state: 7
  sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total
 
  % time sysctl hw.acpi.battery
  hw.acpi.battery.life: -1
  hw.acpi.battery.time: -1
  hw.acpi.battery.state: 7
  hw.acpi.battery.units: 1
  hw.acpi.battery.info_expire: 5
  sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total
 
  also note that the life and time are both negative one.
 
  This is on a Lenovo G530 laptop.
 -- 
 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: BIND: could not configure root hints from 'named.root': file not found

2010-10-04 Thread Matthew

CyberLeo Kitsana,
Thank you so much for the history and evolution on Bind expected 
directory structures.  It enabled me to jump through that tough spot.

Thanks again,
Matthew

On 10/01/2010 12:52 PM, Matthew wrote:
   

I would be grateful for any pointers on how to resolve this.  I suspect
the error message may not be exactly descriptive of whats happening.
 

Kinda.

Here's a few points to keep in mind when working with bind in FreeBSD:

* By default, named runs in a chroot jail rooted at /var/named/.

* For security reasons, named cannot write to anything in that tree,
except the dynamic, slave, and working directories.

* named uses its current working directory to resolve relative pathnames
in the configuration file.

* With a recent change to ISC Bind 9, named started complaining if it
couldn't write to its current working directory. At the time, this was
(chroot)/etc/namedb/; this was subsequently changed to
(chroot)/etc/namedb/working/ to make named happy without compromising
security.

When the working directory for named was (chroot)/etc/namedb/,
everything was peachy. Since this was changed, relative pathnames no
longer work as expected because the reference point is different. The
easiest solution is to alter your configuration file to include only
absolute pathnames, relative to the root of the jail.

The default named config file (in /var/named/etc/namedb/named.conf) is
an excellent source of examples for this.

   


___
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: BIND: could not configure root hints from 'named.root': file not found

2010-10-04 Thread Matthew

Krad,
Thank you for the tip. I've changed the . to the correct value.
Matthew

On 1 October 2010 21:16, CyberLeo Kitsanacyber...@cyberleo.net  wrote:

   

On 10/01/2010 12:52 PM, Matthew wrote:
 

I would be grateful for any pointers on how to resolve this.  I suspect
the error message may not be exactly descriptive of whats happening.
   

Kinda.

Here's a few points to keep in mind when working with bind in FreeBSD:

* By default, named runs in a chroot jail rooted at /var/named/.

* For security reasons, named cannot write to anything in that tree,
except the dynamic, slave, and working directories.

* named uses its current working directory to resolve relative pathnames
in the configuration file.

* With a recent change to ISC Bind 9, named started complaining if it
couldn't write to its current working directory. At the time, this was
(chroot)/etc/namedb/; this was subsequently changed to
(chroot)/etc/namedb/working/ to make named happy without compromising
security.

When the working directory for named was (chroot)/etc/namedb/,
everything was peachy. Since this was changed, relative pathnames no
longer work as expected because the reference point is different. The
easiest solution is to alter your configuration file to include only
absolute pathnames, relative to the root of the jail.

The default named config file (in /var/named/etc/namedb/named.conf) is
an excellent source of examples for this.

--
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
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

 


Hmm,


options {
directory.;

that doesnt look ideal. Not sure if you are meaning to do that but put an
explicit direcorty in eg /etc/namedb. Otherwise it will be looking in
whatever current directory you are in at that time. The main named.conf will
be found as its supplied via a cli switch by the rc script. However all
subsequent files will come from the current dir
___
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


[fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread spellberg_robert

howdy, y'all ---

these may be stupid questions and, if so, i am prepared to slap my forehead 
with the palm of my hand.



i recently acquired my first batch of intel cpus with 64_bit integer registers 
[ celeron 440 ],
  specifically for the 16 registers and the potential for a truly_gargantuan 
datasize.
intel has called this many things, currently intel 64 architecture.

to me, this is just a bigger, faster 386,
  just like my 486 and several flavors of pentium [ now, all retired ].
i have never owned an amd cpu.
this may be the source of my confusion.

what prompted my recent searches was the observation, while working on my 
killer_app,
  in machine/types.h, as i recall, that the size of an intptr is 32_bits.
[ i am aware of the gcc double_integer implementation of 64_bit 
data_integers.
  that is not the issue; i want big memory.
]
i want my app to exist in two sizes, small [ 8_, 16_ and 32_bit integers and 
32_bit pointers ] and
  large [ 8_, 16_, 32_ and 64_bit integers and 48_bit pointers ],
  the choice between the two being made by my users, according to their needs.
my objective is to produce both versions, simultaneously.

so, i have been looking at many pages, mostly at freebsd.org [ http and ftp ] 
and gcc.gnu.org,
  as well as some others [ release notes, in particular ].
the last question is the big one.



consider a dvd_image [ to pick an approach ] of a release to be found on 
ftp.freebsd.org.

  q:if the release_name includes the string i386,
  am i restricted to 8 32_bit registers and 32_bit pointers,
  notwithstanding its installation on an intel_64 platform ?



next, from what i have been reading,
  those releases whose names contain amd64 not only are for amd cpus, but, 
also,
  are for the intel_64 variant [ no doubt, probing the cpu for its feature_set 
].

  q:if i install an amd64 version on an intel_64 platform,
  am i restricted to 16 64_bit registers and 48_bit pointers or
  can i compile for both cpu_models
  [ perhaps, with nothing more complicated than a compiler option ] ?



please cc.
in advance, thanks big_time.

rob

___
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: [fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread David Brodbeck
On Mon, Oct 4, 2010 at 12:51 PM, spellberg_robert email...@emailrob.com wrote:
  q:    if i install an amd64 version on an intel_64 platform,
          am i restricted to 16 64_bit registers and 48_bit pointers or
          can i compile for both cpu_models
          [ perhaps, with nothing more complicated than a compiler option ] ?

Take a look at gcc's -m32 and -m64 options.
___
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: [fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread spellberg_robert

hmmm ..., you did not answer the question that i asked.

per your statement, on i386, amd64 or both ?



David Brodbeck wrote:

On Mon, Oct 4, 2010 at 12:51 PM, spellberg_robert email...@emailrob.com wrote:


q:if i install an amd64 version on an intel_64 platform,
am i restricted to 16 64_bit registers and 48_bit pointers or
can i compile for both cpu_models
[ perhaps, with nothing more complicated than a compiler option ] ?



Take a look at gcc's -m32 and -m64 options.




___
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


JAILS in FreeBSD manual - Minor ambiguity between 15.6.1.3 Creating Jails 15.6.1.4 Upgrading

2010-10-04 Thread Matthew

Hello,
15.6.1.4 Upgrading in the FreeBSD manual provides a great step, by 
step way to safely update jails.  I've just installed apache in the host 
system, and now I wish to propagate it to the system wide jail skeleton, 
and www jail.


But given my limited experience with jails, I am perplexed to read in 
the 2nd last sentence of this section: Do not forget to run mergemaster 
in each jail.
The instruction doesn't say between which steps (which one between 1 
through 6) to run mergemaster, and I'm left guessing as I'm still coming 
up to speed on jail configuration and maintenance.


Carefully reading *15.6.1.2 Creating the Template* it says that 
mergemaster is run in:


Step 4 - Use Mergemaster to install missing configuration files...

This follows:
Step 1 - Create a read-only directory structure for the read-only file 
system...(make installworld)

Step 2 - Prepare FreeBSD ports collection for the jails...
Step 3 - Create a skeleton for the read-write portion...

However *15.6.1.4 Upgrading* shares only step 1 (make installworld), but 
steps 2 through 6 are quite different.  I am left wondering between 
which steps in 15.6.1.4 Upgrading that I am to run mergemaster on each 
jail.  I would be very happy to get a tip.


Thank you,
Matthew
___
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: 64-bit PGP isn't Decrypting.

2010-10-04 Thread Dan Nelson
In the last episode (Oct 04), Martin McCormick said:
 There are two new FreeBSD8.1 systems. Both got pgp added to them by use of
 pkg_add -r pgp.  Both adds installed
 
 Pretty Good Privacy(tm) 2.6.3ia - Public-key encryption for the masses.
 (c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 1996-03-04
 International version - not for use in the USA. Does not use RSAREF.
 
 A test file that had been encrypted earlier was used on both systems.  It
 works fine on the 32-bit system and always fails on the 64-bit system. 
 Trust me.  As many times as I tried it, I couldn't possibly be mistyping
 the pass phrase every time on the 64-bit system and then getting it right
 on the 32-bit system.

Does gnupg (ports/security/gnupg) work?  I think you'll have a hard time
trying to get people to fix bugs in pgp; the source tree that the pgp port
uses is 14 years old.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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


OT: Apache as reverse SSL proxy

2010-10-04 Thread Doug Poland
Hello,

I realize this is not a specific FreeBSD question, but a lot of
knowledgeable apache admins hang around here.  I am tasked with creating
a reverse SSL proxy in a DMZ.  A reverse proxy for http is simple, but
I'm finding it challenging understanding all that needs to take place
for apache 2.2.x to act as a reverse.

I've done an extensive amount of googling and reading mod_proxy and
mod_ssl docs, but to no avail.  Can someone point me to some docs or
configs?

TIA!

-- 
Doug

___
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: [fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread David Brodbeck
On a 64-bit system, if you build a binary with the -m32 flag, it
should run on both i386 and x86-64 systems.  A binary built with -m64
will only run on x86-64.  Does that help?

On Mon, Oct 4, 2010 at 1:45 PM, spellberg_robert email...@emailrob.com wrote:
 hmmm ..., you did not answer the question that i asked.

 per your statement, on i386, amd64 or both ?



 David Brodbeck wrote:

 On Mon, Oct 4, 2010 at 12:51 PM, spellberg_robert email...@emailrob.com
 wrote:

 q:    if i install an amd64 version on an intel_64 platform,
        am i restricted to 16 64_bit registers and 48_bit pointers or
        can i compile for both cpu_models
        [ perhaps, with nothing more complicated than a compiler option ]
 ?


 Take a look at gcc's -m32 and -m64 options.




___
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: [fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread Michael Powell
spellberg_robert wrote:

[snip] 
 consider a dvd_image [ to pick an approach ] of a release to be found on
 ftp.freebsd.org.
 
q:if the release_name includes the string i386,
am i restricted to 8 32_bit registers and 32_bit pointers,
notwithstanding its installation on an intel_64 platform ?

I am certainly not an expert, and if I am interpreting the question 
correctly I believe the answer here would be yes. x86 processors of today 
can run either 32 bit or 64 bit OS. For example, you could install a 32 bit 
Windows XP and it would run as 32 bit even thought the processor has 64 bit 
capability. The restriction you are asking about here would be as a result 
of using a 32 bit OS and not because of processor capabilities.

 
 next, from what i have been reading,
those releases whose names contain amd64 not only are for amd cpus,
but, also, are for the intel_64 variant [ no doubt, probing the cpu for
its feature_set ].
 
q:if i install an amd64 version on an intel_64 platform,
am i restricted to 16 64_bit registers and 48_bit pointers or
can i compile for both cpu_models
[ perhaps, with nothing more complicated than a compiler option
[ ] ?
 

The amd64 stuck primarily because the 64 bit extensions were initially 
pioneered by AMD, and subsequently copied by Intel. Generally speaking, for 
the most part it is possible to run 32 bit binaries on a 64 bit OS installed 
to 64 bit x86 CPU hardware. Another Windows example: Let's say you have 64 
bit version of Windows installed. It can run 32 bit apps using WoW, or 
Windows on Windows. amd64 processor can execute either 32 bit or 64 bit 
simultaneously providing there are libraries contained within the OS to 
facilitate this. You just wouldn't really want to do this because it is 
slow.

I do not know enough about this as I have never had a need, but I think 
similar facilities exist in FreeBSD. You can install amd64 to a 64 bit CPU 
and still execute 32 bit software using a 32 compatibility library set. Look 
at the GENERIC kernel config file for amd64 and you will see a line like 
this:

options COMPAT_FREEBSD32# Compatible with i386 binaries 

You need to have the 32 bit library set built and installed. Investigate 
this particular subject for further (and better) explanation. It isn't so 
much a matter of compiling an app for both models as it is where they will 
run. You cannot compile an app as 64 bit and run it on an i386 OS install, 
whether or not the CPU is 64 bit. But with the help of 32 bit compatibility 
libs you _can_ run a 32 bit binary on a 64 bit OS installed to a 64 bit 
processor.

-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: [fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread Dan Nelson
In the last episode (Oct 04), David Brodbeck said:
 On a 64-bit system, if you build a binary with the -m32 flag, it
 should run on both i386 and x86-64 systems.  A binary built with -m64
 will only run on x86-64.  Does that help?

Actually, -m32 on amd64 won't generate usable binaries, since
/usr/include/machine/* are all amd64 headers and you end up with things like
struct FILE with wrong-size elements.  There was a thread a few weeks ago
discussing this.  If you need to generate 32-bit executables, you'll need to
do it inside an all-32-bit chroot or a virtual machine.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: [fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread spellberg_robert

aha !

this relates to what i found in machine/types.h,
  on my existing i386 version of freebsd on my intel_64 hardware platform.

i will look into the questions archive.

meanwhile, back at the ranch,
  does this mean that i need the amd64 version of freebsd to get the right 
headers ?



Dan Nelson wrote:

In the last episode (Oct 04), David Brodbeck said:


On a 64-bit system, if you build a binary with the -m32 flag, it
should run on both i386 and x86-64 systems.  A binary built with -m64
will only run on x86-64.  Does that help?



Actually, -m32 on amd64 won't generate usable binaries, since
/usr/include/machine/* are all amd64 headers and you end up with things like
struct FILE with wrong-size elements.  There was a thread a few weeks ago
discussing this.  If you need to generate 32-bit executables, you'll need to
do it inside an all-32-bit chroot or a virtual machine.




___
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: Which OS for notebook

2010-10-04 Thread Gonzalo Nemmi
On Mon, Oct 4, 2010 at 6:11 AM, Leandro F Silva fsilvalean...@gmail.com wrote:
 Hi guys,

 Which OS are you using on your notebook, FreeBSD / Linux or MAC ?
 Also, can you tell us the hardware, Sony / HP etc..

 Thank you !

Linux Mandriva 2010 on my notebook (Dell 1318) and Mandriva 2010.1 on
my netbook (Compaq mini CQ10-120LA) ...

I need ACPI to work as expected and no BSD can give me that, and the
same goes for wireless cards support .. forget bout bluetotth ...
besides, dumping a Linux .iso image in a USB stick to give it a go on
my notebook/netbook to try it out before installing was incredibly
more easy than doing so with BSD images as most major Linux
distributions provide Win/Linux GUI tools to do so (The Mandriva tool
will ask you to select an .iso image and a USB ... point, click, you
are done ... Fedoras tool will even allow you to create a a separate
partition on the same USB device to store your files should you choose
not to install the OS).

Linux (as much as I don´t like it) is years ahead of BSD´s in that regards ...

And, oh yeah .. native UTF-8 tty´s and KVM make a huge difference.

FreeBSD has been relegated to my desktop (which I have come to use
only ocassionally, and servers).

Best Regards
Gonzalo Nemmi
___
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: [fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread spellberg_robert

well, i looked at questions back to the beginning of august.

on aug_09 i found a thread that suggests the following questions.



for a given release of freebsd,

  q:is it that the version labeled i386 contains only 32_bit headers and 
source,
  which creates the 32_bit version of freebsd, as well as 32_bit 
versions of what i write,
  which will run as 32_bit code on either i_386, intel_64 or amd_64 ?

  q:is it that the version labeled amd64 contains only 64_bit headers and 
source,
  which creates the 64_bit version of freebsd, as well as 64_bit 
versions of what i write,
  which will run as 64_bit code on the intel_64 and the amd_64, but, 
not the i_386 ?

  q:if a i386 version is installed on an intel_64 platform,
  then the pointers are 32_bits_wide, no matter what ?

  q:if i want to produce both 32_bit and 64_bit versions of my killer_app,
  then i need two machines,
one   a 32_bit or  a 64_bit running i386,
the other --only-- a 64_bit running amd64 ?



  q:given that i have intel_64 hardware,
  do i need to start acquiring the amd64 versions of the releases,
  rather_than / in_addition_to the i386 versions ?



  q:given that --i-- am committed to 64_bit hardware,
  perhaps, i should give up on the i386 versions of the releases and
  require my users to spend us$_300 on 64_bit hardware
  [ it would save a large number of conditional_compilation directives;
  nudge_nudge, wink_wink, say no more
  ] ?



again, i thank you for your assistance.

rob







Dan Nelson wrote:

In the last episode (Oct 04), David Brodbeck said:


On a 64-bit system, if you build a binary with the -m32 flag, it
should run on both i386 and x86-64 systems.  A binary built with -m64
will only run on x86-64.  Does that help?



Actually, -m32 on amd64 won't generate usable binaries, since
/usr/include/machine/* are all amd64 headers and you end up with things like
struct FILE with wrong-size elements.  There was a thread a few weeks ago
discussing this.  If you need to generate 32-bit executables, you'll need to
do it inside an all-32-bit chroot or a virtual machine.




___
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


PF Version

2010-10-04 Thread Jason C. Wells
What version of PF shipped with 8.1-RELEASE?  Where can I find this for 
myself?  I looked in cvsweb but was unable to understand what I was reading.


Regards,
Jason
___
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: PF Version

2010-10-04 Thread Glen Barber
On 10/4/10 10:03 PM, Jason C. Wells wrote:
 What version of PF shipped with 8.1-RELEASE?  Where can I find this for
 myself?  I looked in cvsweb but was unable to understand what I was
 reading.

Hi Jason,

The current version of PF is in line with OpenBSD 4.1, as stated in the
Handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-pf.html

Best regards,

-- 
Glen Barber
___
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: OT: Apache as reverse SSL proxy

2010-10-04 Thread Adam Vande More
On Mon, Oct 4, 2010 at 5:15 PM, Doug Poland d...@polands.org wrote:

 Hello,

 I realize this is not a specific FreeBSD question, but a lot of
 knowledgeable apache admins hang around here.  I am tasked with creating
 a reverse SSL proxy in a DMZ.  A reverse proxy for http is simple, but
 I'm finding it challenging understanding all that needs to take place
 for apache 2.2.x to act as a reverse.

 I've done an extensive amount of googling and reading mod_proxy and
 mod_ssl docs, but to no avail.  Can someone point me to some docs or
 configs?


Save your brain, and your computer's memory.  Use www/nginx or www/pound.

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


Re: 64-bit PGP isn't Decrypting.

2010-10-04 Thread Martin McCormick
Dan Nelson writes:
 Does gnupg (ports/security/gnupg) work?  I think you'll have a hard time
 trying to get people to fix bugs in pgp; the source tree that the pgp port
 uses is 14 years old.

Wow! I thought that was just the first copywrite date.

gnugp installs gpg-2 which is almost the right thing but the
files encrypted from pgp report as using the idea method.
gpg-idea is a port that currently appears to try to decode the
test file but immediately bombs out with a couple of cryptic
errors about packets so not quite home yet.

Thanks for pointing me in the right direction.
___
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: ACPI battery issues

2010-10-04 Thread Eitan Adler
 Eitan,

 I've attached the patch - this came from David Naylor on the ACPI list. If I 
 understand what he told me at the time, it doesn't fix the problem entirely - 
 but I can't pretend I understand ACPI. I know it means that on my S10e I no 
 longer get spammed with ACPI errors - and that my battery status and shutdown 
 work properly.

 The patch applies to /usr/src/sys/dev/acpica/acpi_ec.c

 It needs some new entries in /boot/loader.conf to adjust the timeouts and 
 delays - which you can tinker with. The settings given are what works for me 
 - but search the acpi list archives for David's original email:

 debug.acpi.ec.delay=200
 debug.acpi.ec.gpe=1
 debug.acpi.ec.timeout=100

 Hope it helps,



 Peter Harrison.

Thanks for the patch. Unfortunately the hard drive in the laptop in
question broke and I'm waiting for a replacement. I will test it when
I reinstall freeBSD though. Thanks for the patch.



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


Why in FreeBSD Tk apps don't copy to clipboard selected text?

2010-10-04 Thread Yuri

For example, tkdiff.
In Linux when I select something it is being copied and I can paste it 
with middle mouse button click.

In FreeBSD -- text isn't being copied when selected.

Yuri
___
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: Why in FreeBSD Tk apps don't copy to clipboard selected text?

2010-10-04 Thread Adam Vande More
On Mon, Oct 4, 2010 at 10:04 PM, Yuri y...@rawbw.com wrote:

 For example, tkdiff.
 In Linux when I select something it is being copied and I can paste it with
 middle mouse button click.
 In FreeBSD -- text isn't being copied when selected.


Probably has something to do  with your xorg.conf, middle button paste works
fine on every system I use and they all run FreeBSD.

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


Re: Why in FreeBSD Tk apps don't copy to clipboard selected text?

2010-10-04 Thread Yuri

On 10/04/2010 20:12, Adam Vande More wrote:
Probably has something to do  with your xorg.conf, middle button paste 
works fine on every system I use and they all run FreeBSD.


It works for me very well too.
Everywhere, but from Tk apps on FreeBSD.

Yuri

___
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: Why in FreeBSD Tk apps don't copy to clipboard selected text?

2010-10-04 Thread Adam Vande More
On Mon, Oct 4, 2010 at 10:25 PM, Yuri y...@rawbw.com wrote:

 On 10/04/2010 20:12, Adam Vande More wrote:

 Probably has something to do  with your xorg.conf, middle button paste
 works fine on every system I use and they all run FreeBSD.


 It works for me very well too.
 Everywhere, but from Tk apps on FreeBSD.


Works here.

pkg_info -x tkdiff
Information for tkdiff-4.1.4_1:

Comment:
A Tk frontend for diff(1)


Description:
tkdiff is a fronted for unix's diff based on Tcl/Tk.

WWW: http://sourceforge.net/projects/tkdiff/

-- Kevin Lo ke...@freebsd.org




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


Re: [fbsd_questions] i386 vs amd64, on intel_64

2010-10-04 Thread Dan Nelson
In the last episode (Oct 05), spellberg_robert said:
 well, i looked at questions back to the beginning of august.
 
 on aug_09 i found a thread that suggests the following questions.

You might want to just use i386 and amd64 instead of making up your own
terminology (i_386, intel_64, amd_64, etc).  Note that Intel has chips
that support two competing 64-bit instruction sets: ia64, which is used by
their Itanium line, and amd64, which originated on AMD chips but Intel
adopted for their 64-bit-capable x86 chips (Xeon, Core etc).  I'll assume
that any time you say intel_64 or amd_64 you really mean amd64, since
nobody uses Itaniums :)
 
 for a given release of freebsd,
 
q:is it that the version labeled i386 contains only 32_bit
headers and source, which creates the 32_bit version of
freebsd, as well as 32_bit versions of what i write, which will
run as 32_bit code on either i_386, intel_64 or amd_64 ?

Yes, assuming you have COMPAT_FREEBSD32 in your kernel config (which GENERIC
has, so most people have it).
 
q:is it that the version labeled amd64 contains only 64_bit headers 
 and source,
which creates the 64_bit version of freebsd, as well as 64_bit
versions of what i write, which will run as 64_bit code on the
intel_64 and the amd_64, but, not the i_386 ?

Yes.
 
q:if a i386 version is installed on an intel_64 platform, then
the pointers are 32_bits_wide, no matter what ?

Yes.  FreeBSD's models are ILP32 (int, long, pointer are all 32-bit) or LP64
(int is 32-bit, long and pointer are 64-bit).
 
q:if i want to produce both 32_bit and 64_bit versions of my
killer_app, then i need two machines,
  one   a 32_bit or  a 64_bit running i386,
  the other --only-- a 64_bit running amd64 ?

Or an amd64 machine with a 32-bit world installed in a subdirectory that you
can chroot to to do your 32-bit compiles, or a virtual machine running a
32-bit world.

q:given that i have intel_64 hardware,
do i need to start acquiring the amd64 versions of the
releases, rather_than / in_addition_to the i386 versions ?

If you have more than 4GB of ram, it would be a good idea.  If you have 4GB
or less, then 64-bit mode doesn't buy you much, and may cost you performance
since all your pointers take up twice the space, filling up your L1/L2
caches twice as fast.

q:given that --i-- am committed to 64_bit hardware, perhaps, i
should give up on the i386 versions of the releases and
require my users to spend us$_300 on 64_bit hardware [ it would
save a large number of conditional_compilation directives;
nudge_nudge, wink_wink, say no more
] ?

Or provide source and let the users compile what they need on their own
machines.  Assuming you code using the appropriate types (size_t, intptr_t,
etc, or int32_t and int64_t for when you know you need a particular word
size) instead of assuming that a pointer will fit in an int, your code
should compile on either 32- or 64-bit machines with no conditional code.

http://www.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html
 
-- 
Dan Nelson
dnel...@allantgroup.com
___
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: OT: Apache as reverse SSL proxy

2010-10-04 Thread Doug Poland
On Mon, Oct 04, 2010 at 09:19:52PM -0500, Adam Vande More wrote:
 On Mon, Oct 4, 2010 at 5:15 PM, Doug Poland d...@polands.org wrote:
 
 Hello,
 
 I realize this is not a specific FreeBSD question, but a lot of
 knowledgeable apache admins hang around here.  I am tasked with
 creating a reverse SSL proxy in a DMZ.  A reverse proxy for http
 is simple, but I'm finding it challenging understanding all that
 needs to take place for apache 2.2.x to act as a reverse.
 
 I've done an extensive amount of googling and reading mod_proxy
 and mod_ssl docs, but to no avail.  Can someone point me to some
 docs or configs?
 
 
 Save your brain, and your computer's memory.  Use www/nginx or
 www/pound.
 
What also complicates the matter is that the reverse proxy is supposed
to act for several virtual hosts.  The documentation for www/pound
indicated HTTPS does not allow virtual hosting.  I seem to recall
bumping into this issue in the past that one cannot do named-based
vhosts on HTTPS.

Look like it's back to the drawing board...


-- 
Regards,
Doug
___
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: OT: Apache as reverse SSL proxy

2010-10-04 Thread Adam Vande More
On Mon, Oct 4, 2010 at 10:53 PM, Doug Poland d...@polands.org wrote:

 What also complicates the matter is that the reverse proxy is supposed
 to act for several virtual hosts.  The documentation for www/pound
 indicated HTTPS does not allow virtual hosting.  I seem to recall
 bumping into this issue in the past that one cannot do named-based
 vhosts on HTTPS.

 Look like it's back to the drawing board...


You can use nginx and sni to accomplish that, but it depends on browser
support.  If your viewers are using IE7+, or any other modern browsers it
shouldn't be a problem.  If you have a lot of IE6- and other old browsers,
get those IP request forms filled out.


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


Re: OT: Apache as reverse SSL proxy

2010-10-04 Thread Peter Boosten
On 5-10-2010 5:53, Doug Poland wrote:
 On Mon, Oct 04, 2010 at 09:19:52PM -0500, Adam Vande More wrote:
 The documentation for www/pound
 indicated HTTPS does not allow virtual hosting.  I seem to recall
 bumping into this issue in the past that one cannot do named-based
 vhosts on HTTPS.
 
 Look like it's back to the drawing board...
 
 

You could circumvent that issue by terminating your HTTPS sessions on
the reverse proxy itself (and talk HTTP to the application server). Some
applications won't work that way, but modern ones (and even Outlook Web
Access) can use a HTTPS-front-end. The problem exists within
applications with hard-coded links.

Peter

-- 
http://www.boosten.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


LibreOffice?

2010-10-04 Thread Caleb Stein

When can we expect it in the ports?
___
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


How can I know how many packets were lost and resent on particular TCP connection?

2010-10-04 Thread Yuri

Just curious if I can do this.

Yuri
___
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: OT: Apache as reverse SSL proxy

2010-10-04 Thread Matthew Seaman
On 05/10/2010 05:40:42, Peter Boosten wrote:
 On 5-10-2010 5:53, Doug Poland wrote:
 On Mon, Oct 04, 2010 at 09:19:52PM -0500, Adam Vande More wrote:
 The documentation for www/pound
 indicated HTTPS does not allow virtual hosting.  I seem to recall
 bumping into this issue in the past that one cannot do named-based
 vhosts on HTTPS.

Yes.  There's a catch-22 with HTTPS.  The ServerName of the encrypted
website is part of the keying material used to decrypt the traffic.
That's given in the Host: header line in HTTP packets -- which is part
of the encrypted content.  So to find the name of the virtual host you
need to decrypt the packet, but to decrypt the packet, you first need
the virtual host name.  The only way it can work is by making a 1:1
association of web sites with IP numbers, as you can then work out the
server name from the IP connection.

Nowadays there is also the possibility of RFC2817 -- in essence you
start an ordinary HTTP session, then issue a STARTTLS command and
upgrade the connection to encrypted.  This will allow name-based virtual
hosting with TLS to work as intended.  Unfortunately, last I checked,
while apache supports this, most web browsers do not.

 Look like it's back to the drawing board...


 
 You could circumvent that issue by terminating your HTTPS sessions on
 the reverse proxy itself (and talk HTTP to the application server). Some
 applications won't work that way, but modern ones (and even Outlook Web
 Access) can use a HTTPS-front-end. The problem exists within
 applications with hard-coded links.

In fact, you pretty much have to do that.  Unless your proxy is going to
work at layer 2 only, which most people would recognise as a NAT'ing
gateway, and not something you'ld use apache to implement at all.

If your proxying software needs to work at layer 3  -- that is, the
proxy needs to be able to access the HTTP content wrapped inside the TLS
session, then the proxy has to be an endpoint of the TLS session.
Whether the proxy encrypts its own connections to the original source is
then just a matter of preference.  [Well, that, and software capability:
squid used in reverse proxy mode will speak HTTPS to the end users, but
requires plaintext access to the origin servers.]

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