help-grub
[Top][All Lists]
Advanced

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

Re: New Grub2 verses Debian 9.5 -boots slow and strange?


From: jmh6
Subject: Re: New Grub2 verses Debian 9.5 -boots slow and strange?
Date: Sat, 20 Oct 2018 19:11:27 -0400 (EDT)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)



On Sat, 20 Oct 2018, Pascal Hambourg wrote:

Le 20/10/2018 ? 20:34, address@hidden a ?crit :

On Sat, 20 Oct 2018, Pascal Hambourg wrote:

blkid -t TYPE=swap
grep -i resume /proc/cmdline /etc/default/grub
grep -i resume /etc/initramfs-tools/{initramfs.conf,conf.d/*}
(...)
   The commands you suggested did not produce output.

Weird, the last one should have reported the presence of RESUME in /etc/initramfs-tools/conf.d/resume.

/dev/sda1: UUID="1ce2377a-0eb0-4e1f-842c-4574f5a59514"
TYPE="ext2"
PARTUUID="82218f90-01"
/dev/sda4: LABEL="HDDRECOVERY" UUID="EAA4A5F5A4A5C503"
TYPE="ntfs"
PARTUUID="82218f90-04"
/dev/sda5: UUID="d796f4cf-1174-4d13-af62-8fad64865a4b"
TYPE="reiserfs"
PARTUUID="82218f90-05"
/dev/sdb1: UUID="342345d7-94fa-42d2-ae4c-8e947418fd32"
TYPE="ext4"
PARTUUID="db44f11b-01"
/dev/sda2: PARTUUID="82218f90-02"
/dev/sdb5: PARTUUID="db44f11b-05"

No swap indeed. But there are two unformatted partitions (or with unknown format). Intriguing. Can you check with

file -s /dev/sda2 /dev/sdb5
wipefs /dev/sda2
wipefs /dev/sdb5

address@hidden:/etc/initramfs-tools/conf.d# cat resume
RESUME=UUID=b66a9345-332d-4abf-a081-351ab08ed7f9

So there once was a swap with this UUID. But it cannot be found any more. Maybe /etc/fstab still contains information about it.

You have basically two options :
- remove the swap references in resume and fstab and run update-initramfs -u
- or recreate a swap with the same UUID in sdb5

Hi Pascal,

I am nervous about running wipefs. Especially since its man page does not match is operation. plain wipefs doesn't show anything while the manpage says it should.

file -s thinks the swap partitions are data?

----------------------------------

address@hidden:~# file -s /dev/sda2 /dev/sdb5
/dev/sda2: data
/dev/sdb5: data
address@hidden:~#

----------------------------------------

  fdisk thinks there are swap partitions.

---------------------------------------

address@hidden:/home/user# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.29.2).
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/sdb: 14.7 GiB, 15719727104 bytes, 30702592 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: 0xdb44f11b

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdb1  *        2048 19834879 19832832  9.5G 83 Linux
/dev/sdb2       19840275 30700214 10859940  5.2G  f W95 Ext'd (LBA)
/dev/sdb5       19840338 30700214 10859877  5.2G 82 Linux swap / Solaris

Command (m for help): q

address@hidden:/home/user# fdisk /dev/sda

Welcome to fdisk (util-linux 2.29.2).
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: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0x82218f90

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1            2048 838862847 838860800  400G 83 Linux
/dev/sda2 838862848 843057151 4194304 2G 82 Linux swap / Solaris
/dev/sda3       843057152 948803583 105746432 50.4G  5 Extended
/dev/sda4       948803584 976773119  27969536 13.3G 17 Hidden HPFS/NTFS
/dev/sda5       843059200 885002239  41943040   20G 83 Linux

Partition table entries are not in disk order.

Command (m for help): ^C
address@hidden:/home/user#




_______________________________________________
Help-grub mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-grub



reply via email to

[Prev in Thread] Current Thread [Next in Thread]