[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How can I build debian /dev tree on RHEL 4?




Does anyone know how I can build a debian /dev tree on a RHEL 4 distribution?
This /dev tree is intended to be loaded on an embedded system that has Debian (version 2.4.16).
I am building a debian linux system on RedHat (RHEL 4) and loading it on the embedded box.

For RedHat, I am aware that udev will dynamically detect hardware and build the /dev tree.
This won't work for me, because I need additional devices created.
I need to simulate the /dev tree that will be used on the target Debian box.

I have done this on a debian distribution before (that was simple, because it already had the
 debian devices tree).

For instance Redhat does not have:
  /dev/hda
  /dev/hda1
  /dev/hda2
  ....

This is what I have tried so far:
   
I made /dev1/dev to simulate /dev and created devices under there.
But, now I this command fails:
 
  dd if=/dev/zero of=/dev1/dev/ram1 bs=1024 count=93750
 
  Error:
 
  dd: writing `/dev1/dev/ram1': No space left on device
 
  16385+0 records in
  16384+0 records out
 
  $ df -h /dev
  Filesystem            Size  Used Avail Use% Mounted on
  -                     8.0G  152K  8.0G   1% /dev
  $ df -h /dev1
  Filesystem            Size  Used Avail Use% Mounted on
  /dev/mapper/VolGroup00-LogVol00
                        49G  6.4G   40G  14% /
  $ df -k /dev
  Filesystem           1K-blocks      Used Available Use% Mounted on
  -                      8287176       152   8287024   1% /dev
  $ df -k /dev1
  Filesystem           1K-blocks      Used Available Use% Mounted on
  /dev/mapper/VolGroup00-LogVol00
                       50412228   6664212  41187200  14% /
  $ df -i /dev
  Filesystem            Inodes   IUsed   IFree IUse% Mounted on
  -                     195044     246  194798    1% /dev
  $ df -i /dev1
  Filesystem            Inodes   IUsed   IFree IUse% Mounted on
  /dev/mapper/VolGroup00-LogVol00
                      6406144  182281 6223863    3% /

Is it because of dev1's filesystem, or where it is mounted?
 

I made a /dev1/dev and created a devices tree that looks exactly the same as what is on debian (the one that works).
Will that work? The dd command failed, so there must be something I am missing or doing wrong.

I would appreciate any help!

If you think this needs to be posted to a different forum, let me know.

Thanks,
Supriya


Reply to: