PDA

View Full Version : come capisco quanti e quali sono le memorie di massa sul mio PC?


cagnaluia
14-05-2009, 12:59
Ciao..

con linux, solo terminale.
Come faccio a capire quali, come si chiamano, quante e le partizioni di qualsiasi memoria di messa del mio PC?
EIDE, SATA e USB che siano?

per esempio, ho collegato una CF su usb.. ma nn so chi è.. ?

leletop
14-05-2009, 13:26
da root con il comando fdisk -l

cagnaluia
14-05-2009, 13:27
un bel casotto

fdisk -l

Disk /dev/sda: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00062d5b

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19693 158183991 83 Linux
/dev/sda2 19694 20023 2650725 5 Extended
/dev/sda5 19694 20023 2650693+ 82 Linux swap / Solaris

Disk /dev/sdb: 2052 MB, 2052513792 bytes
64 heads, 62 sectors/track, 1010 cylinders
Units = cylinders of 3968 * 512 = 2031616 bytes
Disk identifier: 0x59c07261

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sdb1 ? 1070400 2123232 2088818490 1 FAT12
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(124, 38, 11) logical=(1070399, 57, 16)
Partition 1 has different physical/logical endings:
phys=(344, 195, 26) logical=(1040830, 48, 49)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 270658 1290328 2023024920+ 42 SFS
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(453, 241, 50) logical=(270657, 12, 21)
Partition 2 has different physical/logical endings:
phys=(26, 59, 22) logical=(207925, 62, 41)
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 428832 428998 329394 6f Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(367, 183, 2) logical=(428831, 36, 42)
Partition 3 has different physical/logical endings:
phys=(102, 116, 32) logical=(428997, 38, 17)
Partition 3 does not end on cylinder boundary.
/dev/sdb4 352411 622299 535459114 49 Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(332, 76, 4) logical=(352410, 0, 33)
Partition 4 has different physical/logical endings:
phys=(344, 78, 21) logical=(622298, 43, 10)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

cagnaluia
14-05-2009, 13:28
leggo quindi "sda" il disco principale...

e poi.. tutto quel casotto? "sdb" ?

cagnaluia
14-05-2009, 13:29
ok, "sdb"...


come cancello tutto sdb?

se faccio


cfdisk /dev/sdb


FATAL ERROR: Bad primary partition 0: Partition begins after end-of-disk
Press any key to exit cfdisk

cagnaluia
14-05-2009, 13:35
ok, fatto con qualche fdisk

eliminato tutto..

e ricreata una partizione linux sdb1 con cfdisk.


domanda:

cosa serve
#
tune2fs -c 0 /dev/sdb1
???????????????????????

cagnaluia
14-05-2009, 13:55
che non ci sarà mai il controllo sulla partizione..

perchè si fa questo?

mykol
14-05-2009, 13:56
anche un

df -H

ti elenca tutti i dischi e le partizioni montate

[giorgio@mandriva_2007_spring ~]$ df -H
Filesystem Dimens. Usati Disp. Uso% Montato su
/dev/hda6 12G 12G 471M 96% /
/dev/hdc1 95G 95G 12M 100% /mnt/dati
/dev/hdc2 156G 154G 2,3G 99% /mnt/dati1
/dev/hda1 88G 80G 8,2G 91% /mnt/hda1
[giorgio@mandriva_2007_spring ~]$