Re: label-id and sfdisk problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



W dniu 2017-02-21 o 17:58, Bartłomiej Solarz-Niesłuchowski pisze:
DEBUG:
root@sysresccd /mnt % export SFDISK_DEBUG=all
root@sysresccd /mnt % sfdisk /dev/sdb < henwar.2017.sdb.sfdisk
Checking that no-one is using this disk right now ... OK

Disk /dev/sdb: 489.1 GiB, 525112713216 bytes, 1025610768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5669b38d

Old situation:

Device     Boot   Start        End    Sectors   Size Id Type
/dev/sdb1  *       2048    1026047    1024000   500M  c W95 FAT32 (LBA)
/dev/sdb2       1026048 1025607679 1024581632 488.6G  7 HPFS/NTFS/exFAT

15530: sfdisk:    PARSE: <---next-line--->
>>> Script header accepted.
15530: sfdisk:    PARSE: <---next-line--->
>>> Script header accepted.
15530: sfdisk:    PARSE: <---next-line--->
>>> Script header accepted.
15530: sfdisk:    PARSE: <---next-line--->
>>> Script header accepted.
15530: sfdisk:    PARSE: <---next-line--->
>>> Created a new DOS disklabel with disk identifier 0xd1b2a761.
Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
15530: sfdisk:    PARSE: <---next-line--->
/dev/sdb2: Created a new partition 2 of type 'HPFS/NTFS/exFAT' and of size 488.6 GiB.
15530: sfdisk:    PARSE: <---next-line--->
/dev/sdb3:
New situation:

Device     Boot   Start        End    Sectors   Size Id Type
/dev/sdb1  *       2048    1026047    1024000   500M  c W95 FAT32 (LBA)
/dev/sdb2       1026048 1025607679 1024581632 488.6G  7 HPFS/NTFS/exFAT

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
15530: sfdisk:     MISC: bye! [rc=0]

DEBUG2:
15774: libfdisk:     INIT: library debug mask: 0xffff
Available "LIBFDISK_DEBUG=<name>[,...]|<mask>" debug masks:
   all      [0xffff] : info about all subsystems
   ask      [0x0010] : fdisk dialogs
   help     [0x0001] : this help
   cxt      [0x0004] : library context (handler)
   label    [0x0008] : disk label utils
   part     [0x0040] : partition utils
   parttype [0x0080] : partition type utils
   script   [0x0200] : sfdisk-like scripts
   tab      [0x0100] : table utils
15774: libfdisk:      CXT: [0x8e2f338]: alloc
15774: libfdisk:      CXT: [0x8e2f338]: assigning device /dev/sdb
15774: libfdisk:      CXT: [0x8e2f338]: *** resetting context
15774: libfdisk:      CXT: [0x8e2f338]: /dev/sdb: discovering topology...
15774: libfdisk:      CXT: [0x8e2f338]: initialize libblkid prober
15774: libfdisk:      CXT: [0x8e2f338]: result: log/phy sector size: 512/512
15774: libfdisk: CXT: [0x8e2f338]: result: fdisk/optimal/minimal io: 512/0/512
15774: libfdisk:      CXT: [0x8e2f338]: /dev/sdb: discovering geometry...
15774: libfdisk: CXT: [0x8e2f338]: total sectors: 1025610768 (ioctl=1025610768)
15774: libfdisk:      CXT: [0x8e2f338]: result: C/H/S: 63841/255/63
15774: libfdisk: CXT: [0x8e2f338]: initialize in-memory first sector buffer [sector_size=512]
15774: libfdisk:      CXT: [0x8e2f338]: reading: offset=0, size=512
15774: libfdisk:      CXT: [0x8e2f338]: probing for gpt
15774: libfdisk:    LABEL: GPT probe failed
15774: libfdisk:      CXT: [0x8e2f338]: probing for dos
15774: libfdisk:    LABEL: DOS: initialize, first sector buffer 0x8e31cd8
15774: libfdisk:    LABEL: DOS PT geometry: heads=0, sectors=0
15774: libfdisk:      CXT: [0x8e2f338]: --> switching context to dos!
15774: libfdisk:      CXT: [0x8e2f338]: appling user device properties
15774: libfdisk:      CXT: [0x8e2f338]: reseting alignment...
15774: libfdisk: CXT: [0x8e2f338]: alignment reseted to: first LBA=2048, last LBA=1025610767, grain=1048576 [rc=0]
15774: libfdisk:      CXT: [0x8e2f338]: new C/H/S: 63841/255/63
15774: libfdisk:      CXT: [0x8e2f338]: new log/phy sector size: 512/512
15774: libfdisk: CXT: [0x8e2f338]: initialized for /dev/sdb [READ-WRITE]
15774: libfdisk:   SCRIPT: [0x8e31ee0]: alloc
15774: libfdisk:      TAB: [0x8e2f0d8]: alloc
15774: libfdisk: CXT: [0x8e2f338]: setting reference to script 0x8e31ee0
15774: libfdisk:      ASK: [0x8e31f78]: alloc
15774: libfdisk:      ASK: [0x8e31f78]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e31f78]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e31f78]: reset
15774: libfdisk:      ASK: [0x8e31f78]: free
15774: libfdisk:      ASK: [0x8e31f10]: alloc
15774: libfdisk:      ASK: [0x8e31f10]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e31f10]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e31f10]: reset
15774: libfdisk:      ASK: [0x8e31f10]: free
15774: libfdisk:      ASK: [0x8e31fa8]: alloc
15774: libfdisk:      ASK: [0x8e31fa8]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e31fa8]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e31fa8]: reset
15774: libfdisk:      ASK: [0x8e31fa8]: free
15774: libfdisk:      ASK: [0x8e31fb8]: alloc
15774: libfdisk:      ASK: [0x8e31fb8]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e31fb8]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e31fb8]: reset
15774: libfdisk:      ASK: [0x8e31fb8]: free
15774: libfdisk:      ASK: [0x8e31f10]: alloc
15774: libfdisk:      ASK: [0x8e31f10]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e31f10]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e31f10]: reset
15774: libfdisk:      ASK: [0x8e31f10]: free
15774: libfdisk:      CXT: [0x8e2f338]: asking for disk dos ID
15774: libfdisk:      CXT: [0x8e2f338]: asking for disk dos item 0
15774: libfdisk:      ASK: [0x8e31f10]: alloc
15774: libfdisk:      ASK: [0x8e31f10]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e31f10]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e31f10]: reset
15774: libfdisk:      ASK: [0x8e31f10]: free
15774: libfdisk:      ASK: [0x8e31f10]: alloc
15774: libfdisk:      ASK: [0x8e31f10]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e31f10]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e31f10]: reset
15774: libfdisk:      ASK: [0x8e31f10]: free
15774: libfdisk:      CXT: [0x8e2f338]:  -- get table --
15774: libfdisk:      TAB: [0x8e2f150]: alloc
15774: libfdisk:     PART: [0x8e31f98]: alloc
15774: libfdisk: TAB: [0x8e2f150]: add entry 0x8e31f98 [start=2048, end=1026047, size=1024000, primary]
15774: libfdisk:     PART: [0x8e32038]: alloc
15774: libfdisk: TAB: [0x8e2f150]: add entry 0x8e32038 [start=1026048, end=1025607679, size=1024581632, primary]
15774: libfdisk:      ASK: [0x8e327b8]: alloc
15774: libfdisk:      ASK: [0x8e327b8]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e327b8]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e327b8]: reset
15774: libfdisk:      ASK: [0x8e327b8]: free
15774: libfdisk:      TAB: [0x8e2f150]: wrong older check
15774: libfdisk:      TAB: [0x8e2f150]: reset
15774: libfdisk:      TAB: [0x8e2f150]: remove entry 0x8e31f98
15774: libfdisk:     PART: [0x8e31f98]: reset
15774: libfdisk:     PART: [0x8e31f98]: free
15774: libfdisk:      TAB: [0x8e2f150]: remove entry 0x8e32038
15774: libfdisk:     PART: [0x8e32038]: reset
15774: libfdisk:     PART: [0x8e32038]: free
15774: libfdisk:      TAB: [0x8e2f150]: free
15774: libfdisk:   SCRIPT: [0x8e31ee0]: setting new header label='dos'
15774: sfdisk:    PARSE: <---next-line--->
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing line 0
15774: libfdisk:   SCRIPT: [0x8e31ee0]:   parsing buffer
15774: libfdisk:   SCRIPT: [0x8e31ee0]:    parse header 'label: dos'
15774: libfdisk:   SCRIPT: [0x8e31ee0]: update 'label' header 'dos' -> 'dos'
15774: libfdisk:      ASK: [0x8e32380]: alloc
15774: libfdisk:      ASK: [0x8e32380]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32380]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32380]: reset
15774: libfdisk:      ASK: [0x8e32380]: free
15774: sfdisk:    PARSE: <---next-line--->
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing line 1
15774: libfdisk:   SCRIPT: [0x8e31ee0]:   parsing buffer
15774: libfdisk: SCRIPT: [0x8e31ee0]: parse header 'label-id: 0x908b462c' 15774: libfdisk: SCRIPT: [0x8e31ee0]: setting new header label-id='0x908b462c'
15774: libfdisk:      ASK: [0x8e32470]: alloc
15774: libfdisk:      ASK: [0x8e32470]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32470]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32470]: reset
15774: libfdisk:      ASK: [0x8e32470]: free
15774: sfdisk:    PARSE: <---next-line--->
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing line 2
15774: libfdisk:   SCRIPT: [0x8e31ee0]:   parsing buffer
15774: libfdisk:   SCRIPT: [0x8e31ee0]:    parse header 'device: /dev/sdb'
15774: libfdisk:   SCRIPT: [0x8e31ee0]: setting new header device='/dev/sdb'
15774: libfdisk:      ASK: [0x8e32308]: alloc
15774: libfdisk:      ASK: [0x8e32308]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32308]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32308]: reset
15774: libfdisk:      ASK: [0x8e32308]: free
15774: sfdisk:    PARSE: <---next-line--->
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing line 3
15774: libfdisk:   SCRIPT: [0x8e31ee0]:   parsing buffer
15774: libfdisk:   SCRIPT: [0x8e31ee0]:    parse header 'unit: sectors'
15774: libfdisk:   SCRIPT: [0x8e31ee0]: setting new header unit='sectors'
15774: libfdisk:      ASK: [0x8e32398]: alloc
15774: libfdisk:      ASK: [0x8e32398]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32398]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32398]: reset
15774: libfdisk:      ASK: [0x8e32398]: free
15774: sfdisk:    PARSE: <---next-line--->
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing line 4
15774: libfdisk:   SCRIPT: [0x8e31ee0]:   parsing buffer
15774: libfdisk: SCRIPT: [0x8e31ee0]: parse script line: '/dev/sdb1 : start= 2048, size= 1024000, type=c, bootable'
15774: libfdisk:     PART: [0x8e31f98]: alloc
15774: libfdisk: SCRIPT: [0x8e31ee0]: parsing ' start= 2048, size= 1024000, type=c, bootable' 15774: libfdisk: SCRIPT: [0x8e31ee0]: parsing ' size= 1024000, type=c, bootable'
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing ' type=c, bootable'
15774: libfdisk:   SCRIPT: [0x8e31ee0]: label 'dos'
15774: libfdisk:    LABEL: [0x8e2f438]: parsing 'c' (dos) partition type
15774: libfdisk: PARTTYPE: [0xf774985c]: returns parsed 'W95 FAT32 (LBA)' [] partition type
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing ' bootable'
15774: libfdisk: TAB: [0x8e2f0d8]: add entry 0x8e31f98 [start=2048, end=1026047, size=1024000, primary]
15774: libfdisk:   SCRIPT: [0x8e31ee0]: applying script headers
15774: libfdisk: CXT: [0x8e2f338]: setting reference to script 0x8e31ee0
15774: libfdisk:      CXT: [0x8e2f338]: --> switching context to dos!
15774: libfdisk:      CXT: [0x8e2f338]: *** reseting device properties
15774: libfdisk:      CXT: [0x8e2f338]: /dev/sdb: discovering topology...
15774: libfdisk:      CXT: [0x8e2f338]: initialize libblkid prober
15774: libfdisk:      CXT: [0x8e2f338]: result: log/phy sector size: 512/512
15774: libfdisk: CXT: [0x8e2f338]: result: fdisk/optimal/minimal io: 512/0/512
15774: libfdisk:      CXT: [0x8e2f338]: /dev/sdb: discovering geometry...
15774: libfdisk: CXT: [0x8e2f338]: total sectors: 1025610768 (ioctl=1025610768)
15774: libfdisk:      CXT: [0x8e2f338]: result: C/H/S: 63841/255/63
15774: libfdisk: CXT: [0x8e2f338]: zeroize in-memory first sector buffer
15774: libfdisk:      CXT: [0x8e2f338]: reading: offset=0, size=512
15774: libfdisk:      CXT: [0x8e2f338]: appling user device properties
15774: libfdisk:      CXT: [0x8e2f338]: reseting alignment...
15774: libfdisk: CXT: [0x8e2f338]: alignment reseted to: first LBA=2048, last LBA=1025610767, grain=1048576 [rc=0]
15774: libfdisk:      CXT: [0x8e2f338]: new C/H/S: 63841/255/63
15774: libfdisk:      CXT: [0x8e2f338]: new log/phy sector size: 512/512
15774: libfdisk:      CXT: [0x8e2f338]: create a new dos label
15774: libfdisk:    LABEL: DOS: creating new disklabel
15774: libfdisk: CXT: [0x8e2f338]: zeroize in-memory first sector buffer 15774: libfdisk: CXT: [0x8e2f338]: first sector protection enabled -- re-reading
15774: libfdisk:      CXT: [0x8e2f338]: reading: offset=0, size=440
15774: libfdisk:    LABEL: DOS: initialize, first sector buffer 0x8e31cd8
15774: libfdisk:      ASK: [0x8e32398]: alloc
15774: libfdisk:      ASK: [0x8e32398]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32398]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32398]: reset
15774: libfdisk:      ASK: [0x8e32398]: free
15774: libfdisk: CXT: [0x8e2f338]: adding new partition 0x8e31f98 (start=2048, end=1026047, size=1024000, defaults(start=no, end=no, partno=no)
15774: libfdisk:    LABEL: DOS: new partition wanted
15774: libfdisk:     PART: [0x8e31f98]: next partno (specified=0)
15774: libfdisk:    LABEL: DOS: adding partition 0
15774: libfdisk:    LABEL: DOS: last possible sector for #0 is 1025610767
15774: libfdisk:      CXT: [0x8e2f338]: LBA 2048 -unchanged-
15774: libfdisk: CXT: [0x8e2f338]: LBA 1025610767 -aligned-down-> 1025609728 [grain=2048s]
15774: libfdisk:      CXT: [0x8e2f338]: LBA 2048 -unchanged-
15774: libfdisk: CXT: [0x8e2f338]: LBA 2048 range:<2048..1025609728>, result: 2048 15774: libfdisk: LABEL: DOS: start: wanted=2048, low=2048, limit=1025610767
15774: libfdisk:    LABEL: DOS: start is 2048
15774: libfdisk:    LABEL: DOS: last possible sector for #0 is 1025610767
15774: libfdisk:    LABEL: DOS: unused sector for #0 is 1025610767
15774: libfdisk:    LABEL: DOS: raw stop: 1026047
15774: libfdisk: LABEL: DOS: setting partition 0, offset=0, start=2048, size=1024000, sysid=0c
15774: libfdisk:    LABEL: DOS: setting 0 partition to changed
15774: libfdisk:      ASK: [0x8e32470]: alloc
15774: libfdisk:      ASK: [0x8e32470]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32470]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32470]: reset
15774: libfdisk:      ASK: [0x8e32470]: free
15774: libfdisk:      CXT: [0x8e2f338]: add partition done (rc=0)
15774: sfdisk:    PARSE: <---next-line--->
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing line 6
15774: libfdisk:   SCRIPT: [0x8e31ee0]:   parsing buffer
15774: libfdisk: SCRIPT: [0x8e31ee0]: parse script line: '/dev/sdb2 : start= 1026048, size= 1024581632, type=7'
15774: libfdisk:     PART: [0x8e32038]: alloc
15774: libfdisk: SCRIPT: [0x8e31ee0]: parsing ' start= 1026048, size= 1024581632, type=7'
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing ' size= 1024581632, type=7'
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing ' type=7'
15774: libfdisk:    LABEL: [0x8e2f438]: parsing '7' (dos) partition type
15774: libfdisk: PARTTYPE: [0xf77497f8]: returns parsed 'HPFS/NTFS/exFAT' [] partition type 15774: libfdisk: TAB: [0x8e2f0d8]: add entry 0x8e32038 [start=1026048, end=1025607679, size=1024581632, primary] 15774: libfdisk: CXT: [0x8e2f338]: adding new partition 0x8e32038 (start=1026048, end=1025607679, size=1024581632, defaults(start=no, end=no, partno=no)
15774: libfdisk:    LABEL: DOS: new partition wanted
15774: libfdisk:     PART: [0x8e32038]: next partno (specified=1)
15774: libfdisk:    LABEL: DOS: adding partition 1
15774: libfdisk:    LABEL: DOS: last possible sector for #1 is 1025610767
15774: libfdisk:      CXT: [0x8e2f338]: LBA 1026048 -unchanged-
15774: libfdisk: CXT: [0x8e2f338]: LBA 1025610767 -aligned-down-> 1025609728 [grain=2048s]
15774: libfdisk:      CXT: [0x8e2f338]: LBA 1026048 -unchanged-
15774: libfdisk: CXT: [0x8e2f338]: LBA 1026048 range:<1026048..1025609728>, result: 1026048
15774: libfdisk:      CXT: [0x8e2f338]: LBA 1026048 -unchanged-
15774: libfdisk: CXT: [0x8e2f338]: LBA 1025610767 -aligned-down-> 1025609728 [grain=2048s]
15774: libfdisk:      CXT: [0x8e2f338]: LBA 1026048 -unchanged-
15774: libfdisk: CXT: [0x8e2f338]: LBA 1026048 range:<1026048..1025609728>, result: 1026048 15774: libfdisk: LABEL: DOS: start: wanted=1026048, low=1026048, limit=1025610767
15774: libfdisk:    LABEL: DOS: start is 1026048
15774: libfdisk:    LABEL: DOS: last possible sector for #1 is 1025610767
15774: libfdisk:    LABEL: DOS: unused sector for #1 is 1025610767
15774: libfdisk:    LABEL: DOS: raw stop: 1025607679
15774: libfdisk: LABEL: DOS: setting partition 1, offset=0, start=1026048, size=1024581632, sysid=07
15774: libfdisk:    LABEL: DOS: setting 1 partition to changed
15774: libfdisk:      ASK: [0x8e32470]: alloc
15774: libfdisk:      ASK: [0x8e32470]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32470]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32470]: reset
15774: libfdisk:      ASK: [0x8e32470]: free
15774: libfdisk:      CXT: [0x8e2f338]: add partition done (rc=0)
15774: sfdisk:    PARSE: <---next-line--->
15774: libfdisk:   SCRIPT: [0x8e31ee0]:  parsing line 7
15774: libfdisk:      ASK: [0x8e32470]: alloc
15774: libfdisk:      ASK: [0x8e32470]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32470]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32470]: reset
15774: libfdisk:      ASK: [0x8e32470]: free
15774: libfdisk:      CXT: [0x8e2f338]:  -- get table --
15774: libfdisk:      TAB: [0x8e32358]: alloc
15774: libfdisk:     PART: [0x8e32560]: alloc
15774: libfdisk: TAB: [0x8e32358]: add entry 0x8e32560 [start=2048, end=1026047, size=1024000, primary]
15774: libfdisk:     PART: [0x8e32698]: alloc
15774: libfdisk: TAB: [0x8e32358]: add entry 0x8e32698 [start=1026048, end=1025607679, size=1024581632, primary]
15774: libfdisk:      ASK: [0x8e32398]: alloc
15774: libfdisk:      ASK: [0x8e32398]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32398]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32398]: reset
15774: libfdisk:      ASK: [0x8e32398]: free
15774: libfdisk:      TAB: [0x8e32358]: wrong older check
15774: libfdisk:      TAB: [0x8e32358]: reset
15774: libfdisk:      TAB: [0x8e32358]: remove entry 0x8e32560
15774: libfdisk:     PART: [0x8e32560]: reset
15774: libfdisk:     PART: [0x8e32560]: free
15774: libfdisk:      TAB: [0x8e32358]: remove entry 0x8e32698
15774: libfdisk:     PART: [0x8e32698]: reset
15774: libfdisk:     PART: [0x8e32698]: free
15774: libfdisk:      TAB: [0x8e32358]: free
15774: libfdisk: LABEL: DOS: write PT requested [label-changed: 1, non-pt-changed: 1]
15774: libfdisk:    LABEL: DOS: MBR changed, writting
15774: libfdisk:    LABEL: DOS: writting to sector 0
15774: libfdisk:      ASK: [0x8e32308]: alloc
15774: libfdisk:      ASK: [0x8e32308]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32308]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32308]: reset
15774: libfdisk:      ASK: [0x8e32308]: free
15774: libfdisk:      ASK: [0x8e32398]: alloc
15774: libfdisk:      ASK: [0x8e32398]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32398]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32398]: reset
15774: libfdisk:      ASK: [0x8e32398]: free
15774: libfdisk:      ASK: [0x8e32308]: alloc
15774: libfdisk:      ASK: [0x8e32308]: do_ask for 'info'
15774: libfdisk:      ASK: [0x8e32308]: do_ask done [rc=0]
15774: libfdisk:      ASK: [0x8e32308]: reset
15774: libfdisk:      ASK: [0x8e32308]: free
15774: sfdisk:     MISC: bye! [rc=0]
Checking that no-one is using this disk right now ... OK

Disk /dev/sdb: 489.1 GiB, 525112713216 bytes, 1025610768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x18e5ab42

Old situation:

Device     Boot   Start        End    Sectors   Size Id Type
/dev/sdb1  *       2048    1026047    1024000   500M  c W95 FAT32 (LBA)
/dev/sdb2       1026048 1025607679 1024581632 488.6G  7 HPFS/NTFS/exFAT

>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new DOS disklabel with disk identifier 0xb8fbfff6.
Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 500 MiB.
/dev/sdb2: Created a new partition 2 of type 'HPFS/NTFS/exFAT' and of size 488.6 GiB.
/dev/sdb3:
New situation:

Device     Boot   Start        End    Sectors   Size Id Type
/dev/sdb1  *       2048    1026047    1024000   500M  c W95 FAT32 (LBA)
/dev/sdb2       1026048 1025607679 1024581632 488.6G  7 HPFS/NTFS/exFAT

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


--
Bartłomiej Solarz-Niesłuchowski, Administrator WSISiZ
e-mail: Bartlomiej.Solarz-Niesluchowski@xxxxxxxxxx
tel. 223486547, fax 223486501
JID: solarz@xxxxxxxxxxxxxxxxx
01-447 Warszawa, ul. Newelska 6, pokój 404, pon.-pt. 8-16
Motto - Jak sobie pościelisz tak sie wyśpisz


Attachment: smime.p7s
Description: Kryptograficzna sygnatura S/MIME


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux