Linux-Misc Digest #390, Volume #27               Sun, 18 Mar 01 10:13:03 EST

Contents:
  error in total memory? (Robert Kenny)
  Text files -- Many into One -- How?? ("James E. Bradley")
  Re: partition blues (Dances With Crows)
  Re: partition blues (Rod Smith)
  Re: Text files -- Many into One -- How?? (Dances With Crows)
  Re: Text files -- Many into One -- How?? (Sean)
  Re: Text files -- Many into One -- How?? ("The Spook")
  korganizer blues (Andrew Rounds)
  Re: Trouble getting nntp running locally (David Hart)
  Re: error in total memory? ("Peter T. Breuer")
  Re: Text files -- Many into One -- How?? ("Peter T. Breuer")
  Re: Backing up files with spaces in name ("David Quinn")
  Visioneer 4400 USB Scanner (Young4ert)

----------------------------------------------------------------------------

From: Robert Kenny <[EMAIL PROTECTED]>
Subject: error in total memory?
Date: Sun, 18 Mar 2001 22:17:42 +0800

I've recently added a second 128Mb to my dual-boot Redhat 6.2/Win 98
machine, and the BIOS's POST reports 262144K fine, as does the memtest86
program when I boot it from a floppy [though it consistently locks up
on test #6, and took >24hrs to run all other tests].  However,
/proc/meminfo gives the following. 

        total:    used:    free:  shared: buffers:  cached: 
Mem:  263819264 129232896 134586368 85909504 11259904 54804480 
Swap: 73986048        0 73986048 
MemTotal:    257636 kB 
MemFree:     131432 kB 
MemShared:    83896 kB 
Buffers:      10996 kB 
Cached:       53520 kB 
BigTotal:         0 kB 
BigFree:          0 kB 
SwapTotal:    72252 kB 
SwapFree:     72252 kB 

Where is my other 4508 kB?  It doesn't seem much in Linux, but in
Win[lose?]98, where reports on total memory are inconsistent, something
is eating into my 640K of total conventional memory (and M$ Diagnostics
says
thats not where the ROM is).  There are 2 SCSI HDs: LILO and Linux on
sda, and Win98 on sdb.  Loading Win98 into the GUI via floppy and via
LILO give different [sets of inconsistent] results for total memory, as
does
loading "Command Prompt Only", and my (Win98) virus scanner says Win98's
drive and memory is clean.  Maybe: 

1) I have an undetectable virus on sdb (fault of virus scanner, doesn't
explain linux memory though...) 
2) I have a virus in the LILO boot sector.  My virus scanner doesn't
seem to scan this, or indeed any non-DOS disks - what would?  /sbin/lilo
-q -v still gives correct info. 
3) faulty DIMMs, or incompatible with m/b & BIOS (ASUS P2B-LS AGP and
Award v4.51PG), but still detectable/testable by memtest. 
4) Some harddisk- or SCSI-related memory is allocated by the BIOS(es),
size and location somehow dependent on which drives are accessed at
boot.  I've vaguely heard of things like this, but have no idea how to
"fix" it,
if possible. 

Lots of things I haven't tried testing, and various data not included
here, I don't really know where to start.  I don't know so much about
Linux, LILO or memtest; any suggestions please! 
  

dmesg output: 

Linux version 2.2.14-12 ([EMAIL PROTECTED]) (gcc version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Tue Apr 25 12:31:52
EDT 2000 
Detected 551255157 Hz processor. 
Console: colour VGA+ 80x25 
Calibrating delay loop... 550.50 BogoMIPS 
Memory: 257144k/262080k available (1080k kernel code, 412k reserved,
2952k data, 64k init, 0k bigmem) 
Dentry hash table entries: 262144 (order 9, 2048k) 
Buffer cache hash table entries: 262144 (order 8, 1024k) 
Page cache hash table entries: 65536 (order 6, 256k) 
VFS: Diskquotas version dquot_6.4.0 initialized 
Pentium-III serial number disabled. 
CPU: Intel Pentium III (Katmai) stepping 03 
Checking 386/387 coupling... OK, FPU using exception 16 error reporting. 
Checking 'hlt' instruction... OK. 
Checking for popad bug... OK. 
POSIX conformance testing by UNIFIX 
mtrr: v1.35a (19990819) Richard Gooch ([EMAIL PROTECTED]) 
PCI: PCI BIOS revision 2.10 entry at 0xf0720 
PCI: Using configuration type 1 
PCI: Probing PCI hardware 
Linux NET4.0 for Linux 2.2 
Based upon Swansea University Computer Society NET3.039 
NET4: Unix domain sockets 1.0 for Linux NET4.0. 
NET4: Linux TCP/IP 1.0 for NET4.0 
IP Protocols: ICMP, UDP, TCP, IGMP 
TCP: Hash tables configured (ehash 262144 bhash 65536) 
Initializing RT netlink socket 
Starting kswapd v 1.5 
Detected PS/2 Mouse Port. 
Serial driver version 4.27 with MANY_PORTS MULTIPORT SHARE_IRQ enabled 
ttyS00 at 0x03f8 (irq = 4) is a 16550A 
ttyS01 at 0x02f8 (irq = 3) is a 16550A 
pty: 256 Unix98 ptys configured 
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.9) 
Real Time Clock Driver v1.09 
RAM disk driver initialized:  16 RAM disks of 4096K size 
PIIX4: IDE controller on PCI bus 00 dev 21 
PIIX4: not 100% native mode: will probe irqs later 
    ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:pio 
hda: CREATIVEDVD-ROM DVD2240E 09/27/97, ATAPI CDROM drive 
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 
hda: ATAPI 24X DVD-ROM drive, 256kB Cache 
Uniform CDROM driver Revision: 2.56 
Floppy drive(s): fd0 is 1.44M 
FDC 0 is a post-1991 82077 
md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12 
raid5: measuring checksumming speed 
raid5: MMX detected, trying high-speed MMX checksum routines 
   pII_mmx   :  1225.677 MB/sec 
   p5_mmx    :  1287.399 MB/sec 
   8regs     :   946.023 MB/sec 
   32regs    :   484.632 MB/sec 
using fastest function: p5_mmx (1287.399 MB/sec) 
scsi : 0 hosts. 
scsi : detected total. 
md.c: sizeof(mdp_super_t) = 4096 
Partition check: 
RAMDISK: Compressed image found at block 0 
autodetecting RAID arrays 
autorun ... 
... autorun DONE. 
EXT2-fs warning: checktime reached, running e2fsck is recommended 
VFS: Mounted root (ext2 filesystem). 
(scsi0) <Adaptec AIC-7890/1 Ultra2 SCSI host adapter> found at PCI 0/6/0 
(scsi0) Wide Channel, SCSI ID=7, 32/255 SCBs 
(scsi0) Downloading sequencer code... 396 instructions downloaded 
enable_irq() unbalanced from d001b8e2 
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.28/3.2.4 
       <Adaptec AIC-7890/1 Ultra2 SCSI host adapter> 
scsi : 1 host. 
(scsi0:0:0:0) Synchronous at 20.0 Mbyte/sec, offset 15. 
  Vendor: QUANTUM   Model: FIREBALL ST4.3S   Rev: 0F0C 
  Type:   Direct-Access                      ANSI SCSI revision: 02 
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0 
(scsi0:0:1:0) Synchronous at 40.0 Mbyte/sec, offset 15. 
  Vendor: IBM       Model: DDRS-39130D       Rev: DC1B 
  Type:   Direct-Access                      ANSI SCSI revision: 02 
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0 
  Vendor: HP        Model: C6270A            Rev: 3846 
  Type:   Processor                          ANSI SCSI revision: 02 
  Vendor: YAMAHA    Model: CRW4260           Rev: 1.0q 
  Type:   CD-ROM                             ANSI SCSI revision: 02 
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 6, lun 0 
sr0: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray 
SCSI device sda: hdwr sector= 512 bytes. Sectors= 8471232 [4136 MB] [4.1
GB] 
 sda: sda1 sda2 < sda5 sda6 > 
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 17850000 [8715 MB]
[8.7 GB] 
 sdb: sdb1 
autodetecting RAID arrays 
autorun ... 
... autorun DONE. 
VFS: Mounted root (ext2 filesystem) readonly. 
change_root: old root has d_count=1 
Trying to unmount old root ... okay 
Freeing unused kernel memory: 64k freed 
Adding Swap: 72252k swap-space (priority -1) 
Creative SBLive! at 0xb800 on irq 10 
 id: 0x24  io: 0x210 eth0: Intel EtherExpress Pro/10 ISA at 0x210,
00:aa:00:a3:b0:16, IRQ 5, 10BaseT. 
eth0: set Rx mode to 1 address. 
eth0: set Rx mode to 1 address. 
eth0: set Rx mode to 1 address. 
CSLIP: code copyright 1989 Regents of the University of California 
PPP: version 2.3.7 (demand dialling) 
PPP line discipline registered. 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device sr(11,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0) 
VFS: Disk change detected on device ide0(3,0)

------------------------------

From: "James E. Bradley" <[EMAIL PROTECTED]>
Subject: Text files -- Many into One -- How??
Date: Sun, 18 Mar 2001 08:52:12 -0600

In DOS, I can copy several small text files into a single large text
file with the COPY command, but after reading the man page on cp, I
don't see how to do it with Linux. How does one do it with Linux??
Thanks for your help.

------------------------------

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: partition blues
Date: 18 Mar 2001 14:35:15 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 18 Mar 2001 08:37:22 +0100, Eric en Jolanda staggered into the
Black Sun and said:
>> I just installed Debian Linux on my pc which is sharing space with
>> Windows95, FreeBSD, and Plan9.
>>
>> I would like to mount my FreeBSD partition/slice from linux, but it
>> doesn't seem to want to work entirely.  I can mount root but nothing
>> beyond that. I use the following to mount it:
>>
>> mount -t ufs -o ufstype=44bsd /dev/hda7 /mnt
>>
>> I presume something is corrupted. What is wrong and can it be
>> repaired so that I can grab some files off it?  Below is some info...
>> I don't know how to interpret it.
>> Partition check:
>>  hda: hda1 hda2 hda3! hda4 < hda5 hda6 > < hda7 hda8 hda9 hda10 >
>
>You have two extended partitions.
>It's not an allowed situation.
>The partition check still finds them all, and I'm surprised of that.
>Imagine what would happen to the numbering, if you were to delete
>hda5 and then recreate it. Nice numbering scheme you'd get, that

No, look at the fdisk output again.  There's one extended partition
(hda4) while the BSD partition (hda3) contains a BSD disklabel, which
holds a set of other partitions within it.  THis is how BSD does things
and is completely normal.

>>    Device Boot    Start       End    Blocks   Id  System
>> /dev/hda1   *         1        69    278176+   6  FAT16
>> /dev/hda2           124       250    512064   39  Unknown
>> /dev/hda3           251       782   2145024   a5  BSD/386
>> /dev/hda4            70       123    217728    5  Extended
>> /dev/hda5            70        85     64480+  82  Linux swap
>> /dev/hda6            86       123    153184+  83  Linux
>>
>> BSD disklabel command (m for help): p
>>
>> 8 partitions:
>> #       start       end      size     fstype   [fsize bsize   cpg]
>>   a:      251       263*       12*    4.2BSD     1024  8192    16
>>   b:      263*      281*       17*      swap
>>   c:      251       782       532     unused        0     0
>>   e:      281*      286*        5*    4.2BSD     1024  8192    16
>>   f:      286*      782       496*    4.2BSD     1024  8192    16

So the problem is that you can't mount hda9 or hda10 (BSD partitions e:
and f: in the above scheme.)  Very strange.  COuld it have something to
do with the *s in the start columns of b:, e:, and f:?  Linux can
usually deal with partitions that don't start or end on cylinder
boundaries, but when these partitions are inside a BSD disklabel....

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Workin' in a code mine, hittin' Ctrl-Alt
http://www.brainbench.com     /   Workin' in a code mine, whoops!
=============================/    I hit a seg fault....

------------------------------

From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: partition blues
Date: Sun, 18 Mar 2001 14:40:26 -0000
Reply-To: [EMAIL PROTECTED]

[Posted and mailed]

In article <[EMAIL PROTECTED]>,
        William Staniewicz <Use-Author-Address-Header@[127.1]> writes:
> I just installed Debian Linux on my pc which is sharing space
> with Windows95, FreeBSD, and Plan9.
> 
> I would like to mount my FreeBSD partition/slice from
> linux, but it doesn't seem to want to work entirely.
> I can mount root but nothing beyond that. I use the
> following to mount it:
> 
>       mount -t ufs -o ufstype=44bsd /dev/hda7 /mnt

Precisely what error message is returned from this command? Be aware
that for this to work, you need BSD partition table support compiled
into your kernel. I don't know offhand if Debian Linux includes this or
not.

> Disk /dev/hda: 128 heads, 63 sectors, 782 cylinders
> Units = cylinders of 8064 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1        69    278176+   6  FAT16
> /dev/hda2           124       250    512064   39  Unknown
> /dev/hda3           251       782   2145024   a5  BSD/386
> /dev/hda4            70       123    217728    5  Extended
> /dev/hda5            70        85     64480+  82  Linux swap
> /dev/hda6            86       123    153184+  83  Linux

One *POTENTIAL* problem here is that the BSD partition (/dev/hda3) has a
number *BEFORE* the standard Linux extended partition. When Linux (WITH
BSD partition table support) assigns partition numbers, this means that
the BSD sub-partitions will get numbers before the regular extended
partitions, thus changing all partition numbers from 5 up. If you don't
currently have BSD partition table support in your kernel and you add
it, the result will be that Linux won't boot until you alter your
/etc/fstab file to reflect these changes. It's conceivable you could
swap the partition numbers by deleting them in Linux's fdisk and then
re-creating them with reversed numbers, but that's potentially quite
dangerous (you've got to get the start and end points exactly right),
and I don't know how FreeBSD would react to that -- it might become
unbootable.

-- 
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration

------------------------------

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Text files -- Many into One -- How??
Date: 18 Mar 2001 14:42:54 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 18 Mar 2001 08:52:12 -0600, James E. Bradley staggered into the
Black Sun and said:
>In DOS, I can copy several small text files into a single large text
>file with the COPY command, but after reading the man page on cp, I
>don't see how to do it with Linux. How does one do it with Linux??
>Thanks for your help.

New user, eh?

cat file1 file2 file3 > bigfile

cat writes the contents of the files named to stdout, > redirects stdout
to a file (killing the file named if it already exists) , >> redirects 
stdout to a file (appending to an existing file), | connects the stdout
and stdin of 2 processes....  It takes a little learning, but it's far
more flexible and powerful than DOS ever will be.  Happy learning,

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Workin' in a code mine, hittin' Ctrl-Alt
http://www.brainbench.com     /   Workin' in a code mine, whoops!
=============================/    I hit a seg fault....

------------------------------

From: Sean <[EMAIL PROTECTED]>
Subject: Re: Text files -- Many into One -- How??
Date: Sun, 18 Mar 2001 14:37:41 +0000

Try the cat command:

cat file1.txt file2.txt file3.txt >bigfile.txt

Sean

"James E. Bradley" wrote:
> 
> In DOS, I can copy several small text files into a single large text
> file with the COPY command, but after reading the man page on cp, I
> don't see how to do it with Linux. How does one do it with Linux??
> Thanks for your help.

------------------------------

From: "The Spook" <[EMAIL PROTECTED]>
Subject: Re: Text files -- Many into One -- How??
Date: Sun, 18 Mar 2001 15:49:21 +0100

James E. Bradley wrote ...
>In DOS, I can copy several small text files into a single large text
>file with the COPY command, but after reading the man page on cp, I
>don't see how to do it with Linux. How does one do it with Linux??
>Thanks for your help.

As many things are in Linux, simple when you know: "cat InFile1 InFile2 >
OutFile".

Replace "InFile1" and "InFile2" with the list of files you want to copy from
(it may contain wildcards too) and replace "OutFile" with the name of the
file to copy to.

  /TRY



------------------------------

From: Andrew Rounds <[EMAIL PROTECTED]>
Subject: korganizer blues
Date: Sun, 18 Mar 2001 14:50:12 +0000

My machine locked up a few days ago, which required a reboot and automatic 
fsck.  Since then, korganizer hasn't worked on my personal account. Alarmd 
fires up, but not the main pim screen. No error messages are generated. If 
I execute korganizer on the root account, the program comes up properly, 
and I can navigate to my personal vcs file and load it. I assume that there 
is a dotfile or something else on my personal user which has got corrupted. 
Any ideas about what I can do to get it working? 

Thanks


------------------------------

From: David Hart <[EMAIL PROTECTED]>
Subject: Re: Trouble getting nntp running locally
Date: Sun, 18 Mar 2001 14:49:43 +0000

[EMAIL PROTECTED] wrote:

> I've created an /etc/xinetd.d/nntp like this (all paths are valid):
>   service nntp
>   {
>           socket_type         = stream
>           protocol            = tcp
>           wait                = nowait
>   #        port                = 119   # I added this but it didnt'
>   #        help
>           user                = news
>           server              = /usr/sbin/tcpd /usr/sbin/leafnode
>   }

That last line should read just:

        server          = /usr/sbin/leafnode

-- 
David Hart


------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: error in total memory?
Date: Sun, 18 Mar 2001 14:49:44 GMT

Robert Kenny <[EMAIL PROTECTED]> wrote:
> I've recently added a second 128Mb to my dual-boot Redhat 6.2/Win 98
> machine, and the BIOS's POST reports 262144K fine, as does the memtest86

Eh? That should be 256K !! You mean 262144k, maybe ... 
  1024 * 256 * 1024 = 268435456

so the report below ...

>         total:    used:    free:  shared: buffers:  cached: 
> Mem:  263819264 129232896 134586368 85909504 11259904 54804480 

shows that you are missing 4616192 bytes, or 4508KB.

> Where is my other 4508 kB?  It doesn't seem much in Linux, but in

This time, you probably meant to say KB? It's strange, isn't it! You
are missing 4096+256+128+16+8+4 KB.

The best bet would be that you have an onboard video card that takes
4MB, and a scsi bios that takes the rest.

> thats not where the ROM is).  There are 2 SCSI HDs: LILO and Linux on

Aha. yes, definitely a scsi bios.

> 1) I have an undetectable virus on sdb (fault of virus scanner, doesn't

Who cares.

> 2) I have a virus in the LILO boot sector.  My virus scanner doesn't

Impossible. In anay case, what would viruses have to do with anything?

> 3) faulty DIMMs, or incompatible with m/b & BIOS (ASUS P2B-LS AGP and
> Award v4.51PG), but still detectable/testable by memtest. 

No, they're compatible, since the computer is accessing them fine in
your tests.

> 4) Some harddisk- or SCSI-related memory is allocated by the BIOS(es),

Very likely.

> size and location somehow dependent on which drives are accessed at
> boot.  I've vaguely heard of things like this, but have no idea how to
> "fix" it,

There's nothing to fix. It's a fact.

> if possible. 

Peter

------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Text files -- Many into One -- How??
Date: Sun, 18 Mar 2001 14:49:44 GMT

James E. Bradley <[EMAIL PROTECTED]> wrote:
> In DOS, I can copy several small text files into a single large text
> file with the COPY command, but after reading the man page on cp, I
> don't see how to do it with Linux. How does one do it with Linux??

man cat. Buy a book on it.

Peter

------------------------------

From: "David Quinn" <[EMAIL PROTECTED]>
Subject: Re: Backing up files with spaces in name
Date: Sun, 18 Mar 2001 14:53:26 -0000

I've been hunting the web for details of the smb.conf file as well as
checking the man pages, but I can't find any option to have samba handle the
spaces in filenames better.  I suppose what I'm actually looking for is some
way to tell samba to map a different character to the space so that users
can still use the spaces in their filenames but samba stores them with a
different character.  If that is impossible, some way to tell afio how to
handle filenames with "\ " in as a single string instead of breaking off at
the first space it encouters.

Any tips anyone?

David Quinn



------------------------------

From: Young4ert <[EMAIL PROTECTED]>
Subject: Visioneer 4400 USB Scanner
Crossposted-To: comp.os.linux.hardware
Date: Sun, 18 Mar 2001 14:41:20 GMT

I just purchased a Visioneer 4400 USB scanner from the local Staples for an 
incredible price (~$15 after a combined of $65 rebates).  Unfortunately, 
when I checked http://www.mostang.com/sane and learnt that such a scanner 
is not listed under the "Supported Scanners" section and therefore is not 
supported or usable under Linux OS.

The question I would like to ask is if anyone knows of such scanner is 
supported under Linux OS through other drivers, instead of the one provided 
by the SANE?

TIA.

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.misc.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to