Portál AbcLinuxu, 13. května 2025 23:21
#cat /proc/partitions 8 0 156290904 sda 8 1 8193118 sda1 8 2 208845 sda2 8 3 145018755 sda3 8 4 2867602 sda4 # hdparm -g /dev/sda /dev/sda: geometry = 19457/255/63, sectors = 312581808, start = 0Poradi nekdo jak mam prepocitat bloky na sektory, abych to mohl zapsat zpet? Dekuju moc
[r@kvaslinux ~]# echo "(2 * 8193118 + 63) / (63 * 255)"|bc -l 1019.99993775287892934951 [r@kvaslinux ~]# echo "(208845 * 2) /(63 * 255)"|bc -l 26.00000000000000000000 [r@kvaslinux ~]# echo "(145018755 * 2) /(63 * 255)"|bc -l 18054.00000000000000000000 [r@kvaslinux ~]# echo "(2867602 * 2) /(63 * 255)"|bc -l 356.99993775287892934951tj.
1. 1020 cyl 2. 26 3. 18054 4. 357
compaq:~# gpart -v /dev/sda dev(/dev/sda) mss(512) chs(19457/255/63)(LBA) #s(312576705) size(152625mb) Primary partition(1) type: 000(0x00)(unused) size: 0mb #s(0) s(0-0) chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r hex: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Primary partition(2) type: 000(0x00)(unused) size: 0mb #s(0) s(0-0) chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r hex: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Primary partition(3) type: 000(0x00)(unused) size: 0mb #s(0) s(0-0) chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r hex: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Primary partition(4) type: 000(0x00)(unused) size: 0mb #s(0) s(0-0) chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r hex: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Begin scan... Possible partition(Windows NT/W2K FS), size(8001mb), offset(0mb) type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX) size: 8001mb #s(16386232) s(63-16386294) chs: (0/1/1)-(1019/254/58)d (0/1/1)-(1019/254/58)r hex: 00 01 01 00 07 FE FA FB 3F 00 00 00 B8 08 FA 00 Possible partition(Windows NT/W2K FS), size(203mb), offset(8001mb) type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX) size: 203mb #s(417688) s(16386300-16803987) chs: (1020/0/1)-(1023/254/63)d (1020/0/1)-(1045/254/61)r hex: 00 00 C1 FC 07 FE FF FF FC 08 FA 00 98 5F 06 00 Possible partition(Linux ext2), size(141619mb), offset(8205mb) type: 131(0x83)(Linux ext2 filesystem) size: 141619mb #s(290037504) s(16803990-306841493) chs: (1023/254/63)-(1023/254/63)d (1046/0/1)-(19099/254/57)r hex: 00 FE FF FF 83 FE FF FF 96 68 00 01 00 9F 49 11 Possible partition(Linux swap), size(2800mb), offset(149824mb) type: 130(0x82)(Linux swap or Solaris/x86) size: 2800mb #s(5735200) s(306841500-312576699) chs: (1023/254/63)-(1023/254/63)d (19100/0/1)-(19456/254/58)r hex: 00 FE FF FF 82 FE FF FF 9C 07 4A 12 20 83 57 00 End scan. Checking partitions... Partition(OS/2 HPFS, NTFS, QNX or Advanced UNIX): primary Partition(OS/2 HPFS, NTFS, QNX or Advanced UNIX): primary Partition(Linux ext2 filesystem): primary Partition(Linux swap or Solaris/x86): primary Ok. Guessed primary partition table: Primary partition(1) type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX) size: 8001mb #s(16386232) s(63-16386294) chs: (0/1/1)-(1019/254/58)d (0/1/1)-(1019/254/58)r hex: 00 01 01 00 07 FE FA FB 3F 00 00 00 B8 08 FA 00 Primary partition(2) type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX) size: 203mb #s(417688) s(16386300-16803987) chs: (1020/0/1)-(1023/254/63)d (1020/0/1)-(1045/254/61)r hex: 00 00 C1 FC 07 FE FF FF FC 08 FA 00 98 5F 06 00 Primary partition(3) type: 131(0x83)(Linux ext2 filesystem) size: 141619mb #s(290037504) s(16803990-306841493) chs: (1023/254/63)-(1023/254/63)d (1046/0/1)-(19099/254/57)r hex: 00 FE FF FF 83 FE FF FF 96 68 00 01 00 9F 49 11 Primary partition(4) type: 130(0x82)(Linux swap or Solaris/x86) size: 2800mb #s(5735200) s(306841500-312576699) chs: (1023/254/63)-(1023/254/63)d (19100/0/1)-(19456/254/58)r hex: 00 FE FF FF 82 FE FF FF 9C 07 4A 12 20 83 57 00nejak to nesouhlasi s tou tabulkou v /proc/partitions, co?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.