Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sda: 447,1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: M.2 480
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xc38ee7b0
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 937703087 937170608 446,9G 83 Linux
Command (m for help): d
Partition number (1,2, default 2):
Partition 2 has been deleted.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): p
Disk /dev/sda: 447,1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: M.2 480
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xc38ee7b0
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Périphérique ou ressource occupé
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
sudo rpi-clone -v /dev/sda
Booted disk: mmcblk0 64.0GB Destination disk: sda 480.1GB
---------------------------------------------------------------------------
Part Size FS Label Part Size FS Label
1 /boot 256.0M fat32 --
2 root 59.4G ext4 rootfs
---------------------------------------------------------------------------
== Initialize: IMAGE partition table - partition number mismatch: 2 -> 0 ==
1 /boot (51.5M used) : MKFS SYNC to sda1
2 root (5.8G used) : RESIZE MKFS SYNC to sda2
---------------------------------------------------------------------------
Run setup script : no.
Verbose mode : yes.
-----------------------:
** WARNING ** : All destination disk sda data will be overwritten!
-----------------------:
Initialize and clone to the destination disk sda? (yes/no): yes
Optional destination ext type file system label (16 chars max): RPI_4
Initializing
Imaging past partition 1 start.
=> dd if=/dev/mmcblk0 of=/dev/sda bs=1M count=8 ...
Resizing destination disk last partition ...
Resize success.
Changing destination Disk ID ...
Re-reading the partition table failed.: Périphérique ou ressource occupé
=> mkfs -t vfat -F 32 /dev/sda1 ...
=> mkfs -t ext4 -L RPI_4 /dev/sda2 ...
Syncing file systems (can take a long time)
Syncing mounted partitions:
Mounting /dev/sda2 on /mnt/clone
.../...
sent 54,258,270 bytes received 4,227 bytes 15,503,570.57 bytes/sec
total size is 54,231,072 speedup is 1.00
Editing /mnt/clone/boot/cmdline.txt PARTUUID to use a0651de2
Editing /mnt/clone/etc/fstab PARTUUID to use a0651de2
===============================
Done with clone to /dev/sda
Start - 11:29:42 End - 11:38:23 Elapsed Time - 8:41
Cloned partitions are mounted on /mnt/clone for inspection or customizing.
Hit Enter when ready to unmount the /dev/sda partitions ... unmounting /mnt/clone/boot
unmounting /mnt/clone
===============================
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 59,6 GiB, 64021856256 bytes, 125042688 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: 0x5e3da3da
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 532480 125042687 124510208 59,4G 83 Linux
Disk /dev/sda: 447,1 GiB, 480103981056 bytes, 937703088 sectors
Disk model: M.2 480
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xa0651de2
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 937703087 937170608 446,9G 83 Linux
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="9F2D-0578" TYPE="vfat" PARTUUID="5e3da3da-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="efc2ea8b-042f-47f5-953e-577d8860de55" TYPE="ext4" PARTUUID="5e3da3da-02"
/dev/sda1: UUID="CD24-CB7B" TYPE="vfat" PARTUUID="a0651de2-01"
/dev/sda2: LABEL="RPI_4" UUID="d351d7fb-6658-4d9c-87f9-6a827b3a2202" TYPE="ext4" PARTUUID="a0651de2-02"
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 vfat CD24-CB7B 200,3M 21% /media/pi/CD24-CB7B
└─sda2 ext4 RPI_4 d351d7fb-6658-4d9c-87f9-6a827b3a2202 410,8G 1% /media/pi/RPI_4
mmcblk0
├─mmcblk0p1 vfat boot 9F2D-0578 200,3M 21% /boot
└─mmcblk0p2 ext4 rootfs efc2ea8b-042f-47f5-953e-577d8860de55 49,6G 10% /
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/root 59G 5,9G 50G 11% /
devtmpfs 1,8G 0 1,8G 0% /dev
tmpfs 2,0G 0 2,0G 0% /dev/shm
tmpfs 2,0G 8,6M 1,9G 1% /run
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 2,0G 0 2,0G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 52M 201M 21% /boot
tmpfs 391M 0 391M 0% /run/user/1000
/dev/sda2 439G 5,8G 411G 2% /media/pi/RPI_4
/dev/sda1 253M 52M 201M 21% /media/pi/CD24-CB7B
comme j'avais fait une m.a.j. de mon systeme et rajouté qques programmes (rpi-clone , smartmontools, etc ...) ,
j'ai refait mon ssd , d'où ces données .
pi@raspberrypi:/media/pi/RPI_4/etc $ sudo nano fstab
GNU nano 3.2 fstab
proc /proc proc defaults 0 0
# boot sur ssd (sda 1)
# PARTUUID=a0651de2-01 /boot vfat defaults 0 2
# désactivation boot ssd sda 1
PARTUUID=a0651de2-01 none ignore defaults 0 1
# activation boot carte sd (mmcblk0p1)
PARTUUID=5e3da3da-01 /boot vfat defaults 0 2
#
# rootfs sda 2 (RPI_4)
PARTUUID=a0651de2-02 / ext4 defaults,noatime 0 1
# désactivation rootfs carte sd (mmcblk0p2)
PARTUUID=5e3da3da-02 none ignore defaults 0 1
#
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
je fais quoi , je me lance ?
j'hésite ...
y a pas de fautes de syntaxe ?
Dernière modification par Debian Alain (06-01-2020 12:24:21)