fstab kezelés Mandrívában

Kezdőlap Fórumok MANDRIVA (ex-MANDRAKE, ex-CONECTIVA) Mandriva kezdõ fstab kezelés Mandrívában

10 bejegyzés megtekintése - 1-10 / 12
  • Szerző
    Bejegyzés
  • #2014814
    admin
    Adminisztrátor

      Sziasztok!

      Feltettem ezt az új Mandrívát. Nagyon jónak tûnik. Egyetlen gondom van vele, amire talán tud valaki megoldást: A hdc -n lévõ DVD lejátszómat idõnként elfelejti a gép. Néha indítás után egyszerûen eltûnik a sora az fstab-ból. Az fstabom így néz ki:


      # This file is edited by fstab-sync – see ‘man fstab-sync’ for details
      /dev/hda7 / ext3 noatime,defaults 1 1
      /dev/hda8 /home ext3 noatime,defaults 1 2
      /dev/hdc /mnt/cdrom auto umask=0022,user,iocharset=iso8859-2,codepage=852,noauto,ro,exec,users 0 0
      /dev/hdd /mnt/cdrom2 auto umask=0022,user,iocharset=iso8859-2,codepage=852,noauto,ro,exec,users 0 0
      none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,–,umask=0022,iocharset=iso8859-2,sync,codepage=852 0 0
      /dev/hda1 /mnt/win_c ntfs umask=0022,nls=iso8859-2,ro 0 0
      /dev/hda5 /mnt/win_d ntfs umask=0022,nls=iso8859-2,ro 0 0
      none /proc proc defaults 0 0
      none /tmp tmpfs defaults 0 0
      /dev/hda6 swap swap defaults 0 0



      A hdc- eszköz sorát én most utólag írtam be a hdd mintájára. Lehet hogy ezt kellene máshogy?
      Gondolom hogy az elsõ sor okozza a gondot mármint hogy a fájlt az fstab-sync módosította.
      Lehet hogy bootoláskor nem látja az eszközt ( mert mondjuk nincs benne lemez ) és ezért törli?

      Ezzel mit lehet kezdeni ?
      [align=right][snapback]132671[/snapback][/align]

      /dev/hdd /mnt/ bárhova iso9660 ro,user 00
      vagy használd a submount-ot, keress a neten rá!
      egész jó dolog. 🙂

      #2014815
      admin
      Adminisztrátor

        /dev/hdd  /mnt/ bárhova    iso9660    ro,user    00
        vagy használd a submount-ot, keress a neten rá!
        egész jó dolog. 🙂
        [align=right][snapback]132680[/snapback][/align]

        Köszi! Kipróbálom.

        #2014816
        admin
        Adminisztrátor

          Na kipróbáltam.

          Az általad leírtak szerint módosítottam az fstab -ot.
          Sajnos igy bootolás után a rendszer az eszközt egyáltalán nem érzékeli. A hardware eszközök között fel sem sorolja Mountolni sem lehet. :unsure:

          #2014817
          admin
          Adminisztrátor

            Na kipróbáltam.

            Az általad leírtak szerint módosítottam az fstab -ot.
            Sajnos igy bootolás után a rendszer az eszközt egyáltalán nem érzékeli. A hardware eszközök között fel sem sorolja Mountolni sem lehet. :unsure:
            [align=right][snapback]132698[/snapback][/align]

            Az LEHETETLEN, az „user” opció pontosan arra hivatott, hogy user is tudja fel/lecsatolni az eszközt.
            A submount-ot próbáld meg, ezzel nem kell csatolni, az usbstick, floppy és cdrom cuccokat.
            Tejlesen auto mûxik, itt nézd meg!
            Nekem debian/gentoo alatt müxik, a readme-t olvasd el, az fstab bejegyzés miatt figyelmesen!
            http://freshmeat.net/projects/submount/
            http://submount.sourceforge.net/

            #2014818
            admin
            Adminisztrátor

              „/dev/hdd /mnt/cdrom2 auto umask=0022,user,iocharset=iso8859-2,codepage=852,noauto,ro,exec,users 0 0”
              Itt pl felesleges az „auto” bejegyzés mert han incs cdrom a meghajtóban bootkor akkor hibát jelez.
              Ha jót akarsz lesd meg az a submount-ot magadnak! 🙂

              „Sajnos igy bootolás után a rendszer az eszközt egyáltalán nem érzékeli.”
              Ha nincs csatolva ill nincs cdrom a meghajtóban mit érzékelne?
              Csak létezõ fájlrendszert tucc csatolni, az üres(nyers) cdromot sem tudod csatolni. 🙂

              #2014819
              admin
              Adminisztrátor

                „/dev/hdd /mnt/cdrom2 auto umask=0022,user,iocharset=iso8859-2,codepage=852,noauto,ro,exec,users 0 0”
                ezt a sort nem én találtam ki – A MAndrake csinálta magának.

                Eszközt nem érzékeli: Mandrake vezérlõpultban a hardverek között ilyenkor egyáltalán nincs hdc – eszköz. – Ha a fenti módon írom be a sort viszont akkor van.

                submount-ot rpm-el felraktam – látszólag rendesen felment. Az ott leírtak szerint módosítottam az fstab-ot, de valami kernel problémát írt ki. ( elõször el sem indult – aztán visszarakta az eredeti fstabot akkor írta bootolás közben )

                Biztosan béna vagyok – segíts még ha tudsz légyszíves !

                #2014820
                admin
                Adminisztrátor

                  Közben tovább agyalok a dolgon.

                  A rendszer által automatikusa módosított fstab fájl 1. sora ez:

                  # This file is edited by fstab-sync – see ‘man fstab-sync’ for details

                  Megnéztem a man fstab-sync -et:


                  fstab-sync(8) fstab-sync(8)

                  NAME
                  fstab-sync – Update the /etc/fstab file in response to HAL events

                  SYNOPSIS
                  fstab-sync [-cv?] [-a|–add UDI] [-r|–remove UDI] [-c|–clean]
                  [-v|–verbose] [-?|–help]

                  DESCRIPTION
                  This program serves one major purpose: Update the file systems table
                  file /etc/fstab and create/remove mount points in /media in response to
                  HAL events. This program is usually never run directly from a shell;
                  instead it is invoked as a callout from the /etc/hal/device.d directory
                  by the HAL daemon.

                  Additionally, this program offers an option of removing any trace of
                  its previous actions from the file systems table file. Specifically
                  this happens when invoked by the HAL daemon for the root computer
                  device object which only happens when the HAL daemon is starting up.
                  Thus, when starting the HAL daemon, the /etc/fstab file will be com-
                  pletely sanitized, e.g. all entries previously added by the fstab-sync
                  program will be removed. When probing for hardware during the startup
                  of the HAL daemon, the fstab-sync program will be invoked several times
                  to add new entries to the /etc/fstab file.

                  All entries added to /etc/fstab by fstab-sync can be identified by the
                  use of the option managed in the options field. This option is a no-op;
                  it is only used to uniquely identify entries added by the fstab-sync
                  program.

                  When the /etc/fstab file is written by fstab-sync, a comment with a
                  link to this manual page is added to the file.

                  CONTROLLING WHAT ENTRIES TO ADD
                  The fstab-sync program relies on properties on the relevant HAL device
                  objects in order to determine if and how an entry to the /etc/fstab
                  file should be added. Specifically, entries are added for hal device
                  objects in order to determine if and how an entry to the /etc/fstab
                  file should be added. Specifically, entries are added for hal device
                  objects of respectively capability storage and volume only if appropri-
                  ate storage.policy and volume.policy properties are set. Also, the
                  storage.policy.default properties on the root computer device object
                  are taken into account. See the HAL specification on [url url=http://freedesk-]http://freedesk-[/url]
                  top.org/Software/hal for more information.

                  By default, the /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi
                  file specifies the policy – this file should never be edited by the
                  system administrator as it might get updated by the OS vendor for secu-
                  rity updates. Instead, system- or site-specific rules can be put in the
                  /usr/share/hal/fdi/95userpolicy directory.

                  Device information files are processed for every hal device object in
                  the /usr/share/hal/fdi/ directory in alphabetical order including
                  directories. Hence, files in the 90defaultpolicy directory are pro-
                  cessed before files 95userpolicy directory, 95userpolicy/a.fdi is pro-
                  cessed before 95userpolicy/b.fdi and so on. In addition, directives in
                  specific files are processed in a top-down fashion.

                  A number of sample policy files for various uses should be available in
                  the /usr/share/doc/hal-0.4.7/conf directory. For example, the policy
                  file storage-non-fixed.fdi ensures that only fixed optical and floppy
                  drives gets tagged as mountable which ensures that e.g. hard disk par-
                  titions on a fixed disk won’t get added to the /etc/fstab file. Simi-
                  larly the storage-skip-all.fdi file will ensure no entries are ever
                  added.

                  DISABLING FSTAB-SYNC
                  Automatic updates of the /etc/fstab file by the fstab-sync program from
                  the HAL daemon can be disabled by changing the 50-fstab-sync.hal sym-
                  link in /etc/hal/device.d directory to point to /bin/false

                  OPTIONS
                  The following options are supported:

                  –add=UDI
                  Add an entry to the /etc/fstab file by giving a HAL Unique
                  Device Identifier

                  –remove=UDI
                  Remove an entry from fstab by giving a HAL Unique Device Identi-
                  fier

                  –clean
                  Clean all entries generated by fstab-sync from the /etc/fstab
                  file

                  –verbose
                  Report detailed information about operation progress

                  –usage
                  Display brief usage message

                  –help Show options

                  LOCKING
                  The fstab-sync program uses flock(2) for locking the /etc/fstab file
                  when adding or removing entries. This happens when the HAL daemon
                  starts up, when there’s a media change event or when a storage device
                  is hotplugged.

                  SEE ALSO
                  fstab(5), http://freedesktop.org/Software/hal

                  BUGS
                  One known bug is that the HAL daemon has to be running when cleaning
                  the /etc/fstab file. Please send bug reports to the appropriate dis-
                  tribution bug tracker or the HAL mailing list – see [url url=http://freedesk-]http://freedesk-[/url]
                  top.org/Software/HalTraces for more information.

                  fstab-sync(8)



                  Bocs hogy ilyen hosszú.
                  Sajnos az én angoltudásom elég szegényes. – De nem lehet hogy ebbõl kiderül miért módosítja az fstab-ot ?

                  Valaki venné a fáradtságot hogy átfussa nekem ?

                  Köszi !

                  #2014821
                  csablak
                  Felhasználó

                    Az én dvd-m így van becsatolva:
                    /dev/hdb /media/dvdrom auto umask=0,user,iocharset=iso8859-2,codepage=852,noauto,ro 0 0
                    Természetesen ekkor kell egy media/dvdrom könyvtárnak lennie.

                    #2014822
                    admin
                    Adminisztrátor

                      Az én dvd-m így van becsatolva:
                      /dev/hdb /media/dvdrom auto umask=0,user,iocharset=iso8859-2,codepage=852,noauto,ro 0 0
                      Természetesen ekkor kell egy media/dvdrom könyvtárnak lennie.
                      [align=right][snapback]133023[/snapback][/align]

                      Köszi majd kipróbálom így is – mert még idõnként mindíg kitörlõdik.
                      ( nem lehet valami hardware dolog ? – bár win alatt nem volt soha ilyen )

                      #2014823
                      admin
                      Adminisztrátor

                        Ja közben a gépben átcseréltem a két lemezegységet.

                        A ide kábel végén lévõ egység tûnik el mindíg , tehát a dvd-k jók. Esetleg a kábel ?

                      10 bejegyzés megtekintése - 1-10 / 12
                      • Be kell jelentkezni a hozzászóláshoz.