euglug.org

[작성자:] admin

  • [Eug-lug] Borrow a Pyrometer?



    Mr OTue Jan 4 23:03:26 PST 2005

    I seemed to have missed something. I can't find an article on
    that site dated Dec 16, 2004. What was it for?
    
    
    --- horst <horsu at freeshell.org> wrote:
    
    >   Well ja, this one was -- but (www.silentpcreview.com) from
    > Thu, 16 
    > Dec 2004 09:52:15 -0800 wasn't.
    > Actually quiet interesting. Please, keep us posted when
    > published.
    >   + make sure Mr. O gets a copy :-), as for my next PC, noise
    > reduction 
    > will be an important issue.
    
    
    __________________________________________________
    Do You Yahoo!?
    Tired of spam?  Yahoo! Mail has the best spam protection around 
    http://mail.yahoo.com 
    
  • [Eug-lug] Borrow a Pyrometer?



    horstTue Jan 4 22:58:18 PST 2005

    > Date: Tue, 4 Jan 2005 08:26:05 -0800
    > From: Bob Miller <kbob at jogger-egg.com>
    > I was caught out by the Reply-To: field.  Sorry for wasting your time,
    > everybody.
      Well ja, this one was -- but (www.silentpcreview.com) from Thu, 16 
    Dec 2004 09:52:15 -0800 wasn't.
    Actually quiet interesting. Please, keep us posted when published.
      + make sure Mr. O gets a copy :-), as for my next PC, noise reduction 
    will be an important issue.
    
      - Horst,  think global -- buy local :-)
    
    
  • [Eug-lug] grrrr…. damn computers! current dmesg included!



    Linux Rocks!Tue Jan 4 22:30:40 PST 2005

    On Wednesday 05 January 2005 02:07 am, Mr O wrote:
    : Software RAID is more of a pain in the arse to get going on your
    : boot drives. I do as BobC does and have a seperate boot drive
    : for the OS and soft mirrored drives for the data. Odds are if
    : it's in the kernel all you have to do is build it in instead of
    : a module and DON"T FORGET TO ADD RAID SUPPORT (a mistake I've
    : done rebuilding kernels forcing to drop in and rebuild again),
    : and the drives should pick up on boot. I wouldn't mind taking a
    : look at it for you some time. I just need to be a little less
    : busy.
    
    Heh.. Thanks for the tip, yes, I did enable the raid support for raid-0, and 
    the devicemapper. I changed it to in the kernel (was module), and recompiled 
    my kernel/modules/initrd/lilo... heres my current dmesg:
    
    So, If you look at my dmesg below ... just below:
    libata version 1.10 loaded.
    You will see where the sis 180 controller should be displaying my hard 
    disks...
    
    as a reference, heres a link to a person with a different problem, but you can 
    see his drives are found.
    http://www.linuxquestions.org/archive/13/2004/03/4/161556
    
    
    Below is my dmesg, lspci, cat /proc/devices, lscpi -vv ...
    Linux version 2.6.10T1 (root at media) (gcc version 3.3.4) #3 SMP Tue Jan 4 
    23:41:38 PST 2005
    BIOS-provided physical RAM map:
     BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
     BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
     BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
     BIOS-e820: 0000000000100000 - 000000003bef0000 (usable)
     BIOS-e820: 000000003bef0000 - 000000003bef3000 (ACPI NVS)
     BIOS-e820: 000000003bef3000 - 000000003bf00000 (ACPI data)
     BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
    62MB HIGHMEM available.
    896MB LOWMEM available.
    found SMP MP-table at 000f57d0
    On node 0 totalpages: 245488
      DMA zone: 4096 pages, LIFO batch:1
      Normal zone: 225280 pages, LIFO batch:16
      HighMem zone: 16112 pages, LIFO batch:3
    DMI 2.3 present.
    ACPI: RSDP (v000 RS300                                 ) @ 0x000f7330
    ACPI: RSDT (v001 RS300  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x3bef3000
    ACPI: FADT (v001 RS300  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x3bef3040
    ACPI: MADT (v001 RS300  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x3bef6940
    ACPI: DSDT (v001 RS300  AWRDACPI 0x00001000 MSFT 0x0100000e) @ 0x00000000
    ACPI: Local APIC address 0xfee00000
    ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
    Processor #0 15:3 APIC version 20
    ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
    Processor #1 15:3 APIC version 20
    ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
    ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
    Using ACPI for processor (LAPIC) configuration information
    Intel MultiProcessor Specification v1.4
        Virtual Wire compatibility mode.
    OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
    I/O APIC #2 Version 17 at 0xFEC00000.
    Enabling APIC mode:  Flat.  Using 1 I/O APICs
    Processors: 2
    Built 1 zonelists
    Kernel command line: auto BOOT_IMAGE=Linux ro root=301
    mapped APIC to ffffd000 (fee00000)
    mapped IOAPIC to ffffc000 (fec00000)
    Initializing CPU#0
    CPU 0 irqstacks, hard=c053c000 soft=c0534000
    PID hash table entries: 4096 (order: 12, 65536 bytes)
    Detected 3208.400 MHz processor.
    Using tsc for high-res timesource
    Console: colour VGA+ 80x25
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    Memory: 968012k/981952k available (2939k kernel code, 13444k reserved, 1103k 
    data, 236k init, 64448k highmem)
    Checking if this processor honours the WP bit even in supervisor mode... Ok.
    Calibrating delay loop... 6356.99 BogoMIPS (lpj=3178496)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000
    CPU: After vendor identify, caps:  bfebfbff 00000000 00000000 00000000
    monitor/mwait feature present.
    using mwait in idle threads.
    CPU: Trace cache: 12K uops, L1 D cache: 16K
    CPU: L2 cache: 1024K
    CPU: Physical Processor ID: 0
    CPU: After all inits, caps:        bfebfbff 00000000 00000000 00000080
    Intel machine check architecture supported.
    Intel machine check reporting enabled on CPU#0.
    CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
    CPU0: Thermal monitoring enabled
    Enabling fast FPU save and restore... done.
    Enabling unmasked SIMD FPU exception support... done.
    Checking 'hlt' instruction... OK.
    CPU0: Intel(R) Pentium(R) 4 CPU 3.20GHz stepping 03
    per-CPU timeslice cutoff: 2925.88 usecs.
    task migration cache decay timeout: 3 msecs.
    Booting processor 1/1 eip 2000
    CPU 1 irqstacks, hard=c053d000 soft=c0535000
    Initializing CPU#1
    Calibrating delay loop... 6406.14 BogoMIPS (lpj=3203072)
    CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000
    CPU: After vendor identify, caps:  bfebfbff 00000000 00000000 00000000
    monitor/mwait feature present.
    CPU: Trace cache: 12K uops, L1 D cache: 16K
    CPU: L2 cache: 1024K
    CPU: Physical Processor ID: 0
    CPU: After all inits, caps:        bfebfbff 00000000 00000000 00000080
    Intel machine check architecture supported.
    Intel machine check reporting enabled on CPU#1.
    CPU1: Intel P4/Xeon Extended MCE MSRs (12) available
    CPU1: Thermal monitoring enabled
    CPU1: Intel(R) Pentium(R) 4 CPU 3.20GHz stepping 03
    Total of 2 processors activated (12763.13 BogoMIPS).
    ENABLING IO-APIC IRQs
    ..TIMER: vector=0x31 pin1=2 pin2=0
    checking TSC synchronization across 2 CPUs: passed.
    Brought up 2 CPUs
    CPU0:
     domain 0: span 03
      groups: 01 02
      domain 1: span 03
       groups: 03
    CPU1:
     domain 0: span 03
      groups: 02 01
      domain 1: span 03
       groups: 03
    NET: Registered protocol family 16
    PCI: PCI BIOS revision 2.10 entry at 0xfb6e0, last bus=2
    PCI: Using configuration type 1
    mtrr: v2.0 (20020519)
    Linux Plug and Play Support v0.97 (c) Adam Belay
    PnPBIOS: Scanning system for PnP BIOS support...
    PnPBIOS: Found PnP BIOS installation structure at 0xc00fc0f0
    PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xc120, dseg 0xf0000
    PnPBIOS: 13 nodes reported by PnP BIOS; 13 recorded by driver
    SCSI subsystem initialized
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    PCI: Probing PCI hardware
    PCI: Probing PCI hardware (bus 00)
    PCI: Ignoring BAR0-3 of IDE controller 0000:00:14.1
    PCI: Transparent bridge - 0000:00:14.4
    PCI: Using IRQ router default [1002/5833] at 0000:00:00.0
    PCI->APIC IRQ transform: (B0,I13,P0) -> 19
    PCI->APIC IRQ transform: (B0,I19,P0) -> 19
    PCI->APIC IRQ transform: (B0,I19,P0) -> 19
    PCI->APIC IRQ transform: (B0,I19,P0) -> 19
    PCI->APIC IRQ transform: (B0,I20,P0) -> 18
    PCI->APIC IRQ transform: (B0,I20,P1) -> 18
    PCI->APIC IRQ transform: (B1,I5,P0) -> 16
    PCI->APIC IRQ transform: (B2,I3,P0) -> 16
    PCI->APIC IRQ transform: (B2,I3,P0) -> 16
    PCI->APIC IRQ transform: (B2,I4,P0) -> 17
    PCI->APIC IRQ transform: (B2,I9,P0) -> 17
    PCI->APIC IRQ transform: (B2,I10,P0) -> 18
    Machine check exception polling timer started.
    audit: initializing netlink socket (disabled)
    audit(1104882289.669:0): initialized
    highmem bounce pool size: 64 pages
    Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
    Initializing Cryptographic API
    isapnp: Scanning for PnP cards...
    isapnp: No Plug & Play device found
    lp: driver loaded but no devices found
    Linux agpgart interface v0.100 (c) Dave Jones
    serio: i8042 AUX port at 0x60,0x64 irq 12
    serio: i8042 KBD port at 0x60,0x64 irq 1
    Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
    parport: PnPBIOS parport detected.
    parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP(,...)]
    lp0: using parport0 (interrupt-driven).
    io scheduler noop registered
    io scheduler anticipatory registered
    io scheduler deadline registered
    io scheduler cfq registered
    elevator: using anticipatory as default io scheduler
    FDC 0 is a post-1991 82077
    Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    Probing IDE interface ide0...
    hda: Maxtor 6Y160P0, ATA DISK drive
    Probing IDE interface ide1...
    hdc: LITE-ON DVDRW LDW-851S, ATAPI CD/DVD-ROM drive
    Probing IDE interface ide2...
    ide2: Wait for ready failed before probe !
    Probing IDE interface ide3...
    ide3: Wait for ready failed before probe !
    Probing IDE interface ide4...
    ide4: Wait for ready failed before probe !
    Probing IDE interface ide5...
    ide5: Wait for ready failed before probe !
    ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    ide1 at 0x170-0x177,0x376 on irq 15
    hda: max request size: 1024KiB
    hda: 320173056 sectors (163928 MB) w/7936KiB Cache, CHS=19929/255/63
    hda: cache flushes supported
     hda: hda1
    hdc: ATAPI 40X DVD-ROM CD-R/RW drive, 2048kB Cache
    Uniform CD-ROM driver Revision: 3.20
    libata version 1.10 loaded.
    ata1: SATA max UDMA/133 cmd 0x9400 ctl 0x9802 bmdma 0xA400 irq 18
    ata2: SATA max UDMA/133 cmd 0x9C00 ctl 0xA002 bmdma 0xA408 irq 18
    ata1: no device found (phy stat 00000000)
    scsi0 : sata_sis
    ata2: no device found (phy stat 00000000)
    scsi1 : sata_sis
    ohci1394: $Rev: 1223 $ Ben Collins <bcollins at debian.org>
    ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[17]  MMIO=[e0022000-e00227ff]  
    Max Packet=[2048]
    ieee1394: raw1394: /dev/raw1394 device initialized
    ehci_hcd 0000:00:13.2: PCI device 1002:4345 (ATI Technologies Inc)
    ehci_hcd 0000:00:13.2: irq 19, pci mem 0xe1105000
    ehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number 1
    ehci_hcd 0000:00:13.2: USB 2.0 initialized, EHCI 1.00, driver 26 Oct 2004
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 6 ports detected
    USB Universal Host Controller Interface driver v2.2
    usbcore: registered new driver usblp
    drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
    Initializing USB Mass Storage driver...
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.0:USB HID core driver
    mice: PS/2 mouse device common for all mice
    input: AT Translated Set 2 keyboard on isa0060/serio0
    input: ImExPS/2 Generic Explorer Mouse on isa0060/serio1
    md: raid0 personality registered as nr 2
    md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
    device-mapper: 4.3.0-ioctl (2004-09-30) initialised: dm-devel at redhat.com
    Advanced Linux Sound Architecture Driver Version 1.0.6 (Sun Aug 15 07:17:53 
    2004 UTC).
    ALSA device list:
      No soundcards found.
    NET: Registered protocol family 2
    IP: routing cache hash table of 8192 buckets, 64Kbytes
    TCP: Hash tables configured (established 262144 bind 65536)
    ip_conntrack version 2.1 (7671 buckets, 61368 max) - 304 bytes per conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    ipt_recent v0.3.1: Stephen Frost <sfrost at snowman.net>.  http://snowman.net/
    projects/ipt_recent/
    arp_tables: (C) 2002 David S. Miller
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    Starting balanced_irq
    md: Autodetecting RAID arrays.
    md: autorun ...
    md: ... autorun DONE.
    ReiserFS: hda1: found reiserfs format "3.6" with standard journal
    ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00e01800006091f6]
    ReiserFS: hda1: using ordered data mode
    ReiserFS: hda1: journal params: device hda1, size 8192, journal first block 
    18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
    ReiserFS: hda1: checking transaction log (hda1)
    ReiserFS: hda1: Using r5 hash to sort names
    VFS: Mounted root (reiserfs filesystem) readonly.
    Freeing unused kernel memory: 236k freed
    eth0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
          PrefPort:A  RlmtMode:Check Link State
    eth0: network connection up using port A
        speed:           100
        autonegotiation: yes
        duplex mode:     full
        flowctrl:        symmetric
        irq moderation:  disabled
        scatter-gather:  enabled
    
    
    lspci, the last line is the sis 180
    
    00:00.0 Host bridge: ATI Technologies Inc: Unknown device 5833 (rev 02)
    00:01.0 PCI bridge: ATI Technologies Inc: Unknown device 5838
    00:0d.0 Ethernet controller: Marvell Yukon Gigabit Ethernet 10/100/1000Base-T 
    Adapter (rev 13)
    00:13.0 USB Controller: ATI Technologies Inc: Unknown device 4347 (rev 01)
    00:13.1 USB Controller: ATI Technologies Inc: Unknown device 4348 (rev 01)
    00:13.2 USB Controller: ATI Technologies Inc: Unknown device 4345 (rev 01)
    00:14.0 SMBus: ATI Technologies Inc ATI SMBus (rev 18)
    00:14.1 IDE interface: ATI Technologies Inc: Unknown device 4349
    00:14.3 ISA bridge: ATI Technologies Inc: Unknown device 434c
    00:14.4 PCI bridge: ATI Technologies Inc: Unknown device 4342
    00:14.5 Multimedia audio controller: ATI Technologies Inc SoundMAX Integrated 
    Digital Audio
    01:05.0 VGA compatible controller: ATI Technologies Inc: Unknown device 5834
    02:03.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture 
    (rev 02)
    02:03.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 
    02)
    02:04.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless 
    Interface
    02:09.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller 
    (rev 80)
    02:0a.0 RAID bus controller: Silicon Integrated Systems [SiS]: Unknown device 
    0180
    
    cat /proc/interrupts
               CPU0       CPU1       
      0:    1919121          0    IO-APIC-edge  timer
      1:          9          0    IO-APIC-edge  i8042
      2:          0          0          XT-PIC  cascade
      7:          0          0    IO-APIC-edge  parport0
     12:         59          0    IO-APIC-edge  i8042
     14:      18343          1    IO-APIC-edge  ide0
     15:         13          0    IO-APIC-edge  ide1
     17:          2          0   IO-APIC-level  ohci1394
     18:          0          0   IO-APIC-level  libata
     19:      52964          0   IO-APIC-level  ehci_hcd, SysKonnect SK-98xx
    NMI:          0          0 
    LOC:    1920947    1944807 
    ERR:          0
    MIS:          0
    
    
    
    lspci -vv (most was snipped out, i just included the sis 180 part.
    
    02:0a.0 RAID bus controller: Silicon Integrated Systems [SiS]: Unknown device 
    0180 (prog-if 85)
    	Subsystem: Asustek Computer, Inc.: Unknown device 8112
    	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
    SERR- FastB2B-
    	Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- 
    <MAbort- >SERR- <PERR-
    	Latency: 128
    	Interrupt: pin A routed to IRQ 18
    	Region 0: I/O ports at 9400 [size=8]
    	Region 1: I/O ports at 9800 [size=4]
    	Region 2: I/O ports at 9c00 [size=8]
    	Region 3: I/O ports at a000 [size=4]
    	Region 4: I/O ports at a400 [size=16]
    	Region 5: I/O ports at <unassigned>
    	Expansion ROM at <unassigned> [disabled] [size=64K]
    
    cat /proc/devices
    
    Character devices:
      1 mem
      2 pty
      3 ttyp
      4 /dev/vc/0
      4 tty
      4 ttyS
      5 /dev/tty
      5 /dev/console
      5 /dev/ptmx
      6 lp
      7 vcs
     10 misc
     13 input
     14 sound
     29 fb
    116 alsa
    128 ptm
    136 pts
    171 ieee1394
    180 usb
    
    Block devices:
      2 fd
      3 ide0
      8 sd
      9 md
     22 ide1
     65 sd
     66 sd
     67 sd
     68 sd
     69 sd
     70 sd
     71 sd
    128 sd
    129 sd
    130 sd
    131 sd
    132 sd
    133 sd
    134 sd
    135 sd
    253 device-mapper
    254 mdp
    
    anyway, if anyone needs anything i havnt included, let me know...
    
    Jamie
    
    :
    : --- Linux Rocks! <linux at rocksolidnetworks.com> wrote:
    : > On Tuesday 04 January 2005 05:23 pm, larry price wrote:
    : > : On Tue, 4 Jan 2005 14:42:23 -0500, Linux Rocks!
    : > :
    : > : <linux at rocksolidnetworks.com> wrote:
    : > : > This is my hardware:
    : > : >
    : > : > ASUS P4R800-V Deluxe motherboard.
    : > : > onboard SATA/IDE Raid controller (SIS 180)
    : > : >
    : > : >
    : > : > I have slack installed on a 160 GB disk, on the other IDE
    : >
    : > controller, and
    : >
    : > : > have built many kernels, and tried many stock kernels
    : >
    : > (including
    : >
    : > : > ataraid.i). Ive compiled sata_sis (the driver for sis 180)
    : >
    : > modules, and
    : >
    : > : > in the kernel. Ive compiled libata into the kernel, and
    : >
    : > modules.
    : >
    : > : > Ive tried dmraid (and device mapper). I get "No Sofware
    : >
    : > RAID disks"
    : >
    : > : > message. I dont even know how these drives will appear
    : >
    : > exactly, but none
    : >
    : > : > of the kernels Ive used, or modules Ive loaded have shown
    : >
    : > the 2 raid
    : >
    : > : > disks in dmesg (but it does show the controller loading,
    : >
    : > and 2 controller
    : >
    : > : > channels.)
    : > : >
    : > : > So, Im also confused about what is software raid,
    : >
    : > soft-hardware raid...
    : >
    : > : > It sholdnt be that hard to setup!! but yet it is.
    : > :
    : > : usually to setup a hardware raid you'll need to run the
    : >
    : > manufacturers
    : >
    : > : provided tool to register the disks and format the RAID
    : >
    : > partitions,
    : >
    : > : once you've done that the disks should show up if you have
    : >
    : > working
    : >
    : > : drivers.
    : >
    : > yeah, I did that in xp, and it was working.
    : >
    : > Part of the issue is that its not a true hardware controller.
    : > Nearest I can
    : > tell, its what they call fakeraid. from what Ive read, it
    : > should be able to
    : > be used as a hardware raid with the sata_sis driver, but I
    : > havnt seen that
    : > yet. Another part of the problem is that the controller runs
    : > SATA, and IDE,
    : > and most ifnot all the docs ive read dont talk about setting
    : > up ide drives.
    : >
    : >
    : > I can also set it up as just software raid (bypassing the raid
    : > bios i guess).
    : > but i havnt see that working under linux yet either.
    : >
    : > also, I should mention, Ive tried removing the raid (in the
    : > raid bios), to use
    : > them as regular disks (which btw is mentioned in that sis SATA
    : > RAID manual),
    : > and I still cant see the disks...
    : >
    : > Im not sure where they will appear, some docs I read mention
    : > /dev/ataraid,
    : > some /dev/md, or even /dev/hde, /dev/hdg. but ive seen none of
    : > that(although
    : > I have seen md, and ataraid in my dev dir...)
    : >
    : > : Software RAID uses the host computer to manage all the
    : >
    : > parity checking etc.
    : >
    : > : But since you have the hardware ...
    : >
    : > yeah, from what Ive read, the linux software raid works better
    : > than these
    : > types of raid controllers... Right now, id settle for working!
    : > but i would
    : > like to compare and see for myself.
    : >
    : > If I can figure out how to access the disks at all, it will be
    : > easier!
    :
    : __________________________________
    : Do you Yahoo!?
    : Yahoo! Mail - Helps protect you from nasty viruses.
    : http://promotions.yahoo.com/new_mail
    : _______________________________________________
    : EUGLUG mailing list
    : euglug at euglug.org
    : http://www.euglug.org/mailman/listinfo/euglug
    
    -- 
    Let's call it an accidental feature.
    	-- Larry Wall
    
    
  • [Eug-lug] Good/cool new(ish) Linux Apps/Utils



    larry priceTue Jan 4 20:21:50 PST 2005

    On Tue, 21 Dec 2004 22:11:01 -0800 (PST), Jason <chanjb at yahoo.com> wrote:
    > Hey list:
    > 
    > I'm switching my work lappy back to Linux after a
    > 10-month odyssey in XP-land. I haven't had my nose in
    > too much of the recent tools being released, so I was
    > wondering what folks on the list thought were the most
    > useful tools/apps/utils to make news in the last year
    > or so.
    
    It's not exactly new, but I've found myself using ImageMagick a lot lately
    also bittorrent (mostly for fetching iso's) (got the latest gnoppix)
    
    On the prgramming level I've been using Reportlab a fair bit.
    (a python toolkit for generating pdf from a script)
    
    The last two I'd mention in this context aren't exactly applications,
    they're websites that act like applications.
    
    First off del.icio.us is a social bookmarks manager that works,
    my links are available at http://del.icio.us/laprice
    
    Second Flickr is a photo sharing/social network site; I've got a bunch
    of cool photos up at http://flickr.com/photos/laprice/
    
  • [Eug-lug] To Horst-Q/colours



    T. Joseph CARTERTue Jan 4 20:07:47 PST 2005

    On Tue, Jan 04, 2005 at 10:01:03AM -0500, larry price wrote:
    > the final effect of all this is to make a copy of every symbolic link
    > in one directory in another directory. while writing this post, I
    > realized it woul be possible to simplify the regex even further by
    > using an invocation of ln that only used the target
    
    You do know about the Debian tool readlink, right?  =)
    
  • [Eug-lug] mounting FFS w/ softupdates from Knoppix/Gnoppix



    larry priceTue Jan 4 19:07:11 PST 2005

    On Tue, 4 Jan 2005 16:43:32 -0800, Jacob Meuser <jakemsr at jakemsr.com> wrote:
    > On Tue, Jan 04, 2005 at 05:47:10PM -0500, larry price wrote:
    > > My Knotty problem for the week, Has anyone here done this? It seems
    > > like it should be possible, but the mount_ufs does not seem to work on
    > > disk slices for which softupdates are turned on.
    > 
    > are you sure the problem isn't UFS2 vs UFS?
    > 
    > softupdates is a mount option.  it shouldn't change the filesystem.
    > 
    
    It's most probably ufs2 ( I'd check it right now but I'm writing this
    email from a knoppix system that's on the same machine as the target,
    which is part of why I'm tryingto solve this problem.)
    
    In fact I'm almost certain that it is UFS2 because 
    """
    root at ttyp3[knoppix]# mount -t ufs /dev/hdb2 /mnt/
    mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
           or too many mounted file systems
    """
     is there an updated version of linux mount that can handle ufs2
    
  • [Eug-lug] mounting FFS w/ softupdates from Knoppix/Gnoppix



    Jacob MeuserTue Jan 4 16:43:32 PST 2005

    On Tue, Jan 04, 2005 at 05:47:10PM -0500, larry price wrote:
    > My Knotty problem for the week, Has anyone here done this? It seems
    > like it should be possible, but the mount_ufs does not seem to work on
    > disk slices for which softupdates are turned on.
    
    are you sure the problem isn't UFS2 vs UFS?
    
    softupdates is a mount option.  it shouldn't change the filesystem.
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] To Horst-Q/colours



    T. Joseph CARTERTue Jan 4 15:53:08 PST 2005

    On Tue, Jan 04, 2005 at 12:07:33PM +0000, walter fry wrote:
    > I have pencil on paper copied this command string and thought it wiser to 
    > ask whether this might be destructive if I entered this as is...is it ok to 
    > use?
    
    Let me demonstrate it with real directories...
    
    The first part:
    
    knghtbrd at yumi:~$ find /usr/local/lib -type l -exec ls -l {} \;
    lrwxr-xr-x    1 root     wheel          23 Dec 14 07:11
    /usr/local/lib/libpisock++.0.dylib -> libpisock++.0.0.0.dylib
    lrwxr-xr-x    1 root     wheel          23 Dec 14 07:11
    /usr/local/lib/libpisock++.dylib -> libpisock++.0.0.0.dylib
    lrwxr-xr-x    1 root     wheel          21 Dec 14 07:10
    /usr/local/lib/libpisock.9.dylib -> libpisock.9.0.0.dylib
    lrwxr-xr-x    1 root     wheel          21 Dec 14 07:10
    /usr/local/lib/libpisock.dylib -> libpisock.9.0.0.dylib
    lrwxr-xr-x    1 root     wheel          21 Dec 14 07:10
    /usr/local/lib/libpisync.0.dylib -> libpisync.0.0.2.dylib
    lrwxr-xr-x    1 root     wheel          21 Dec 14 07:10
    /usr/local/lib/libpisync.dylib -> libpisync.0.0.2.dylib
    
    Okay, so what that does is do ls -l of all symlinks in the target
    directory, /usr/local/lib in this case (chosen because it doesn't have
    much in it..)  If I press up-arrow to re-enter the original line (it works
    like the doskey command), add a | and a \ and hit enter, I can enter a
    longer line without wrapping off the edge of the terminal.  I'll put the
    sed part on the second line:
    
    knghtbrd at yumi:~$ find /usr/local/lib -type l -exec ls -l {} \; | \                                 
    > sed 's/^.* \([^ ].*\) -> \(.*\)/ln -s \2 \/usr\/foo\/\1'/
    ln -s libpisock++.0.0.0.dylib /usr/foo//usr/local/lib/libpisock++.0.dylib
    ln -s libpisock++.0.0.0.dylib /usr/foo//usr/local/lib/libpisock++.dylib
    ln -s libpisock.9.0.0.dylib /usr/foo//usr/local/lib/libpisock.9.dylib
    ln -s libpisock.9.0.0.dylib /usr/foo//usr/local/lib/libpisock.dylib
    ln -s libpisync.0.0.2.dylib /usr/foo//usr/local/lib/libpisync.0.dylib
    ln -s libpisync.0.0.2.dylib /usr/foo//usr/local/lib/libpisync.dylib
    
    (note you don't type the > on the second line, that's the shell's way of
    telling you that it's waiting for you to finish the command on the second
    line..)  If you look at the output, you'll see something clever.  That
    ugly sed line turned the ls output into a set of ln commands.  UNIX has a
    thing called a symbolic link--it's a sort of alias for files.  ln -s is
    the command to create them.  You tell it what you want the link to point
    to and then where you want the link.  The syntax is ln -s <dest> <source>,
    and <dest> is either relative to <source> or specifies a full path
    starting with /.
    
    What's disgusting about it is the sed line itself!  Regular expressions
    are nasty (but useful) little bits of what look like line noise that
    specify a pattern to look for.  Above there is the s/// command to sed,
    which takes a regular expression after the first / and a replacement
    pattern after the second /.  The third / ends the replacement, and there
    can be a couple of flags after it.  In the replacement pattern, \1 and \2
    match subpatterns in order of appearance in the first part of the command
    (using parentheses makes a subpattern).  These regular expressions are
    used by less and grep for searching, by sed, ed, and vi for lots of
    things, and they're what makes perl (the sysadmin's swiss army chainsaw)
    do the things it can do.  They're a mixed blessing, and a good example of
    why UNIX is considered unfriendly.
    
    Anyway, what the full command Larry described does, with the missing third
    / added, is this:
    
    - find all symlinks in /usr/local/lib
    - ls -l them so we can see what they are and where they point to
    - use a very clever search-and-replace to turn them into ln commands
    - write the ln commands to a file named tmp
    - evaluate tmp as if it were a set of commands entered at the prompt
    - delete the file tmp
    
    
    Here's the basic rules of regular expressions
    
    	.	matches one character
    	?	the thing before it may or may not be there
    	*	matches any number of the thing before it (including 0)
    	^	matches the start of a line
    	$	matches the end of a line
    	[]	matches any one of what's inside it
    	()	declares a subpattern
    	+	(not in sed) matches one or more of the thing before it
    	|	(not in sed) logical or
    	\	escapes next character (note multiple escapes!)
    
    It's not like wildcard matching for filenames.  In wildcard filenames, all
    JPEG images might be "*.jpg", but in regex speak it would be ".*\.jpg".
    That regular expression reads literally "match any number of any character
    followed by a literal . and the letters jpg".
    
    I thought + should be in sed, and it might be in GNU sed, but it's not
    portable apparently.
    
    [] is kinda cool.  [abc] will match any of a, b, or c.  [0-9] will match
    any digit, [-0-9] shows how to include "-" in the match (it must be
    first), and [^0-9] means "anything but digits".  Want to match a price in
    dollars and cents?  '\$ *[0-9]*(\.[0-9][0-9])?'  That's "A literal dollar
    sign, followed (maybe) by spaces, a number of digits, possibly followed by
    a literal . and two more digits".
    
    You might have noticed I used single quotes around the dollars expression.
    You'll want to do the same until you get used to it a bit more (and often
    even then!)  The reason is that many of the same characters that are
    special to regular expressions are special to shells.  * and ? for sure,
    but also (), [], {}, \, and | are all special characters that the shell
    might expand.  Any of these can be escaped using \, but then if you want a
    \ to escape something in the expression you will need to escape your
    escape, which is called "double escaping", "double quoting", or just
    "yuck!" ;)
    
    Generally, you feed sed the -e argument before an expression, but if there
    is only one you can get away with not doing it, as Larry and I both did in
    this case.  Technically, the s command expression can be followed by any
    character, not just /, but we often write it as s/// so people know what
    we're talking about.  You can use s,,, or s}}} or any character instead of
    / as long as you use the same one.  Often when people are using s/// on
    filenames, they'll use something other than / so they don't have to type
    \/ every time they want a / for a filename.  Also, I said something before
    about flags.  The one you want to know is g, for global.  s/// will match
    one pattern and replace it.  s///g will match as many patterns as can be
    matched and replace them all.
    
    You CAN play with sed's s/// command to see how to use it safely using
    echo and cat, as long as you don't write the output using > over any file.
    echo "somestring" | sed -e 's/es/e s/' for example, is completely harmless
    and shows the trivial case of using sed.  Try it out, I'm sure you'll get
    the hang of it.  =)
    
  • [Eug-lug] grrrr…. damn computers!



    Bob CrandellTue Jan 4 15:47:55 PST 2005

    Linux Rocks! (linux at rocksolidnetworks.com) wrote:
    >
    > On Tuesday 04 January 2005 05:23 pm, larry price wrote:
    > : On Tue, 4 Jan 2005 14:42:23 -0500, Linux Rocks!
    > :
    > : <linux at rocksolidnetworks.com> wrote:
    > : > This is my hardware:
    > : >
    > : > ASUS P4R800-V Deluxe motherboard.
    > : > onboard SATA/IDE Raid controller (SIS 180)
    > : >
    > : >
    > : > I have slack installed on a 160 GB disk, on the other IDE controller, and
    > : > have built many kernels, and tried many stock kernels (including
    > : > ataraid.i). Ive compiled sata_sis (the driver for sis 180) modules, and
    > : > in the kernel. Ive compiled libata into the kernel, and modules.
    > : > Ive tried dmraid (and device mapper). I get "No Sofware RAID disks"
    > : > message. I dont even know how these drives will appear exactly, but none
    > : > of the kernels Ive used, or modules Ive loaded have shown the 2 raid
    > : > disks in dmesg (but it does show the controller loading, and 2 controller
    > : > channels.)
    > : >
    > : > So, Im also confused about what is software raid, soft-hardware raid...
    > : > It sholdnt be that hard to setup!! but yet it is.
    > :
    > : usually to setup a hardware raid you'll need to run the manufacturers
    > : provided tool to register the disks and format the RAID partitions,
    > : once you've done that the disks should show up if you have working
    > : drivers.
    >
    > yeah, I did that in xp, and it was working.
    >
    > Part of the issue is that its not a true hardware controller. Nearest I can
    > tell, its what they call fakeraid. from what Ive read, it should be able to
    > be used as a hardware raid with the sata_sis driver, but I havnt seen that
    > yet. Another part of the problem is that the controller runs SATA, and IDE,
    > and most ifnot all the docs ive read dont talk about setting up ide drives.
    >
    >
    > I can also set it up as just software raid (bypassing the raid bios i guess).
    > but i havnt see that working under linux yet either.
    >
    > also, I should mention, Ive tried removing the raid (in the raid bios), to use
    > them as regular disks (which btw is mentioned in that sis SATA RAID manual),
    > and I still cant see the disks...
    >
    > Im not sure where they will appear, some docs I read mention /dev/ataraid,
    > some /dev/md, or even /dev/hde, /dev/hdg. but ive seen none of that(although
    > I have seen md, and ataraid in my dev dir...)
    >
    > :
    > : Software RAID uses the host computer to manage all the parity checking etc.
    > : But since you have the hardware ...
    >
    > yeah, from what Ive read, the linux software raid works better than these
    > types of raid controllers... Right now, id settle for working! but i would
    > like to compare and see for myself.
    >
    > If I can figure out how to access the disks at all, it will be easier!
    >
    > :
    > : you might want to check this manual
    > : http://www.sis.com/support/faq/SATA_RAID_manual.pdf
    > yep, read that. I have it on the computer for quick reference.... I aslo have
    > all the other pdf's from sis, and asus related to this board.
    >
    >
    > : _______________________________________________
    If that's the same board I fought with for a client, the raid controller is a
    newer Promise that isn't in the kernel yet.  All I could ever see were the
    SATA drives as /dev/sd*.  The IDE drives never showed up in the list.
    
    The board was highly unstable until the latest BIOS update.
    
    Sorry.
    
    --
    Bob Crandell, CLS, CNS
    Assured Computing, Inc.
    When you need to be sure.
    http://www.assuredcomp.com/
    P.O. Box 40814
    Eugene, OR 97404
    Voice - 541-868-0331
    FAX - 541-463-1627
    
    
    
  • [Eug-lug] mounting FFS w/ softupdates from Knoppix/Gnoppix



    Allen BrownTue Jan 4 15:41:41 PST 2005

    larry price wrote:
    > 
    > My Knotty problem for the week, Has anyone here done this?
    > It seems like it should be possible, but the mount_ufs does
    > not seem to work on disk slices for which softupdates are
    > turned on.
    > 
    > Not critical as I can create an ext2 partition and share it
    > between the two OS but I'd like to minimize the number of
    > different incompatible types I need, and I'd like to access
    > my archives from the guest OS
    
    FFS?  Amiga fast file system?
    
    mount_ufs?  My system doesn't have that command.  What are
    you running?
    -- 
    Allen Brown
      work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
            allen_brown at agilent.com	            abrown at peak.org
      When I am abroad I always make it a rule never to criticize or
      attack the Government of my country. I make up for lost time
      when I am at home. --- Sir Winston Churchill