hai ca am gasit o varianta. sper ca asta e regula: intii apare discul si apoi partitiile lui.
pe cine intereseaza: http://www.lug.ro/~vang/unix/fdisk-l.txt (se poate adauga in rc.local ca se se ruleze la fiecare reboot - cu output-ul redirectat undeva, of course) On Thu, Feb 07, 2002 at 04:28:53PM +0200, Viorel Anghel wrote: > On Thu, Feb 07, 2002 at 04:21:45PM +0200, Matei Conovici wrote: > > > > > > 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... > > > > > 48 0 8890368 rd/c0d0 0 646600 9394026 0 0 8662557 117682262 0 > > > 6529304 1473617040 418944612 > > > > Pai asta nu e tot array-ul ? > > da man, pe asta vreau sa fac fdisk -l, ceea ce este ok. dar, > cat /proc/partitions - beton. cum stiu* mai departe care e disk, care e > partitie? (in afara de fdisk -l pe toate si 2>/dev/null) > > *"cum stiu" la modul generic, sa am o regula. de exemplu, daca as face > regula "ce nu contine cifre" ar fi bine pentru hda, hdb, sda, sdb etc, dar > nu merge din cauza lui rd/c0d0... > > > -- > ___ > <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.
