Re: Secure way to delete data in hard disc

2009-10-27 Thread Rodrigo V. Raimundo
It may not erase all data if the device can do block relocation and you 
don't have direct access to phisical blocks. But if data remains on 
hidden or discarted blocks it is still hard to someone else recover it.


Jordi Espasa Clofent wrote:

Hi all,

The subject is auto-descriptive ;)
After reading a while about wiping [1] I think there's not a unique 
way to do it. Finally I've chosen a simple double-step method:


First,

$ dd if=/dev/urandom of=

and next

$ dd if=/deb/zero of=

?Do you think is it safe enough? I mean ?is it enough against the 
common recovery low-level data tools?


[1] http://en.wikipedia.org/wiki/Data_erasure#Standards




Re: PowerEdge 650 fan speed

2009-10-27 Thread Rodrigo V. Raimundo

Steve Shockley wrote:
My firwall had a hardware failure, so I threw the drive into a Dell 
PowerEdge 650.  That worked fine, but now I can hear the fans 
screaming down the hall through a closed door.  Other than hardware 
changes (like a resistor or a non-1U server), is there anything I can 
do to shut this machine up?  Does anyone know if the fans in this 
machine would idle down on a "supported" OS?


It's running 4.6, FWIW.



We have a poweredge 700 tower running 4.2 and the bios takes care of the 
big fan it has. The same is true for a 1900 tower with 4.5.


You should check the bios, maybe something like "automatic fan control" 
is disabled.




Re: How can I mount a NTFS( sharing) remote partition on openBSD?

2008-11-25 Thread Rodrigo V. Raimundo

http://blog.e-shell.org/57


Ricardo Augusto de Souza wrote:

Hi,



 i need to Access a sharing on a Windows from a openBSD.

I did that in the past on linux using mount -t vfat or smbclient.

How can I do that on obsd 4.3 ?





thanks




Re: Real men don't attack straw men

2007-12-12 Thread Rodrigo V. Raimundo
On Wednesday 12 December 2007 06:37, Richard Stallman wrote:
> However, if distribution D includes this "easier way to install" in
> its ports system, by doing so distribution D endorses it and takes on
> the ethical responsibility for it.
>

Using the same argument I can say that gcc isn't ethical because it allows 
compilation of non-free software.



Hardware support for secure virtualization (was: About Xen: maybe a reiterative question but ..)

2007-10-25 Thread Rodrigo V. Raimundo
With all this discussion some questions went to me:

what's the hardware needed to do full and secure (para)?virtualization ?
is there some arch with this support ever created?
could the virtualization environment be secure if all guest OSes run in
userland? (User-Mode Linux, QEMU without acceleration, ...)

Thanks in advance



Re: : cp(1) bug ?

2007-10-19 Thread Rodrigo V. Raimundo
Em Sex, 2007-10-19 C s 13:52 -0400, Douglas A. Tutty escreveu:
> On Fri, Oct 19, 2007 at 09:19:21AM -0400, Nick Guenther wrote:
> > On 10/19/07, Tom Van Looy <[EMAIL PROTECTED]> wrote:
> > > Richard Toohey wrote:
> > > > On 19/10/2007, at 8:12 PM, Raimo Niskanen wrote:
> > > >
> > > > Looks like OpenBSD, FreeBSD, and Mac OS X BSD bits have the same
> > > > sort of outcome.
> > > >
> > > > Copy foo to foo only once and quit, I think that's the correct
> > > > behaviour. I even think that posix more or less describes that.
> > > >
> > > > That's what it should be doing I guess. But it's tricky, if you start
> > > > doing symlinks etc, you'll end up looping sooner or later. What if
the
> > > > directoy's are not named the same (eg: hard links)?
> > > >
> > > correction: hard links are not allowed on directory's, ...
> > > that being said, comparing inodes seems the best solution
> > >
> > > only, don't give an error but copy once
> > > maybe if I have time this weekend I'll try code that behaviour
> > >
> > > Anyway, it has worked like that since years, and I guess nobody has had
> > > a problem with it before. I don't think it should be changed just
> > > because some bored guy playing with it noticed strange output ;-p
> >
> > Sure, but "bored guy" can translate to "new ideas" and testing
> > somehow-still-untested code paths. It's worth a shot at fixing.
>
> For what its worth, all I can offer is moral support since I don't code
> C.
>
> Conceptually, though, why can't cp look at the source directory and take a
> snapshot, a to-do-list, of everything it has to copy, then do it?  That
> way, any recursion would be completed before the target directory
> appeared in the source directory.  With only an -R (no -H -L or -P), it
> should copy links as links which should avoid loops.
>
> How do scp and rsync do it?
>
> Doug.
>

At linux 2.6.22 (Ubuntu 7.10)
$ mkdir foo
$ scp -r foo localhost:/home/spyro/foo/

foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/f
oo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/fo
o/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo
/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/
foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/f
oo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/fo
o/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo
/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/
foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/f
oo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/fo
o/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo
/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/
foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/f
oo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/foo/fo
o/foo/foo/foo/foo/foo: name too long

Using OpenSSH_4.6p1 Debian-5build1, OpenSSL 0.9.8e 23 Feb 2007



Re: How can i boot a bsd.rd from windows 2000 ?

2007-10-16 Thread Rodrigo V. Raimundo
Em Seg, 2007-10-15 C s 22:11 -0400, nikolai escreveu:
> > Hello everyone. My situation is this:
> > i've a laptop, a Sharp pc-ax10 with Windows 2000 preinstalled , without
> > cdrom, floppy. I wish install OpenBSD on it. Naturally bios can't boot
> > from USB.
> > So i've thinked to boot the bsd.rd , but how ? The faq explain the
> > procedure from an older OpenBSD operating system... i've Windows 2000 on
> > it.
> >
> > Is it possible ? and if is possible, in which way ? Where i must put the
> > bsd.rd and in which way i can boot from him ?
> >
> > I've tried google, but nothing :-(
> >
> > Thanks for the attention
> >
> > Christopher Bianchi
> >
> >
> 
> Christopher,
> 
> Check out http://www.openbsd.org/faq/faq4.html#Multibooting,
> the "Windows NT/2000/XP NTLDR" section.
> Worked perfectly for me on W2K.
> 

Booting from NTLDR works when you have OpenBSD already installed. I see
no way how can it work without OpenBSD installed.

> --
>  Nick



Re: : How can i boot a bsd.rd from windows 2000 ?

2007-10-15 Thread Rodrigo V. Raimundo
According to grub documentation
http://www.gnu.org/software/grub/manual/grub.html#kernel ...

Em Sex, 2007-10-12 C s 09:57 +0200, Raimo Niskanen escreveu:
> Can grub actually boot a bsd kernel. I thought it was in a
> different binary format than Linux kernels.
> 

Grub can boot *BSD kernel and can detect in what binary format it is.
But in case it dont recognite the binary there is a --type=openbsd
parameter that can be used with the "kernel" command.

> Does grub pass kernel arguments to the bsd kernel in the
> right way.
> 


It is not possible to pass kernel parameters from grub to /bsd*


> Sorry about the doubts, but I have always chain loaded
> OpenBSD from grub through the PBR code in biosboot
> installed by installboot, which in its turn calls
> the boot program that loads the bsd or bsd.rd kernel.
> 
> Off-Topic: In that case, can SYSLINUX boot the
> bsd kernel from a DOS partition?
> 

Accordint to http://syslinux.zytor.com/faq.php it can only boot linux,
COM executables, pxeboot files, cdrom images and a few other, but no one
*BSD kernel.

> 
> 
> On Thu, Oct 11, 2007 at 12:34:13PM -0300, Rodrigo V. Raimundo wrote:
> > Em Qua, 2007-10-10 C s 21:49 +0200, Christopher Bianchi escreveu:
> > > Hello everyone. My situation is this:
> > > i've a laptop, a Sharp pc-ax10 with Windows 2000 preinstalled , without
> > > cdrom, floppy. I wish install OpenBSD on it. Naturally bios can't boot
> > > from USB.
> > > So i've thinked to boot the bsd.rd , but how ? The faq explain the
> > > procedure from an older OpenBSD operating system... i've Windows 2000 on 
> > > it.
> > > 
> > > Is it possible ? and if is possible, in which way ? Where i must put the
> > > bsd.rd and in which way i can boot from him ?
> > > 
> > > I've tried google, but nothing :-(
> > > 
> > > Thanks for the attention
> > > 
> > > Christopher Bianchi
> > > 
> > 
> > 1 - Use some free tool to create a new partition on your hard-disk, if
> > you lose Win 2k bye-bye
> > 
> > 2 - Install grub on Windows (*) and attach it's stage1 file to
> > boot.ini(**)
> > 
> > 3 - Add an entry to grub's menu.lst so it can boot bsd.rd from virtualy
> > anywhere on your hd. (***)
> > 
> > See: http://www.geocities.com/lode_leroy/grubinstall/
> > 
> > (***) menu.lst example:
> > 
> > title OpenBSD Installer
> > # Windows on the first partition of the first drive
> > root (hd0,0) 
> > # Grub will found the file if compiled with fat/ntfs support
> > kernel /boot/bsd.rd 
> > boot
> > 
> > --
> > 
> > (**) boot.ini example:
> > 
> > [boot loader]
> > timeout=30
> > default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
> > [operating systems]
> > multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows 200
> > Professional"
> > c:\boot\stage1="Grub"
> > 
> > -
> > 
> > (*) grubinstall command line example:
> > 
> > Run cmd.exe, them:
> > c:\> grubinstall -d (hd0,0) -1 C:\boot\stage1 -2 C:\boot\stage2



Re: How can i boot a bsd.rd from windows 2000 ?

2007-10-11 Thread Rodrigo V. Raimundo
Em Qua, 2007-10-10 C s 21:49 +0200, Christopher Bianchi escreveu:
> Hello everyone. My situation is this:
> i've a laptop, a Sharp pc-ax10 with Windows 2000 preinstalled , without
> cdrom, floppy. I wish install OpenBSD on it. Naturally bios can't boot
> from USB.
> So i've thinked to boot the bsd.rd , but how ? The faq explain the
> procedure from an older OpenBSD operating system... i've Windows 2000 on it.
> 
> Is it possible ? and if is possible, in which way ? Where i must put the
> bsd.rd and in which way i can boot from him ?
> 
> I've tried google, but nothing :-(
> 
> Thanks for the attention
> 
> Christopher Bianchi
> 

1 - Use some free tool to create a new partition on your hard-disk, if
you lose Win 2k bye-bye

2 - Install grub on Windows (*) and attach it's stage1 file to
boot.ini(**)

3 - Add an entry to grub's menu.lst so it can boot bsd.rd from virtualy
anywhere on your hd. (***)

See: http://www.geocities.com/lode_leroy/grubinstall/

(***) menu.lst example:

title OpenBSD Installer
# Windows on the first partition of the first drive
root (hd0,0) 
# Grub will found the file if compiled with fat/ntfs support
kernel /boot/bsd.rd 
boot

--

(**) boot.ini example:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows 200
Professional"
c:\boot\stage1="Grub"

-

(*) grubinstall command line example:

Run cmd.exe, them:
c:\> grubinstall -d (hd0,0) -1 C:\boot\stage1 -2 C:\boot\stage2



Re: kde automounting

2007-09-25 Thread Rodrigo V. Raimundo

Antti Harri wrote:

On Tue, 25 Sep 2007, Rodrigo V. Raimundo wrote:

Is there a way to get kde's automounting functionality working under 
obsd?

At linux I think it uses hal-deamon plus something like pmount.
Some way to make /etc/hotplug/attach call some kde application with 
DISPLAY=:0.0 that lets the gui-logged user mount (or not) its usb 
drive ?


Why not just mount the stick (with hotplug) in all cases when it's
plugged in?



Just automounting works good when you own the machine. I'm planning 
futher installing obsd on public (shared) environments.
I think p(u)mount can be a good solution to let an unprivileged user 
mount/umount removable media on its will. Sudo access to mount/umount is 
dangerous.




kde automounting

2007-09-25 Thread Rodrigo V. Raimundo

Is there a way to get kde's automounting functionality working under obsd?
At linux I think it uses hal-deamon plus something like pmount.
Some way to make /etc/hotplug/attach call some kde application with 
DISPLAY=:0.0 that lets the gui-logged user mount (or not) its usb drive ?




Re: files system of OpenBSD

2007-06-22 Thread Rodrigo V. Raimundo

FreeBSD uses UFS2 by default. UFS2 is not supported by OpenBSD
One good choice for /home is ext2, most OSes support it.

Fred Crowson wrote:

Alex Kwan wrote:

Hi!

I am first time to install Open BSD, is the OpenBSD files' system 
same as FreeBSD?

many thanks!

Alex



man hier

will answer your question.

HTH

Fred




Re: Loading a Second Kernel

2007-04-18 Thread Rodrigo V. Raimundo

use grub and make a script to edit its "default N" config line
you can mount your ext2 partition from gentoo on openbsd and edit 
/boot/grub/menu.lst

this way you can make an script to reboot into openbsd or reboot into gentoo
it can be useful for systems controlled through ssh

Jon Steel wrote:

Hi

Im trying to find a way to do a sort of very soft reboot. For example I
want to boot up the computer into a kernel on one drive, and then after
saying reboot, the computer loads up a kernel from a second drive.

I have gotten this to work with the use of a file to pass information
between boots, but that is not an ideal solution. What I really want is
either a way to pass a parameter to the BIOS so that it can pass it to
boot upon restarting, or a way to reload the boot loader into memory and
then execute it.

It would even be fine to use another operating system on the first boot.
So it boots up into say Gentoo, and then when Im done with that, I want
to load OpenBSD.

Does anybody have an idea how I can approach this?

Thanks

Jonathan Steel