On Thu, Feb 07, 2002 at 04:13:07PM +0200, Viorel Anghel wrote:
> On Thu, Feb 07, 2002 at 04:04:47PM +0200, Dumitru Ciobarcianu wrote:
> >
> > cat /proc/partitions ? :)
>
> fuc. stiam eu ca trebe' sa fie ceva obvious... ;-)
> si daca are minor# 0 pot sa presupun "safe" ca este disk si nu partitie?
nu. am vazut...
8 0 2062368 sda 160418 2101922 5760744 3241600 43314 308764
2426450 12525460 0 4111440 15775460
[...]
8 16 4194157 sdb 140581 8404522 9657791 4702190 28025 1076007
7443969 10224530 0 4576730 14930020
[...]
48 0 8890368 rd/c0d0 0 646600 9394026 0 0 8662557 117682262 0
6529304 1473617040 418944612
48 1 102384 rd/c0d0p1 0 705 1904 0 0 19 150 0 302 1473610660
-1070840086
[...]
atunci, cum fac diferenta intre disk si partitie in cazul rd/c0d0 -
rd/c0d0p1 ? (ma rog, in acest caz particular e clar, dar nu stiu cum sa
generalizez, poate alte controlere folosesc alta conventie)
>
> >
> > //Cioby
> >
> >
> >
> > On Jo, 2002-02-07 at 15:53, Viorel Anghel wrote:
> > >
> > > problema: se cere o bucata de cod shell care sa listeze toate hardiskurile
> > > de pe un sistem linux (mai exact sa faca 'fdisk -l' pe fiecare din ele).
> > >
> > > capcane:
> > > - se poate folosi direct 'fdisk -l' fara parametrii dar
> > > 1. versiunile mai vechi nu suporta (?)
> > > 2. nu listeaza diskurile pe controler raid scsi ide (asta sigur, am vazut!)
> > > - se poate parsa outputul de la mount. dar ce format au device-urile pe
> > > diverse controlere scsi ide? (/dev/rd/c0d0 este la mylex de ex). in plus,
> > > poate am diskuri care nu sunt montate.
> > > - se poate parsa outputul de la dmesg. dar ce format au mesajele de la
> > > diverse controlere scsi ide?
> > >
> > > idei? exista ceva ultrageneric?
> > >
> > > ps. la intrebarea de ce, raspunsul este ca vreau sa rulez acelasi script pe
> > > mai multe masini, fara modificari, din cron (urmat de backupuri stuff)
> > >
> > > --
> > > ___
> > > <o-o> Viorel ANGHEL <vang @ lug.ro>
> > > [`-']
> > > -"-"- In Linux We Trust.
> > > ---
> > > Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> > > unsubscribe from this list.
> >
> >
> >
> > ---
> > Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> > unsubscribe from this list.
>
> --
> ___
> <o-o> Viorel ANGHEL <vang @ lug.ro>
> [`-']
> -"-"- In Linux We Trust.
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.
--
___
<o-o> Viorel ANGHEL <vang @ lug.ro>
[`-']
-"-"- In Linux We Trust.
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.