Is swap mountable?

2009-09-03 Thread obvvbooo obvvbooo
Hi,

Is swap mountable? Such as mount it to /mnt/swap, and then r/w content on
it.
I'm not trying to use it too much, but as a newbie to OpenBSD world, I
really would like to know answer of this.

Thanks for your help.



How to add new non-continuous A6 partition after install

2009-08-26 Thread obvvbooo obvvbooo
Hi,
For kinds of reasons, my disk is partitionized like this:

1st partition is for Windows system(Primary)
2nd is for OpenBSD(Primary)
3rd is Windows extended partition(Extended)
4th is originally not used, now I created a new one and mark it as
A6.(Primary)

Question is after I created the 4th partition, I can get the partition
information using fdisk, but can't see anything using disklabel. How do I
use the 4th partition? Will it be helpful if I just reformat it to fat32 or
ext3?

Anybody help? Thanks.



Re: Use memory as disk

2009-08-26 Thread obvvbooo obvvbooo
Thanks for reply. But still not got it clearly.

To get the result of command:grep ramdisk /etc/fstab, ramdisk need to be
mounted first. How do I mount ramdisk? I'm using the GENERIC kernel, Do I
need to change the config file or rebuild the kernel?
I also tried command rdconfig /dev/rd0a 2048, but it reported /dev/rd0a:
Device not configured, how to deal with this?

Thanks

2009/8/22 Robert rob...@openbsd.pap.st

 On Fri, 21 Aug 2009 23:12:18 +0200
 Iqigo Ortiz de Urbina tarom...@gmail.com wrote:

  On Fri, Aug 21, 2009 at 2:03 PM, obvvbooo obvvbooo
  obvvb...@googlemail.comwrote:
 
   Hi,
  
   Is there a way to use memory as a disk/partition? Such as mount it
   to /mnt/mem or such things. I can't find information of this in the
   man pages and after googled,
 
 
  Havent tried this before but you should be able to create your own
  ramdisks with rdconfig(8).
 
 
   I found rd for OpenBSD, which seems similar with md
   in FreeBSD. But still not useful. Anybody help?
  
   Thanks
  
  
  Just wondering, how come it is not useful? Is it because your fresh
  ramdisk is not immediately usable right after creating it?

 Wasn't this answered by the man page references?

 # grep ramdisk /etc/fstab
 swap /ramdisk mfs rw,nodev,nosuid,-s=220 0 0

 don't want to reboot?
 # mount /ramdisk

 don't want to have it on every boot? (for that there is no real reason,
 because it wont use ram until one puts actual data in there.)
 - add the noauto option.

 - Robert



Thanks, I'm checking on this now - Re: Use memory as disk

2009-08-22 Thread obvvbooo obvvbooo
Thanks, I'm checking on this now

On Fri, Aug 21, 2009 at 8:37 PM, Thomas Jeunet clep...@gmail.com wrote:

 On Fri, Aug 21, 2009 at 2:03 PM, obvvbooo
 obvvbbvvb...@googlemail.com wrote:
  Hi,
 
  Is there a way to use memory as a disk/partition? Such as mount it to
  /mnt/mem or such things. I can't find information of this in the man
 pages
  and after googled, I found rd for OpenBSD, which seems similar with
 md
  in FreeBSD. But still not useful. Anybody help?
 
  Thanks
 
 

 I guess you're looking for mfs. See man mfs



Thanks, I'm checking on this now - Re: Use memory as disk

2009-08-22 Thread obvvbooo obvvbooo
Thanks, I'm checking on this now

On Fri, Aug 21, 2009 at 10:54 PM, Chris Kuethe chris.kue...@gmail.comwrote:

 On Fri, Aug 21, 2009 at 6:41 AM, Edd Barrettvex...@gmail.com wrote:
  Hi,
 
  On Fri, Aug 21, 2009 at 1:03 PM, obvvbooo
  obvvbbvvb...@googlemail.com wrote:
  Hi,
 
  Is there a way to use memory as a disk/partition? Such as mount it to
  /mnt/mem or such things. I can't find information of this in the man
 pages
  and after googled, I found rd for OpenBSD, which seems similar with
 md
  in FreeBSD. But still not useful. Anybody help?
 
  man rd?

 man mfs

 --
 GDB has a 'break' feature; why doesn't it have 'fix' too?



Can ssd of ide interface be recognized?

2009-08-22 Thread obvvbooo obvvbooo
Hi,

I'm planning to use ssd of ide interface, do I need to concern about the
driver, or OpenBSD will just use the IDE driver?

If anybody has used ssd before, any suggestion, like recommending/rejecting
a product?

Thanks.



help lists

2009-08-22 Thread obvvbooo obvvbooo
help lists



Use memory as disk

2009-08-21 Thread obvvbooo obvvbooo
Hi,

Is there a way to use memory as a disk/partition? Such as mount it to
/mnt/mem or such things. I can't find information of this in the man pages
and after googled, I found rd for OpenBSD, which seems similar with md
in FreeBSD. But still not useful. Anybody help?

Thanks



Re: Use memory as disk

2009-08-21 Thread obvvbooo obvvbooo
Great, Thanks. This is just what I'm asking for.


Thanks.

2009/8/22 Robert rob...@openbsd.pap.st

 On Fri, 21 Aug 2009 23:12:18 +0200
 Iqigo Ortiz de Urbina tarom...@gmail.com wrote:

  On Fri, Aug 21, 2009 at 2:03 PM, obvvbooo obvvbooo
  obvvb...@googlemail.comwrote:
 
   Hi,
  
   Is there a way to use memory as a disk/partition? Such as mount it
   to /mnt/mem or such things. I can't find information of this in the
   man pages and after googled,
 
 
  Havent tried this before but you should be able to create your own
  ramdisks with rdconfig(8).
 
 
   I found rd for OpenBSD, which seems similar with md
   in FreeBSD. But still not useful. Anybody help?
  
   Thanks
  
  
  Just wondering, how come it is not useful? Is it because your fresh
  ramdisk is not immediately usable right after creating it?

 Wasn't this answered by the man page references?

 # grep ramdisk /etc/fstab
 swap /ramdisk mfs rw,nodev,nosuid,-s=220 0 0

 don't want to reboot?
 # mount /ramdisk

 don't want to have it on every boot? (for that there is no real reason,
 because it wont use ram until one puts actual data in there.)
 - add the noauto option.

 - Robert



Control noise of harddisk

2009-08-15 Thread obvvbooo obvvbooo
Hi,

BSD4.5 works well on my laptop, but I don't like the noise of the harddisk.
Is there a way to lower it? Such as slow the speed or sth? It's ok for me if
performance drop down to some extent, because I really don't like that
noise. I've tried to use command config -ef /bsd  - change wd to 0x8f9 or
0x9f9, but it seems nothing changed. After reboot, when I check the dmesg,
it still said wd work in PIO4, DMA 5. And because now I still can't give up
XP, when I comes into XP, the hard disk seems much more less noisy.

And it seems when I startx or start gnome, the noise come up much more
higher. Is this related or it's just my wrong feeling?

Any help is appreciated.



Kernel choice

2009-08-15 Thread obvvbooo obvvbooo
Hi,

My computer is Intel two core stuff..., and I used to compile kernel to use
original NTFS file system, and I'm using the kernel GENERIC, which is
without the .MP, Is it right? Will it have too much effect if I just keep
it the same as now?

Here's the information I found: When I boot computer, it will display two
cpu information; in dmesg, there's one cpu; and with the command sysctl, it
said ncput=1, do these matter ?

Thanks.
The following is my dmesg:
OpenBSD 4.5 (kernel) #0: Sun Aug  9 05:25:48 HKT 2009
r...@win7:/wk/other/build/kernel
cpu0: Genuine Intel(R) CPU T2130 @ 1.86GHz (GenuineIntel 686-class) 1.87
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,EST,TM2,xTPR
real mem  = 2137485312 (2038MB)
avail mem = 2058539008 (1963MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/26/08, BIOS32 rev. 0 @ 0xfd690,
SMBIOS rev. 2.4 @ 0xe0010 (67 entries)
bios0: vendor LENOVO version 7EETC9WW (2.19 ) date 02/26/2008
bios0: LENOVO 0657LN1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4)
PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 133MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus -1 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 98 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 92P1141 serial  1625 type LION oem SONY
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xea00! 0xcf000/0x1600 0xd0800/0x1000
0xe/0x1
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06150e2806000e28
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1867 MHz (1340 mV): speeds: 1867, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at inteldrm0
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: apic 1
int 17 (irq 11)
azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog
Devices AD1981HD
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 20
(irq 11)
pci1 at ppb0 bus 2
bge0 at pci1 dev 0 function 0 Broadcom BCM5751M rev 0x21, BCM5750 C1
(0x4201): apic 1 int 16 (irq 11), address 00:16:d3:be:27:c3
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb1 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 22
(irq 11)
pci2 at ppb1 bus 4
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 23
(irq 11)
pci3 at ppb2 bus 12
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 16
(irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 17
(irq 11)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 18
(irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 19
(irq 11)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 19
(irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci4 at ppb3 bus 21
cbb0 at pci4 dev 0 function 0 TI PCI1510 CardBus rev 0x00: apic 1 int 16
(irq 11)
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM
disabled
pciide0 at pci0 dev 31 function 2 Intel 82801GBM SATA rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: HITACHI HTS541612J9SA00
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: