Web lists-archives.com

Re: Problem of expanded partition partially solved.

Le 14/04/2018 à 18:51, Gdsi a écrit :

Problem of expanded partition partially solved. After used 'resize2fs /dev/sda'

I doubt that was the correct command. The filesystem is in /dev/sda2, not /dev/sda.

Here remained the 2-minute scanning 'sda' in booting, which not very bother for me, but a wish get rid of this are is. May be a try to rewrite 'etc/fstab' will be rightly?

It is better to report the full exact message, so we get a better chance to understand the cause of the delay and be able to help you.

In you previous post you wrote that you deleted the existing swap partition and created a new one with parted or fdisk. Did you then "format" the new swap partition with mkswap ?

If you formatted the partition, did you assign it the same UUID as the original swap partition, which is still present in /etc/fstab ? If you did not assign the same UUID, yo may format the partition again with the same UUID (better) or update /etc/fstab with the current UUID shown by blkid.

If you did not format the partition, you must format it with the same UUID as the original swap (better) or format it with a random UUID and update /etc/fstab as above.

If you choose to update fstab, you may also need to update /etc/initramfs-tools/conf.d/resume and rebuild the initramfs with "update-initramfs -u". This is why I recommend to format with the original UUID instead.

-----/home/user# fdisk -l /dev/sda
Disk /dev/sda: 55.9 GiB, 60011642880 bytes, 117210240 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: 0xd961d961

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1             63 30723839 30723777 14.7G  7 HPFS/NTFS/exFAT
/dev/sda2  *    30724096 78125000 47400905 22.6G 83 Linux
/dev/sda3       78125056 83984383  5859328  2.8G 82 Linux swap / Solaris----


----home/user# parted /dev/sda print
Model: ATA FUJITSU MHT2060A (scsi)
Disk /dev/sda: 60.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
  1      32.3kB  15.7GB  15.7GB  primary  ntfs
  2      15.7GB  40.0GB  24.3GB  primary  ext4         boot
  3      40.0GB  43.0GB  3000MB  primary----,
                                              What to believe?

Parted shows sizes in GB (decimal). Fdisk shows sizes in GiB (binary) and should print "Gi" instead of "G" in the "Size" column, as in the "Disk" line.
1 GiB = 1.074 GB