(Gelöst)2. Festplatte als /srv einbinden ?

  • Hallo
    Ausgabe von ......



    andre@VDR1:~$ ls -Ral |less
    .:
    insgesamt 56
    drwxr-xr-x 9 andre andre 4096 2011-11-10 18:43 .
    drwxr-xr-x 3 root root 4096 2011-11-08 19:59 ..
    -rw------- 1 andre andre 2150 2011-11-10 18:52 .bash_history
    -rw-r--r-- 1 andre andre 220 2011-11-08 19:59 .bash_logout
    -rw-r--r-- 1 andre andre 3353 2011-11-08 19:59 .bashrc
    drwx------ 3 andre andre 4096 2011-11-08 20:08 .cache
    drwx------ 3 andre andre 4096 2011-11-08 21:06 .dbus
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .gconf
    drwx------ 2 andre andre 4096 2011-11-08 21:07 .gconfd
    -rw-r--r-- 1 andre andre 675 2011-11-08 19:59 .profile
    -rw-r--r-- 1 root root 72 2011-11-08 21:52 .selected_editor
    drwxr-xr-x 6 root root 4096 2011-11-10 18:42 sonstiges
    -rw-r--r-- 1 andre andre 0 2011-11-10 18:43 .sudo_as_admin_successful


    ./.cache:
    insgesamt 12
    drwx------ 3 andre andre 4096 2011-11-08 20:08 .
    drwxr-xr-x 9 andre andre 4096 2011-11-10 18:43 ..
    -rw-r--r-- 1 andre andre 0 2011-11-08 20:05 motd.legal-displayed
    drwx------ 2 root root 4096 2011-11-08 20:08 xine-lib
    : Keine Berechtigung
    ls: Öffnen von Verzeichnis ./.mc/cedit nicht möglich: Keine Berechtigung


    ./.dbus:
    insgesamt 12
    drwx------ 3 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 9 andre andre 4096 2011-11-10 18:43 ..
    drwx------ 2 andre andre 4096 2011-11-08 21:06 session-bus


    ./.dbus/session-bus:
    insgesamt 12
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwx------ 3 andre andre 4096 2011-11-08 21:06 ..
    -rw-r--r-- 1 andre andre 464 2011-11-08 21:06 83bb8db4d0ce2f48165398b600000005-1


    ./.gconf:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 9 andre andre 4096 2011-11-10 18:43 ..


    ./.gconfd:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:07 .
    drwxr-xr-x 9 andre andre 4096 2011-11-10 18:43 ..
    -rwx------ 1 andre andre 0 2011-11-08 21:07 saved_state


    ./.mc:
    insgesamt 32
    drwx------ 3 andre andre 4096 2011-11-10 18:49 .
    drwxr-xr-x 9 andre andre 4096 2011-11-10 18:43 ..
    drwx------ 2 root root 4096 2011-11-08 21:52 cedit
    -rw-r--r-- 1 root root 152 2011-11-10 18:32 filepos
    -rw------- 1 andre andre 656 2011-11-10 18:49 history
    -rw-r--r-- 1 andre andre 2569 2011-11-10 18:49 ini
    -rw-r--r-- 1 andre andre 725 2011-11-10 18:49 panels.ini
    -rw-r--r-- 1 andre andre 35 2011-11-10 18:49 Tree


    ./.mozilla:
    insgesamt 16
    drwx------ 4 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 9 andre andre 4096 2011-11-10 18:43 ..
    drwx------ 2 andre andre 4096 2011-11-08 21:06 extensions
    drwx------ 4 andre andre 4096 2011-11-08 21:06 firefox


    ./.mozilla/extensions:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwx------ 4 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox:
    insgesamt 20
    drwx------ 4 andre andre 4096 2011-11-08 21:06 .
    drwx------ 4 andre andre 4096 2011-11-08 21:06 ..
    drwx------ 6 andre andre 4096 2011-11-08 21:06 2dbjxqnh.default
    drwx------ 2 andre andre 4096 2011-11-08 21:06 Crash Reports
    -rw-r--r-- 1 andre andre 94 2011-11-08 21:06 profiles.ini


    ./.mozilla/firefox/2dbjxqnh.default:
    insgesamt 16928
    drwx------ 6 andre andre 4096 2011-11-08 21:06 .
    drwx------ 4 andre andre 4096 2011-11-08 21:06 ..
    drwx------ 2 andre andre 4096 2011-11-08 21:06 bookmarkbackups
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 Cache
    -rw------- 1 andre andre 65536 2011-11-08 21:06 cert8.db
    -rw------- 1 andre andre 185 2011-11-08 21:06 compatibility.ini
    -rw-r--r-- 1 andre andre 229376 2011-11-08 21:06 content-prefs.sqlite
    -rw-r--r-- 1 andre andre 524288 2011-11-08 21:06 cookies.sqlite
    -rw-r--r-- 1 andre andre 284 2011-11-08 21:06 extensions.ini
    -rw-r--r-- 1 andre andre 393216 2011-11-08 21:06 extensions.sqlite
    -rw-r--r-- 1 andre andre 163840 2011-11-08 21:06 formhistory.sqlite
    -rw------- 1 andre andre 16384 2011-11-08 21:06 key3.db
    -rw-r--r-- 1 andre andre 1024 2011-11-08 21:06 localstore.rdf
    -rw-r--r-- 1 andre andre 3135 2011-11-08 21:06 mimeTypes.rdf
    drwx------ 2 andre andre 4096 2011-11-08 21:06 minidumps
    -rw-r--r-- 1 andre andre 0 2011-11-08 21:06 .parentlock
    -rw-r--r-- 1 andre andre 65536 2011-11-08 21:06 permissions.sqlite
    -rw-r--r-- 1 andre andre 10485760 2011-11-08 21:06 places.sqlite
    -rw------- 1 andre andre 2375 2011-11-08 21:06 prefs.js
    -rw-r--r-- 1 andre andre 11874 2011-11-08 21:06 search.json
    -rw-r--r-- 1 andre andre 65536 2011-11-08 21:06 search.sqlite
    -rw------- 1 andre andre 16384 2011-11-08 21:06 secmod.db
    -rw------- 1 andre andre 475 2011-11-08 21:06 sessionstore.js
    drwxr-xr-x 2 andre andre 4096 2011-11-08 21:06 startupCache
    -rw-r--r-- 1 andre andre 5242880 2011-11-08 21:06 urlclassifier3.sqlite
    -rw-r--r-- 1 andre andre 154 2011-11-08 21:06 urlclassifierkey3.txt


    ./.mozilla/firefox/2dbjxqnh.default/bookmarkbackups:
    insgesamt 16
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwx------ 6 andre andre 4096 2011-11-08 21:06 ..
    -rw------- 1 andre andre 5249 2011-11-08 21:06 bookmarks-2011-11-08.json


    ./.mozilla/firefox/2dbjxqnh.default/Cache:
    insgesamt 164
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 .
    drwx------ 6 andre andre 4096 2011-11-08 21:06 ..
    drwx------ 2 andre andre 4096 2011-11-08 21:06 0
    drwx------ 2 andre andre 4096 2011-11-08 21:06 1
    drwx------ 2 andre andre 4096 2011-11-08 21:06 2
    drwx------ 2 andre andre 4096 2011-11-08 21:06 3
    drwx------ 2 andre andre 4096 2011-11-08 21:06 4
    drwx------ 2 andre andre 4096 2011-11-08 21:06 5
    drwx------ 2 andre andre 4096 2011-11-08 21:06 6
    drwx------ 2 andre andre 4096 2011-11-08 21:06 7
    drwx------ 2 andre andre 4096 2011-11-08 21:06 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 9
    drwx------ 3 andre andre 4096 2011-11-08 21:06 A
    drwx------ 2 andre andre 4096 2011-11-08 21:06 B
    drwx------ 2 andre andre 4096 2011-11-08 21:06 C
    -rw------- 1 andre andre 21700 2011-11-08 21:06 _CACHE_001_
    -rw------- 1 andre andre 9406 2011-11-08 21:06 _CACHE_002_
    -rw------- 1 andre andre 42034 2011-11-08 21:06 _CACHE_003_
    -rw------- 1 andre andre 8468 2011-11-08 21:06 _CACHE_MAP_
    drwx------ 2 andre andre 4096 2011-11-08 21:06 D
    drwx------ 2 andre andre 4096 2011-11-08 21:06 E
    drwx------ 2 andre andre 4096 2011-11-08 21:06 F


    ./.mozilla/firefox/2dbjxqnh.default/Cache/0:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/1:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/2:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/3:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/4:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/5:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/6:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/7:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/8:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/9:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/A:
    insgesamt 12
    drwx------ 3 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..
    drwx------ 2 andre andre 4096 2011-11-08 21:06 0F


    ./.mozilla/firefox/2dbjxqnh.default/Cache/A/0F:
    insgesamt 48
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    :
    drwx------ 3 andre andre 4096 2011-11-08 21:06 ..
    -rw------- 1 andre andre 37450 2011-11-08 21:06 73418d01


    ./.mozilla/firefox/2dbjxqnh.default/Cache/B:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/C:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/D:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/E:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/Cache/F:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwxr-xr-x 18 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/minidumps:
    insgesamt 8
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwx------ 6 andre andre 4096 2011-11-08 21:06 ..


    ./.mozilla/firefox/2dbjxqnh.default/startupCache:
    insgesamt 372
    drwxr-xr-x 2 andre andre 4096 2011-11-08 21:06 .
    drwx------ 6 andre andre 4096 2011-11-08 21:06 ..
    :
    -rw-r--r-- 1 andre andre 370641 2011-11-08 21:06 startupCache.8.little


    ./.mozilla/firefox/Crash Reports:
    insgesamt 12
    drwx------ 2 andre andre 4096 2011-11-08 21:06 .
    drwx------ 4 andre andre 4096 2011-11-08 21:06 ..
    -rw------- 1 andre andre 10 2011-11-08 21:06 InstallTime20110928224508


    ./sonstiges:
    insgesamt 24
    drwxr-xr-x 6 root root 4096 2011-11-10 18:42 .
    drwxr-xr-x 9 andre andre 4096 2011-11-10 18:43 ..
    drwxrwxrwx 2 root root 4096 2011-11-08 20:02 audio
    drwxrwxrwx 2 root root 4096 2011-11-08 20:02 picture
    drwxr-xr-x 3 root root 4096 2011-11-08 19:56 share
    drwxrwxrwx 2 root root 4096 2011-11-08 20:02 video


    ./sonstiges/audio:
    insgesamt 8
    drwxrwxrwx 2 root root 4096 2011-11-08 20:02 .
    drwxr-xr-x 6 root root 4096 2011-11-10 18:42 ..


    ./sonstiges/picture:
    insgesamt 8
    drwxrwxrwx 2 root root 4096 2011-11-08 20:02 .
    drwxr-xr-x 6 root root 4096 2011-11-10 18:42 ..


    ./sonstiges/share:
    insgesamt 12
    drwxr-xr-x 3 root root 4096 2011-11-08 19:56 .
    drwxr-xr-x 6 root root 4096 2011-11-10 18:42 ..
    drwxr-xr-x 4 vdr vdr 4096 2011-11-10 18:21 vdr


    ./sonstiges/share/vdr:
    insgesamt 16
    drwxr-xr-x 4 vdr vdr 4096 2011-11-10 18:21 .
    drwxr-xr-x 3 root root 4096 2011-11-08 19:56 ..
    drwxr-xr-x 3 vdr vdr 4096 2011-11-08 22:34 @Tagesthemen_Moderation:_Caren_Miosga
    lrwxrwxrwx 1 root root 16 2011-11-10 18:42 TS1-FAT32 -> /media/TS1-FAT32
    lrwxrwxrwx 1 root root 15 2011-11-10 18:42 TS2-NTFS -> /media/TS2-NTFS
    -rw-r--r-- 1 vdr vdr 0 2011-11-10 18:21 .update
    drwxr-xr-x 3 vdr vdr 4096 2011-11-10 18:21 @Wissenswert_-_Scientia_potentia_est_Die_Weltvermesser


    ./sonstiges/share/vdr/@Tagesthemen_Moderation:_Caren_Miosga:
    insgesamt 12
    drwxr-xr-x 3 vdr vdr 4096 2011-11-08 22:34 .
    drwxr-xr-x 4 vdr vdr 4096 2011-11-10 18:21 ..
    drwxr-xr-x 2 vdr vdr 4096 2011-11-08 22:34 2011-11-08.22.34.1-0.rec


    ./sonstiges/share/vdr/@Tagesthemen_Moderation:_Caren_Miosga/2011-11-08.22.34.1-0.rec:
    insgesamt 482256
    drwxr-xr-x 2 vdr vdr 4096 2011-11-08 22:34 .
    drwxr-xr-x 3 vdr vdr 4096 2011-11-08 22:34 ..
    -rw-r--r-- 1 vdr vdr 493688752 2011-11-08 22:44 00001.ts
    -rw-r--r-- 1 vdr vdr 120312 2011-11-08 22:44 index
    -rw-r--r-- 1 vdr vdr 411 2011-11-08 22:34 info
    -rw-r--r-- 1 vdr vdr 4 2011-11-08 22:34 resume


    ./sonstiges/share/vdr/@Wissenswert_-_Scientia_potentia_est_Die_Weltvermesser:
    insgesamt 12
    drwxr-xr-x 3 vdr vdr 4096 2011-11-10 18:21 .
    drwxr-xr-x 4 vdr vdr 4096 2011-11-10 18:21 ..
    drwxr-xr-x 2 vdr vdr 4096 2011-11-10 18:21 2011-11-10.18.21.48-0.rec


    ./sonstiges/share/vdr/@Wissenswert_-_Scientia_potentia_est_Die_Weltvermesser/2011-11-10.18.21.48-0.rec:
    insgesamt 12
    drwxr-xr-x 2 vdr vdr 4096 2011-11-10 18:21 .
    drwxr-xr-x 3 vdr vdr 4096 2011-11-10 18:21 ..
    -rw-r--r-- 1 vdr vdr 0 2011-11-10 18:21 00001.ts
    -rw-r--r-- 1 vdr vdr 0 2011-11-10 18:21 index
    -rw-r--r-- 1 vdr vdr 748 2011-11-10 18:21 info


    ./sonstiges/video:
    insgesamt 8
    drwxrwxrwx 2 root root 4096 2011-11-08 20:02 .
    drwxr-xr-x 6 root root 4096 2011-11-10 18:42 ..
    (END)



    Ok, die anderen Ordner audio/pictures/share/vdr/video hab ich jetzt auch auf die Platte sdb kopiert.
    Das Verzeichnis video.00 existiert im nicht gemounteten zustand, aber was meinst Du mit " und User/Group vdr haben".
    Wie bekomme ich das raus ?


    EDIT: Sorry ist ein bisschen viel geworden.


    MFG
    Andre

    VDR 1 (Produktiv):Antec Fusion Remote/M3N78-EM/Athlon X2 5400+/4GB Ram/32GB SSD/1TB SATA Samsung/Asus SATA DVD-Brenner/Nova-S2 HD/Nova-SE2/350W BeQuite/ an Panasonic 37" Plasma


    VDR 2: Activy 350/ 500GB Samsung /TT-Budget 1401/1500 dvb-s/Röhren TV

  • aber was meinst Du mit " und User/Group vdr haben".
    Wie bekomme ich das raus ?


    Einfach mal folgendes machen:

    Code
    sudo chown -R vdr:vdr <Pfad zur gemounteten Partition auf sdb>

    yaVDR-Dokumentation (Ceterum censeo enchiridia esse lectitanda.)

  • Hallo
    Ok, hab ich ausgeführt...
    ...hatte jetzt aber noch Probleme mit der fstab. Trotz "mount -a" keine Fehler ausgespuckt hat, kam der VDR nicht hoch.
    Selbe Fehlermeldung wie vorher.
    Im Ubuntuwiki steht für <pass> ...


    Gibt an, ob und in welcher Reihenfolge die Partition beim Systemstart in die regelmäßigen Dateisystemprüfungen einbezogen wird. Meist ist hier für die Root-Partition (die Wurzel des Dateisystems, "/") 1 eingetragen, für alle anderen Partitionen 2 (danach prüfen) oder 0 (keine Überprüfung) z.B. für Windows-Dateisysteme.


    ...demnach müsste ich anstatt "/dev/sdb1 /srv xfs errors=remount-ro 0 1" eigentlich -> "/dev/sdb1 /srv xfs errors=remount-ro 0 2"


    Auch jetzt startete der VDR nicht, bzw. mit der Fehlermeldung. Erst als ich Quick&Dirty "errors=remount-ro" gegen "defaults" tauschte,
    fährt der VDR anstandslos hoch, und die 2TB FP wahr endlich eingebunden.


    Puuh, wahr das ne Geburt. Ich hab zwar noch kein blassen Schimmer ob das mit dem Wert "defaults" so OK ist, aber es läuft.


    Und hier nochmal eine kleine Zusammenfassung


    2 TB xfs formatierte Media Festplatte als /srv in yavdr 0.4 (Final) einbinden


    Platte vorher mit zB. Gparted in xfs formatieren.


    Platte anschliessen und den VDR hochfahren.


    Auf der Konsole alle angeschlossenen Festplatten und Partitionen anzeigen lassen :


    "sudo blkid" <Enter>


    Die 2 TB Festplatte trägt den Namen sdb.
    sdb1 ist dann die erste Partition auf der Medienplatte.


    Manuell mounten...


    "mount /dev/sdb1 /srv"


    ...dann auf der Konsole :


    mkdir /srv/vdr
    mkdir /srv/vdr/video.00
    mkdir /srv/audio
    mkdir /srv/picture
    mkdir /srv/share
    mkdir /srv/share/vdr
    mkdir /srv/xbmc
    mkdir /srv/xbmc/music
    mkdir /srv/xbmc/videos
    mkdir /srv/xbmc/photos



    Damit die Festplatte automatisch eingebunden wird - Eintrag in die "/etc/fstab".
    Dazu folgende Zeilen ans Ende der Datei fstab einfügen :


    # mediadisk
    /dev/sdb1 /srv xfs defaults 0 2


    ...oder...


    UUID=052010b6-3852-4d3a-93ae-048e3bb250a7 /srv defaults 0 2



    Anschliesend ganz wichtig -> "mount -a" Da dürfen keine Fehler kommen, ansonsten nochmal prüfen.



    Dann noch ein
    "sudo chown -R vdr:vdr /srv"
    "sudo chown -R vdr:vdr /srv/vdr"
    "sudo chown -R vdr:vdr /srv/xbmc"



    Damit sich die Platte nach 10 Minuten schlafen legt,
    in der Datei /etc/hdparm.con folgende Zeilen am Ende einfügen.


    /dev/sdb {
    spindown_time = 120
    }



    Mit 'hdparm -C /dev/sdb' auf der Konsole kann man das kontrollieren.


    Danke, an alle die mir hier geholfen haben, alleine hätte ich das nicht geschaft.
    Ich hab hier auch einiges aus Bernd's HOWTO genommen, und einige Zitate verwendet...hoffe es ist keiner böse.


    Das I-tüpfelchen währe natürlich, wenn man sowas im Webfrontend machen könnte....ala Button für
    "2. Festplatte für Aufnahmen/media bereitstellen"...
    ...wenn's nicht eh schon in der Schublade liegt. :D


    Aber es gibt wahrscheinlich erstmal andere wichtige Dinge, die noch zu erledigen sind.



    MFG
    Andre

    VDR 1 (Produktiv):Antec Fusion Remote/M3N78-EM/Athlon X2 5400+/4GB Ram/32GB SSD/1TB SATA Samsung/Asus SATA DVD-Brenner/Nova-S2 HD/Nova-SE2/350W BeQuite/ an Panasonic 37" Plasma


    VDR 2: Activy 350/ 500GB Samsung /TT-Budget 1401/1500 dvb-s/Röhren TV

    Einmal editiert, zuletzt von Andre Uhlstein ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!