Re: what serve the file in the /dev directory

1998-03-31 Thread W Paul Mills
Look in /usr/src/kernel-source-??/Documentation/devices.txt for
information on devices.

On Sun, 29 Mar 1998, Alain Toussaint wrote:

 Hello
   i need to know what serve the files in the /dev directory,it's
 because i did some experiment trying to build a boot/root disk set (sort
 of rescue disk and a good way to learn about linux),i copied all the files
 in the /dev directory to a floppy disk (the root disk in question) using
 this method:
cd /dev
find . -print | cpio -pmd /mnt/dev
 
 i also copied the needed library for bash ( libreadline.so.2,
 libncurses.so.3.0, libdl.so.1 and libc.so.5 ) but now,i lack the space
 needed for copying bash,does anyone here know where i can get the
 information i need to safely prune the /dev directory without erasing
 something important ??
 
 thanks a lot for your help !!
 
 Alain
 
 
 
 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 

/*** Running Debian Linux ***
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...John 3:16  *
* W. Paul Mills*  Topeka, Kansas, U.S.A.*
* [EMAIL PROTECTED]   *  http://homepage.midusa.net/~wpmills/  *
* [EMAIL PROTECTED] *  http://www.networksplus.net/wpmills/  *
* Bill, I was there several years ago, why would I want to go back? *
/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: what serve the file in the /dev directory

1998-03-30 Thread Alain Toussaint
i did some work removing unneeded files/devices in the /dev directory but
i still get an error ( cp: /mnt/bin/bash: No space left on device ),what
command i need to do to know the space left on my disk and does there is
some utility to compress the library so they still remain executable (i
allready taken care off the potential performance hit because the root
disk is copied to a ramdrive and root is mounted there).

Alain



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: what serve the file in the /dev directory

1998-03-30 Thread Ossama Othman
My /dev directory only takes up 1.4MB of space.  To my understanding, it
normally isn't a good idea to erase device files.  The same goes for any
system file.  Anyway, you can use the df and du commands to find out
what your disk usage is.  Look at the man pages for the appropriate
command line arguments.

You mentioned that you copied your /dev directory in an earlier message.
Copying the /dev directory is generally not a good idea, at least for the
device files.  Use the MAKEDEV shell script in /dev or the mknod command
to recreate your /dev directory.  The first (and last) time I tried
copying my /dev directory on UN*X system, specifically Solaris, the copy
ended up going in to an infinite loop when the /dev/zero device was
copied.  

-Ossama


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: what serve the file in the /dev directory

1998-03-30 Thread Tor Fredrik Aas
The files  in the /dev are not the actual device drivers , but the
files
 corresponding to a spesific device driver , so on my system the
/dev/hda
 is the first harddisk etc. You don't actually need everyone. If you
dont
 have a scsi disk you cant omit all the /dev/sd files. The best way to
 make these files are with the MAKEDEV script (or if you want you can
 make them manually with the mknod command ). The BootDisk-HOWTO has a
 list at the end telling which files you must have . On a really plain
 bootdisk i got away with :
 
 # ls -l /mnt/dev/
 
 crw--w--w-   2 root tty4,   0 Mar 29 07:06 console
 brw-rw   1 root floppy 2,   0 Mar 29 07:06 fd0
 brw-rw   1 root disk   1, 250 Mar 29 07:06 initrd
 crw-rw-rw-   1 root sys   10,   2 Mar 29 07:07 inportbm
 crw-rw   1 root kmem   1,   2 Mar 29 07:06 kmem
 crw-rw   1 root kmem   1,   1 Mar 29 07:06 mem
 crw-rw-rw-   1 root sys1,   3 Mar 29 07:07 null
 brw-rw   1 root disk   1,   0 Mar 29 07:06 ram0
 brw-rw   1 root disk   1,   1 Mar 29 07:06 ram1
 brw-rw   1 root disk   1,   2 Mar 29 07:06 ram2
 brw-rw   1 root disk   1,   3 Mar 29 07:06 ram3
 brw-rw   1 root disk   1,   4 Mar 29 07:06 ram4
 brw-rw   1 root disk   1,   5 Mar 29 07:06 ram5
 brw-rw   1 root disk   1,   6 Mar 29 07:06 ram6
 brw-rw   1 root disk   1,   7 Mar 29 07:06 ram7
 lrwxrwxrwx   1 root root4 Mar 29 07:06 ramdisk - ram0
 crw--w--w-   2 root tty4,   0 Mar 29 07:06 systty
 crw-rw-rw-   1 root sys5,   0 Mar 29 09:23 tty
 lrwxrwxrwx   1 root root7 Mar 29 09:23 tty0 - console
 crw--w--w-   1 root tty4,   1 Mar 29 07:05 tty1
 crw--w--w-   1 root tty4,   2 Mar 29 07:05 tty2
 crw--w--w-   1 root tty4,   3 Mar 29 07:06 tty3
 crw--w--w-   1 root tty4,   4 Mar 29 07:06 tty4
 crw--w--w-   1 root tty4,   5 Mar 29 07:06 tty5
 crw--w--w-   1 root tty4,   6 Mar 29 07:06 tty6
 crw-rw-rw-   1 root sys1,   5 Mar 29 07:07 zero
 
 But this doesn't add support for any type of fixed disk. The link from
 systty to console is after my understanding rather important, since my
 system won't boot witout it !
 
 Happy hacking !
 
 George Bonser wrote:
 
  Those are your device drivers!   BE CAREFUL IN THERE!
 
  For example, if you have an ide hard disk it is /dev/hda
 
  On Sun, 29 Mar 1998, Alain Toussaint wrote:
 
   Hello
 i need to know what serve the files in the /dev directory,it's
   because i did some experiment trying to build a boot/root disk set (sort
   of rescue disk and a good way to learn about linux),i copied all the files
   in the /dev directory to a floppy disk (the root disk in question) using
   this method:
  cd /dev
  find . -print | cpio -pmd /mnt/dev
  
   i also copied the needed library for bash ( libreadline.so.2,
   libncurses.so.3.0, libdl.so.1 and libc.so.5 ) but now,i lack the space
   needed for copying bash,does anyone here know where i can get the
   information i need to safely prune the /dev directory without erasing
   something important ??
  
   thanks a lot for your help !!
  
   Alain
 
 ---
 [EMAIL PROTECTED]
 http://dragon.telnett.no/~fredrik
 Don't trust an operating system were you don't have the source.

-- 
---
[EMAIL PROTECTED]
http://dragon.telnett.no/~fredrik
Don't trust an operating system were you don't have the source.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


what serve the file in the /dev directory

1998-03-29 Thread Alain Toussaint
Hello
i need to know what serve the files in the /dev directory,it's
because i did some experiment trying to build a boot/root disk set (sort
of rescue disk and a good way to learn about linux),i copied all the files
in the /dev directory to a floppy disk (the root disk in question) using
this method:
   cd /dev
   find . -print | cpio -pmd /mnt/dev

i also copied the needed library for bash ( libreadline.so.2,
libncurses.so.3.0, libdl.so.1 and libc.so.5 ) but now,i lack the space
needed for copying bash,does anyone here know where i can get the
information i need to safely prune the /dev directory without erasing
something important ??

thanks a lot for your help !!

Alain



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: what serve the file in the /dev directory

1998-03-29 Thread Alain Toussaint
 Those are your device drivers!   BE CAREFUL IN THERE!
 
 For example, if you have an ide hard disk it is /dev/hda
 
i do know,i take extreme precaution before making a move there but there's
cryptic devices there who i don't know they're purpose,all who's compiled
in my custom kernel is serial,ide hard drive and ide cd so i know that i
dont touch ttyS* hda and hdb,i removed sd* and lp device (i didn't
compiled these in the kernel),here's the device i'm not sure about they're
definition:

nst*, pty*, hitcd, hwtrap, importbm, jbm, logibm, mcd, st* ( are these an
interface for st506 hard drive), ttyq*, md*, rft*, qscd, xda*, sndstat.

that's nearly all i've found in my /etc directory on the disquette who i
dont know about these.

Alain Toussaint

p.s. the * denote a wildcard,i didn't wanted to write the full name of the
device.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]