Mount

Kanavouras Antonis ankan at med.auth.gr
Wed Mar 11 16:44:27 EET 1998


On Tue, 10 Mar 1998, Reality Recovery Front wrote:

>  Epitelous, katafera na kano mount to cdrom!!!
~>  Omos, gia na allakso CD mesa apo to Linux, prepei prota na doso
>                                 umount -a -t iso9660 /dev/hdb /cdrom,
> giati allios den mporo na vgalo to CD mesa apo to drive patontas to koumpi
> <Eject>. Einai aparetito na dino afto to senario umount, gia na vgazo to CD
> mesa apo to drive?
>  Kai prepei na dino 
>                            mount -a -t iso9660 /dev/hdb /cdrom,
> kathe fora pou thelo na do ta periexomena enos CD?
>  Diladi, den mporo na rithmiso to sistima etsi, oste kathe fora pou
> bootarei na kanei mount to CDROM kai, ana pasa stigmi, na doulevi to koumpi
> <Eject>?
>  Episis, prospathisa na kano mount to floppy disk drive, dinontas
>                               mount -a -t msdos /dev/fd0 /floppy,
> afou prota dimiourgisa ton katalogo /floppy, alla i entoli "mount" mou
> vgazei ena minima, kati san "wrong file system" an thimame kala! Yparxei
> kapoio allo mount senario gia to floppy? Mipos prepei na doso, prota,
>                                mount -a /floppy ?
> --
Genika sto Unix mporeis na automatopoiohseis polla pragmata me ligo shell
programming ( shell scrips). Ta shell scripts einai kati san ta batch
files sto DOS. Kathe shell ehei th dikia tou dialekto alla kai mono to
"sh" h "bash" (Bourne Shell) sou ftanei.

Egw px gia thn allagi cd ehw to exhs script:

#!/bin/sh
case $# in
0) echo "usage: allocd NUM (NUM= time in seconds)" ;;
*)case $1 in
*[a-z]*)echo "please use a number" ;;
*)
 umount /cdrom
   sleep $1
  mount /dev/cdrom /cdrom ;;
esac
esac

______________________________________________________-

kai gia thn allagh floppy to adelfaki tou :

#!/bin/sh
case $# in
0) echo "usage: alloflop NUM (NUM= time in seconds)" ;;
*)case $1 in
*[a-z]*)echo "please use a number" ;;
*) umount /a
   sleep $1
  mount /dev/fd0h1440 /a ;;
esac
esac

_______________________________________________________

to prwto to lew "allocd" kai to deytero "alloflop" alla ta dika sou
mporeis na ta onomaseis opws goustareis.Ta kaneis ektelesima( man chmod)
kai ta rihneis mesa s' ena directory tou SEARCHPATH sou. 

Genikws  auto pou thelw na sou pw einai oti an matheisligaki thn bash
script language tha lyseis polla tetoia provlhmata


Filika	
Antonis

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list