[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Festplatte auf Existenz testen
[Thread Prev] | [Thread Next]
- Subject: Re: Festplatte auf Existenz testen
- From: Marc Haber <mh+uugrn@xxxxxxxxxxxx>
- Date: Wed, 2 May 2012 21:08:36 +0200
- To: uugrn@xxxxxxxxxxxxxxx
On Fri, Apr 27, 2012 at 01:59:23PM +0200, Werner Holtfreter wrote: > wie kann ich in einem Linux-Shell-Script pruefen, ob an > /dev/disk/by-path/pci-0000:00:09.0-scsi-3:0:0:0 > eine Festplatte steckt? (In diesem Fall soll ein Backup-Script laufen.) $ sudo file -s $(readlink -f /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0) /dev/sdb: sticky x86 boot sector; partition 1: ID=0xee, starthead 0, startsector 1, 1465149167 sectors, extended partition table (last)\011, code offset 0x63 Hilft das? Gruesse Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062 -- UUGRN e.V. http://www.uugrn.org/ http://mailman.uugrn.org/mailman/listinfo/uugrn Wiki: https://wiki.uugrn.org/UUGRN:Mailingliste Archiv: http://lists.uugrn.org/