(M)  s i s t e m a   o p e r a c i o n a l   m a g n u x   l i n u x ~/ · documentação · suporte · sobre

  Next Previous Contents

2. Umsdos as your root partition

2.1 The pseudo-root concept.

With Umsdos, Linux can be installed in a standard DOS partition. Linux is then installed as a second (or third) OS in the partition. To avoid name collision (there is maybe a bin or tmp directory in the drive C: already), Umsdos use a smart trick: The pseudo-root.

All Linux files are installed in a DOS subdirectory called linux, generally C: LINUX. The normal Linux/Unix directory structure goes there. So you get

  • C:\LINUX\BIN
    
  • C:\LINUX\ETC
    
  • C:\LINUX\LIB
    
  • C:\LINUX\ROOT
    
  • C:\LINUX\SBIN
    
  • C:\LINUX\TMP
    
  • C:\LINUX\USR
    
  • C:\LINUX\VAR
    

When the Umsdos boot, it probes for the directory linux and then /linux/etc. If it exist, it activates the pseudo-root mode.

Mostly, the pseudo-root mode switch the root of the partition to C:\\LINUX giving the conventional Unix directory layout

  • /bin
    
  • /etc
    
  • /lib
    
  • /root
    
  • /sbin
    
  • /tmp
    
  • /usr
    
  • /var
    

To this list, it adds a new one called DOS. This one is a virtual directory.

2.2 Things to know about the pseudo-root

  • This mode can only be triggered at boot time. There is no way to activate this by a mount command.
  • This mechanism is purely a different view of a normal Umsdos file-system. This means that a partition normally used as a root partition can be normally mounted. There won't be any pseudo-root effect. For example, if you boot linux with a maintenance floppy and mount your normal root partition in /mnt, you will find all your linux directory in /mnt/linux/bin, /mnt/linux/etc and so on.


Next Previous Contents