Re: Re: [opensuse-multimedia] Anzahl der Titel und Kapitel einer DVD abfragen

Al Bogner <suse-multimedia-Wco+c2LKsy1DayIqkcHqbfyE8WyFmGdT@public.gmane.org>
Newsgroups gmane.linux.suse.multimedia.german
Message-ID <[email protected]>
Am Freitag, 19. Februar 2010 23:41:37 schrieb David Haller:

Hallo David,

> Am Fre, 19 Feb 2010, Al Bogner schrieb:
> >Ich frage so ab, ob gesichert werden soll, d.h. die eSATA-HD angeschlossen
> >ist.
> >
> >CHECKDIR=`df | grep "esata2_tapes"`
> >		if test -z "$CHECKDIR" ; then
> >
> >Keine Ahnung, ob mtab besser wäre.
> 
> Nein.
> 
> if grep -q '/esata2_tapes' /proc/mounts; then
> 
> Du solltest möglichst den kompletten Mountpfad verwenden.

Ich denke mittlerweile schon, dass mtab zumindest einfacher wäre.

df | grep "/esata2_tapes"
192.168.2.100:/esata2_tapes

Das ist nämlich der Grund weil die HD voll geworden ist. Das Skript hat wegen 
der NFS.Partition mit ähnlichem Namen gemeint, dass die eSATA-HD angeschlossen 
ist.

grep "/esata2_tapes xfs" /etc/mtab
kein Ergebnis

Al
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.