Linux-Misc Digest #517, Volume #27                Tue, 3 Apr 01 04:13:02 EDT

Contents:
  Re: LILO+w98 ("Eric")
  Re: I would like to register a complaint ... ("Eric")
  Re: I would like to register a complaint ... (Drew Roedersheimer)
  where to decompress tar.gzs? (F. Xavier Noria)
  Re: Hard disk as sequential access device????i ("Eric")
  Re: scripting ("Quiney, Philip [HAL02:HH00:EXCH]")
  Any luck or news with AMD 760 chipset ([EMAIL PROTECTED])
  Win2K messed after RH 6.1 installation (Christoph Kukulies)
  Re: chrooting users (David Efflandt)
  Re: Hard disk as sequential access device????i ("Sergio Anguita")
  Re: I would like to register a complaint ... (Dave Pearson)
  Re: dmsdos working under 2.2.19 (David Efflandt)
  Re: Win2K messed after RH 6.1 installation ("Eric")
  may I install two different version of linux in the same harddisk 
("news.starzine.com")
  Re: Hard disk as sequential access device????i ("Eric")
  dump/restore vs gnu tar ("You, Jin-Ho")
  Re: External modem problem.(HELP) (David Efflandt)
  Installing Windows 9x on hdc -- can it be done? ("David E. Smith")
  Re: Hard disk as sequential access device????i (Frank Ranner)

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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: LILO+w98
Date: Tue, 3 Apr 2001 08:13:37 +0200

> Just chanced on this posting, when rerunning lilo do it THE hard way,
means:
> /sbin/lilo -C /etc/lilo.conf   #capital C
> It tells lilo to install itself in mbr with choices written in
/etc/lilo.conf.
> Computers being stupid like to have our wishes spelled corectly.

And add a few -v 's, just to see what might have failed.

>
> > > No way. Then they're not the same.
> > Looking with the eye they were but i discovered  with vi an enter after
the
> > last row (label = w98) and one empty row after that. But this shall not
be a
> > reason for random w98 boot failure at lilo prompt.

I must agree, that this is an unlikely cause.

> > > Did you rerun `/sbin/lilo -v`
> > no

then do it, please. There verbose switch may provide more info.

> > > What's in your lilo.conf? (show it please)
> >
> > boot = /dev/hda
> > timeout = 100
> > linear
> > prompt
> >   default = w98
> >   vga = normal
> >   root = /dev/hda4
> >   read-only
> > map=/boot/map
> > install=/boot/boot.b
> > image = /boot/vmlinuz-2.2.14-5.0
> >   label = linux
> > other = /dev/hda1
> >   label = w98
> >
> > Im using lilo-0.21-15
> > >
> > > > The problem started to appeare randomly at boot and now it is
stable. I
> > > > reinstalled lilo but no changes:(
> > >
> > > What do you mean with reinstall?
> > > just ran /sbin/lilo or did you install a newer version?
> >
> > Just ran lilo.
> >

Could you do it again, with `-v -v` as switches, and post the output.

Eric



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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: I would like to register a complaint ...
Date: Tue, 3 Apr 2001 08:51:14 +0200

> I realize this isn't the argument clinic, but I would like to register a
> complaint.
>

Me too.
Directed to you personaly : "Don't multipost"

Eric



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

From: [EMAIL PROTECTED] (Drew Roedersheimer)
Subject: Re: I would like to register a complaint ...
Reply-To: [EMAIL PROTECTED]
Date: Tue, 03 Apr 2001 06:48:35 GMT

On Tue, 03 Apr 2001 01:45:12 -0400, KCmaniac wrote:
>I realize this isn't the argument clinic, but I would like to register a
>complaint.
>
>There is a very fundemental concept in the DOS/Windows world of being
>able to format a partition, after which you can begin again compiling
>data into that empty but very much functional partition.  WHY DOESN'T
>LINUX HAVE AN EQUIVALENT COMMAND/FUNCTION???
>
>Sorry for the big letters but I am now extremely frustrated over Linux's
>apparent inability to clear a partition of all its data and to be able
>to just simply begin again.  Instead, it appears that you have to jump
>through a bunch of hoops and all of which I have not yet found.
>
<snip>


Maybe I'm totally missing the point here, but I think mkfs is the
equivalent command you'd want under Linux for the old dos format command.

In other words, `fdisk -l /dev/hda` will list the partition info for your
first IDE hard drive.  You can then do `mkfs -t ext2 /dev/hda1` to 
"re-format" the first partition on your first IDE hard drive.  (NOTE:
this will clobber all data on this partition - so use with caution)


HTH
-DR

-- 
An invasion of armies can be resisted, but not an idea whose time has come.
                 -- Victor Hugo

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

From: [EMAIL PROTECTED] (F. Xavier Noria)
Subject: where to decompress tar.gzs?
Date: Tue, 03 Apr 2001 06:56:57 GMT
Reply-To: [EMAIL PROTECTED]

Hello, I have a Debian Potato and sometimes install apps via tar.gzs.
I wonder if there is a canonical directory to decompress them under
/usr/local. If the tar.gz comes with sources to compile I put it under
/usr/local/src now but I don't know the purpose of /usr/local/share,
and know people who untargz the files under /usr/local. Is there a
canonical place? And if the bundle comes just with binaries as Sun's
JDK for instance?

Thanks,

-- fxn


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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: Hard disk as sequential access device????i
Date: Tue, 3 Apr 2001 08:56:32 +0200

>     I need to use an scsi hd as a sequetial access device. How can I
> configure it??? When Linux boots it detect the hd as a direct access
device
> and I need to use it like a tape.

Why?
Could you tell us a bit more on what you plan to do?
It sounds like degrading a good device to me.

Eric




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

From: "Quiney, Philip [HAL02:HH00:EXCH]" <[EMAIL PROTECTED]>
Subject: Re: scripting
Date: Tue, 03 Apr 2001 07:51:31 +0100

Philip wrote:
> 
> There is a program that I run which is when start then asks 3
> questions.  I answer these three questions the same each time.  Isn't
> the a way in which I can write a script which will answer these
> questions for me.
> mode?: "term"
> choose option : "3"
> email "[EMAIL PROTECTED]"
> 
> what language is best suited for this.  I was wondering if a shell
> script would work.
Hi,

Try 'man expect'. I think this command may be a bit over the top for
what you want - but it is good to know that it is there in case you ever
need it ;-)

I would check the program you run to see if it can take the answers to
the questions as arguments - is there any useage info (try cmd -h, or
cmd -?) - this might be simpler.

Regards

Phil Q

-- 

Phil Quiney                             CSIP Demonstrator
[EMAIL PROTECTED]              Nortel Networks,
Telephone: +44 (0)1279 402363           London Rd, Harlow,
Fax:       +44 (0)1279 402885           Essex CM17 9NA,
                                        United Kingdom.

"This message may contain information proprietary to Northern 
Telecom so any unauthorised disclosure, copying or distribution
of its contents is strictly prohibited."

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

From: [EMAIL PROTECTED]
Subject: Any luck or news with AMD 760 chipset
Date: Tue, 03 Apr 2001 07:15:29 GMT

Anyone able to get the new AMD 760 chipset boards to work yet?

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

From: Christoph Kukulies <[EMAIL PROTECTED]>
Subject: Win2K messed after RH 6.1 installation
Date: 3 Apr 2001 07:10:15 GMT

I installed RH 6.1 (yes there are newer version but I need to stay
in sync with my other machines) over an existing Win2000.

After that win2k cannot boot anymore. NTLDR.SYS not found or something.

I can see the and mount the C-drive (/dev/hda1) but how can I access
at least (mount, to save some files) the extended partition (/dev/hda2):

Disk /dev/hda: 255 heads, 63 sectors, 2501 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       261   2096451    6  FAT16
/dev/hda2           262      2501  17992800    5  Extended
/dev/hda5           262       264     24066   83  Linux
/dev/hda6           265       330    530113+  82  Linux swap
/dev/hda7           331      2093  14161266   83  Linux
/dev/hda8          2094      2501   3277228+  83  Linux

Command (m for help): q

[root@rh61 kuku]# mkdir /d
[root@rh61 kuku]# mount -t msdos /dev/hda2 /d
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
       or too many mounted file systems
       (aren't you trying to mount an extended partition,
       instead of some logical partition inside?)
[root@rh61 kuku]# 

Maybe I cannot mount extended partitions?
What can I do about it?
-- 
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: chrooting users
Date: Tue, 3 Apr 2001 07:10:36 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]

On Mon, 2 Apr 2001 18:12:12 -0700, Victor Dods <[EMAIL PROTECTED]> wrote:
>How exactly do I go about chrooting users' accounts so they are 
>restricted to their home directory and below?  Also, will this affect 
>ftp logins?  I wish to create one or more ftp accounts that have only 
>access to their home directories, and can't escape and read/write all 
>over my root directory, etc.  I think this is called a "chroot jail"?

chroot for ftp is relatively easy (similar to what is done for anonymous
ftp.  See 'man ftpd' and 'man ftpaccess'.

chroot for normal users is not so easy.  All binaries and libs, perl, etc.
that they need have to be hard linked or copied into their home dir or
wherever you chroot them too.  But you don't really have to worry about
them writing all over your system, because they can only write where they
have permission to write, which by default is typically just under
their home dir.  If someone gives a file 666 permission or directory 777,
that is their problem.

The only systems I am on that chroot for ftp are free web hosts, and the
NONE of the Unix accounts I have shell access to does a chroot for ftp or
shell.  And it has never been a problem because Unix (and Linux) were
designed from the ground up as multiuser systems with permissions that can
be set individually for each file or dir.

-- 
David Efflandt  [EMAIL PROTECTED]  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

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

From: "Sergio Anguita" <[EMAIL PROTECTED]>
Subject: Re: Hard disk as sequential access device????i
Date: Tue, 3 Apr 2001 09:31:20 -0700

We have a computer that uses scsi HD without format to save very critical
data (I don't know why does it works without formatting but I suppose that
the designners migrate the tapes to HD to solve some problems.. (�?)). Now,
there are a linux software to process the data of this HD and I need to
access it like it was a tape (sequential mode).

Can you help me?

"Eric" <[EMAIL PROTECTED]> wrote in message
news:9abs71$mgg$[EMAIL PROTECTED]...
> >     I need to use an scsi hd as a sequetial access device. How can I
> > configure it??? When Linux boots it detect the hd as a direct access
> device
> > and I need to use it like a tape.
>
> Why?
> Could you tell us a bit more on what you plan to do?
> It sounds like degrading a good device to me.
>
> Eric
>
>
>



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

From: [EMAIL PROTECTED] (Dave Pearson)
Subject: Re: I would like to register a complaint ...
Date: 3 Apr 2001 07:30:15 GMT
Reply-To: [EMAIL PROTECTED]

* KCmaniac <[EMAIL PROTECTED]>:

> There is a very fundemental concept in the DOS/Windows world of being able
> to format a partition, after which you can begin again compiling data into
> that empty but very much functional partition. WHY DOESN'T LINUX HAVE AN
> EQUIVALENT COMMAND/FUNCTION???

You mean like mkfs?

-- 
Dave Pearson
http://www.davep.org/

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

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: dmsdos working under 2.2.19
Date: Tue, 3 Apr 2001 07:32:41 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]

On Sat, 31 Mar 2001, A E Lawrence
<[EMAIL PROTECTED]> wrote:
>dmsdos does not compile straight-forwardly under kernel 2.2.19. The
>problems are that the current kernel headers are not in /usr/src/linux
>as the present dmsdos supposes, and the wrong kernel headers are
>included.

I don't know what dmsdos is, but if /usr/src/linux does not point at your
current kernel source tree maybe you need to fix that.  For example in
your case probably:

cd /usr/src
rm linux
ln -s linux-2.2.19 linux 

>Replacing /usr/src/linux by /lib/modules/$(uname -r)/build everywhere
>and adding -I/lib/modules/$(uname -r)/build/include to CFLAGS in the
>src/Makefile fixes the problem.
>
>I can provide some very rough patches if needed. But a proper version
>might be better... 

Or fixing the symlink to your kernel tree.

-- 
David Efflandt  [EMAIL PROTECTED]  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: Win2K messed after RH 6.1 installation
Date: Tue, 3 Apr 2001 09:34:23 +0200

> I installed RH 6.1 (yes there are newer version but I need to stay
> in sync with my other machines) over an existing Win2000.

over it? or alongside? There's a big difference.

> After that win2k cannot boot anymore. NTLDR.SYS not found or something.

how do you try to boot it?

> I can see the and mount the C-drive (/dev/hda1) but how can I access
> at least (mount, to save some files) the extended partition (/dev/hda2):

Obviously, you can't.

> Disk /dev/hda: 255 heads, 63 sectors, 2501 cylinders
> Units = cylinders of 16065 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1       261   2096451    6  FAT16
> /dev/hda2           262      2501  17992800    5  Extended

wrong type, make it 0x85.
I'm not sure if NT minds, but better safe than sorry.

> /dev/hda5           262       264     24066   83  Linux
> /dev/hda6           265       330    530113+  82  Linux swap
> /dev/hda7           331      2093  14161266   83  Linux
> /dev/hda8          2094      2501   3277228+  83  Linux
>
> Command (m for help): q
>
> [root@rh61 kuku]# mkdir /d
> [root@rh61 kuku]# mount -t msdos /dev/hda2 /d
> mount: wrong fs type, bad option, bad superblock on /dev/hda2,
>        or too many mounted file systems
>        (aren't you trying to mount an extended partition,
>        instead of some logical partition inside?)
> [root@rh61 kuku]#
>
> Maybe I cannot mount extended partitions?

indeed.

> What can I do about it?

mount the logicals inside. (hda5 to hda8) The mount command was
very clear about this.

If there was a win2k D: it's gone now. You installed linux right over it.

Eric



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

From: "news.starzine.com" <[EMAIL PROTECTED]>
Subject: may I install two different version of linux in the same harddisk
Date: Tue, 3 Apr 2001 15:27:49 +0800


My pc has installed RedHat v6.2 and I want to install RedHat v7.0 into it.
Is it possible and how to install?


Thanks



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

From: "Eric" <[EMAIL PROTECTED]>
Subject: Re: Hard disk as sequential access device????i
Date: Tue, 3 Apr 2001 09:41:25 +0200

> We have a computer that uses scsi HD without format to save very critical
> data (I don't know why does it works without formatting but I suppose that
> the designners migrate the tapes to HD to solve some problems.. (�?)).
Now,
> there are a linux software to process the data of this HD and I need to
> access it like it was a tape (sequential mode).
>
> Can you help me?

perhaps.
Do you know the dd command?
It can be used to retrieve data from a raw device, starting from any
position.
copying any number of blocks, that can have any size.

man dd will give you some more info.

Eric



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

From: "You, Jin-Ho" <[EMAIL PROTECTED]>
Subject: dump/restore vs gnu tar
Date: Tue, 03 Apr 2001 16:45:24 +0900

Hi,

dump/restore is better than gnu tar 
to backup and restore directories and filesystem?

Thanks in advance for any comments.

Jin Ho You

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

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: External modem problem.(HELP)
Date: Tue, 3 Apr 2001 07:46:08 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]

On Fri, 30 Mar 2001 16:42:23 -0500, zak <[EMAIL PROTECTED]> wrote:
>Hi,
>i had many difficulties on configuring my internal modem so i finally
>bought an external modem(CNET Ambiant , 56k/V90, serial). I tried it on
>windows and it works fine on com4 irq3 (with driver on floppy).
>I understood before that linux supports all external modems, but using
>the kppp i couldnt make it work, when i query the modem it gives a
>message saying 'couldnt get a response from the modem. I could see the
>RS and TR light go on when i press the query modem but no result...i
>couldnt find much help in the how to in linux.org and many other sites
>that only talk about internal modems and stating that external modems
>have no problems...im using mandrake 7.2, and kppp 2.0...please help!!!
>or refer me to any good site on internet...Thank.

Is anything (like a mouse) using Com2 (/dev/ttyS1) which uses the same
irq?

See what you get from 'setserial -a /dev/ttyS3'.  If it says UART:
unknown, that port probably does not exist or is not configured properly.  
If it says UART: 8250 the irq might be wrong (unless it is a 386 in which
case a fast modem will not work).  It should say UART: 16550A (or are
there any newer types?).

If that is good, set up 'minicom' to connect to /dev/ttyS3 and see if you
get a response to AT commands.

If that all works, make sure that you are setting kppp to use /dev/ttyS3
(you might not have linked /dev/modem to anything).

-- 
David Efflandt  [EMAIL PROTECTED]  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

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

From: "David E. Smith" <[EMAIL PROTECTED]>
Subject: Installing Windows 9x on hdc -- can it be done?
Date: Tue, 3 Apr 2001 07:38:55 +0000

Okay, here's the deal. I've been a happy Linux user for several years, but 
I'm interested in installing Windows 9x again (mostly for games -- sorry, 
but Q3A has worn thin). I want to put Windows on the second hard drive.

You can stop laughing now.

The first hard drive (hda) is pretty well self-sufficient; it's a 27GB
drive with lots of partitions (/boot, /, and a swap partition, then an
extended partition that houses /usr, /mp3, and others).

hdb is a DVD-ROM drive; hdc is the naked second hard drive. (It's 3GB, 
right now naked except for a second swap partition, which I can probably 
live without.)

I know about the whole lilo map-drive hack that will convince some OSes 
that it's really on the first hard drive even when it isn't. But will that 
work with Win95/98/NT/whatever? Since they all seem to want to install 
special drivers for the hard drive, I'm inclined to think I may be outta 
luck here.

(Related to the map-drive hack: I know hda would be 0x80, but is hdc 0x81 
or 0x82? I'm not sure how having hdb, a DVD-ROM drive, affects the 
numbering.)

Has anyone had any luck with a setup even vaguely like this? I don't have 
the resources to back up 20GB of data, so I want to be pretty darn sure 
things will work before I start playing (or before I spend a couple 
hundred bucks on Windows).

And another related question: To install Windows, presumably, I'll have to 
boot from a CD, or a floppy, or something that's not lilo. How can I get 
the drives renumbered, then boot from such auxiliary media? Is lilo that 
clever? (I'm working through the docs, but there's a LOT of 'em.)

Assuming it does work: What's the status of the various hacks to get 
Windows to read ext2 filesystems? If I can get to my MP3 collection, 
that'll make me even happier. :-)

Thanks for any help!
...dave

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

From: Frank Ranner <[EMAIL PROTECTED]>
Subject: Re: Hard disk as sequential access device????i
Date: Tue, 03 Apr 2001 17:50:07 +1000

Sergio Anguita wrote:
> 
> We have a computer that uses scsi HD without format to save very critical
> data (I don't know why does it works without formatting but I suppose that
> the designners migrate the tapes to HD to solve some problems.. (�?)). Now,
> there are a linux software to process the data of this HD and I need to
> access it like it was a tape (sequential mode).
> 
> Can you help me?
> 
> "Eric" <[EMAIL PROTECTED]> wrote in message
> news:9abs71$mgg$[EMAIL PROTECTED]...
> > >     I need to use an scsi hd as a sequetial access device. How can I
> > > configure it??? When Linux boots it detect the hd as a direct access
> > device
> > > and I need to use it like a tape.
> >
> > Why?
> > Could you tell us a bit more on what you plan to do?
> > It sounds like degrading a good device to me.
> >
> > Eric
> >
> >
> >
Just read the device sequentially - ie /dev/sdb or whatever it is
detected as.

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


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