"Loading vmlinuz... failed. Bad file number"

Technical issues/questions of an intermediate or advanced nature.
User avatar
Ed_P
Contributor
Contributor
Posts: 6510
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0rc3 ISOs
Location: Western NY, USA

"Loading vmlinuz... failed. Bad file number"

Post#16 by Ed_P » 23 Nov 2021, 20:54

Rava wrote:
23 Nov 2021, 20:04
Since I not plan on installing a Windoze on that machine ever again, why should I leave the sdfa1 as NTFS?
:%) I'm talking about defraging the vmlinuz file that is causing your boot problem not what format the drive is.
Rava wrote:
23 Nov 2021, 20:04
You not answered my question about ext4 being supported by the Porteus bootloader creation script or not.
I have no idea. It is not something that I have experience with.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 3268
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0rc3 x86_64 + 4.0 i586
Location: Forests of Germany
Contact:

"Loading vmlinuz... failed. Bad file number"

Post#17 by Rava » 23 Nov 2021, 21:02

Ed_P wrote:
23 Nov 2021, 20:54
:%) I'm talking about defraging the vmlinuz file that is causing your boot problem not what format the drive is.
Copied the vmlinuz_Porteus_5.4.30_x86_64 file to an external HD's ext3 partition, removed it from sda1 and copied it back from the ext3 drive.
Now I must look into porteus.cfg and see if it needs adjustment and then when I have no urgent emails or such to write or receive I can reboot any try booting that kernel from sda1.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 6510
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0rc3 ISOs
Location: Western NY, USA

"Loading vmlinuz... failed. Bad file number"

Post#18 by Ed_P » 23 Nov 2021, 21:13

Rava wrote:
23 Nov 2021, 21:02
Copied the vmlinuz_Porteus_5.4.30_x86_64 file to an external HD's ext3 partition, removed it from sda1 and copied it back from the ext3 drive.
Not what I suggested. By removing it you opened up the same broken cluster chains for it to be copied back into. Thus it may be fragmented again.
Ed

User avatar
Rava
Contributor
Contributor
Posts: 3268
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0rc3 x86_64 + 4.0 i586
Location: Forests of Germany
Contact:

"Loading vmlinuz... failed. Bad file number"

Post#19 by Rava » 24 Nov 2021, 02:11

Ed_P wrote:
23 Nov 2021, 21:13
Not what I suggested. By removing it you opened up the same broken cluster chains for it to be copied back into. Thus it may be fragmented again.
No, a file gets copied to randomly chosen areas on a disk. The change a file gets the very same areas as previously is very slim.
Ed_P wrote:
22 Nov 2021, 19:10
Or you could use the GParted approach to defrag it. :)
I think a much quicker way is this:

● Start Porteus using an external approach - and not sda1 even when there are only symlinks to another sdaN partition on it - e.g. start from an USB thumbdrive or from an external USB harddrive.

then

● Copy everything on sda1 to a different drive.
● wipe all data on sda1
● First create all folders and subfolders in sda1
● Move the most important files not to be fragmented back first, e.g. all kernel and initrd files
● Move back all the rest of the files.

Still no 100% guarantee that no files are fragmented, but it is a high chance at least the kernel files are not.

Your thoughts?

The
Ed_P wrote:
22 Nov 2021, 19:10
Use Gparted to defrag your file system
approach is not possible because of this
You also have to have more unused space available than used space for this to work
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 6510
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0rc3 ISOs
Location: Western NY, USA

"Loading vmlinuz... failed. Bad file number"

Post#20 by Ed_P » 24 Nov 2021, 04:00

Rava wrote:
24 Nov 2021, 02:11
Your thoughts?
If you feel more comfort with your slower approach to verify my suggested cause of the problem do it. :D :happy62:
Ed

User avatar
Rava
Contributor
Contributor
Posts: 3268
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0rc3 x86_64 + 4.0 i586
Location: Forests of Germany
Contact:

"Loading vmlinuz... failed. Bad file number"

Post#21 by Rava » 24 Nov 2021, 04:41

Ed_P wrote:
24 Nov 2021, 04:00
If you feel more comfort with your slower approach to verify my suggested cause of the problem do it. :D :happy62:
Your approach means:

a filesystem which has most likely small areas scattered around all over it
where you copy a file onto, most likely getting that file fragmented as well due to the above.

What is quicker with that approach?
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 6510
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0rc3 ISOs
Location: Western NY, USA

"Loading vmlinuz... failed. Bad file number"

Post#22 by Ed_P » 24 Nov 2021, 06:35

Rava wrote:
24 Nov 2021, 04:41
Your approach means:

a filesystem which has most likely small areas scattered around all over it
where you copy a file onto, most likely getting that file fragmented as well due to the above.
May be, or may be not. But it doesn't take long to find out. Will the problem be resolved with your approach? May be, or may be not.

Consider the number of installs of vmlinuz over the years, and relate that to the number of reports of "Bad file number" related to it. None of the installs of vmlinuz on all the various types of drives and formats were not fragmented except for yours! May be or may be not.

Choose whatever approach you will feel most comfortable with to prove the cause/solution to the problem. Then implement the best solution. :)
Ed

User avatar
Rava
Contributor
Contributor
Posts: 3268
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0rc3 x86_64 + 4.0 i586
Location: Forests of Germany
Contact:

"Loading vmlinuz... failed. Bad file number"

Post#23 by Rava » 24 Nov 2021, 20:21

Ed_P wrote:
24 Nov 2021, 06:35
Choose whatever approach you will feel most comfortable with to prove the cause/solution to the problem. Then implement the best solution.
I wrote ncmprhnsbl a PM about " Can the Porteus installer handle ext4 as internal boot partition? " I wait till he replied. Image
Cheers!
Yours Rava

Post Reply