LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 07-21-2020, 11:28 AM   #1
heistein369
LQ Newbie
 
Registered: May 2020
Posts: 15

Rep: Reputation: Disabled
4MLinux ~ GRUB + other language computer keyboard layouts


Hi!

1. Before installation 4MLinux 33.0 on my SATA hard drive, it was divided and worked properly:
  • sda1> win xp sp3
    sda2> linux artfulpup 17.11
    sda3> empty (ext4)

I have already installed 4Mlinux 33.0 on sda3 partition.

The operating system booted fine.

I have run GNU GRUB "command" as listed in instructions on their website.

https://4.bp.blogspot.com/-N6SZnTFRy...0/snapshot.png

Only the partition sda1 (win xp) was found. The other one (with artfulpup 17.11 on it) was not found.

How can I fix this please?

2. IS THERE ANY POSSIBILITY TO SET OTHER LANGUAGE COMPUTER KEYBOARD LAYOUT PLESE? ( the czech one or some where the 3rd row of keys is> q w e r t Z

I am looking forward to zour answer :-)

Jiri
 
Old 07-21-2020, 01:23 PM   #2
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,124

Rep: Reputation: 197Reputation: 197
Hi,

Keyboard: Menu->Settings->Locale>Keyboard
Grub: it must find /boot/vmlinuz on /dev/sda2, so make sure that /mnt/sda2 is mounted and /mnt/sda2/boot/vmlinuz exists.

.
 
Old 07-21-2020, 02:47 PM   #3
heistein369
LQ Newbie
 
Registered: May 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Lightbulb vmlinuz exists > am I allowed to move it?

vmlinuz exists >

but it is stored in another path in another folder:

/mnt/sda2/artfulpup17.11frugal/vmlinuz

Am I allowed to move it not to get destroyed the system on this partition?

Keyboard: Menu->Settings->Locale>Keyboard

opens kbd.conf file where the text is:
Default keyboard layout:
LAYOUT=us
??? Should I rewrite "us" to "cz" and save the change? And will it work like that?
 
Old 07-21-2020, 03:07 PM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,124

Rep: Reputation: 197Reputation: 197
GRUB:
Code:
mkdir /mnt/sda2/boot 2>/dev/null
cp /mnt/sda2/artfulpup17.11frugal/vmlinuz /mnt/sda2/boot/
update-grub
KEYBOARD:
Yes, "LAYOUT=cz" should do the trick.

.

Last edited by zk1234; 07-21-2020 at 03:15 PM.
 
1 members found this post helpful.
Old 07-21-2020, 03:16 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,352

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034
add this entry to the end of /etc/grub.d/40_custom
Code:
menuentry 'Puppy artfulpup'{
set root=(hd0,2)
linux /artfulpup17.11frugal/vmlinuz subdir=artfulpup17.11frugal 
initrd /artfulpup17.11frugal/initrd.gz
}
You may have to edit this by checking the puppy menu.lst and make the linux line of this menuentry match the kernel line of the menu.lst, less the word kernel, match the initrd line of menu.lst to the initrd of this menuentry
Then rerun the grub command

Last edited by colorpurple21859; 07-21-2020 at 03:18 PM.
 
1 members found this post helpful.
Old 07-21-2020, 03:21 PM   #6
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 1,124

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by colorpurple21859 View Post
add this entry to the end of /etc/grub.d/40_custom
Code:
menuentry 'Puppy artfulpup'{
set root=(hd0,2)
linux /artfulpup17.11frugal/vmlinuz subdir=artfulpup17.11frugal 
initrd /artfulpup17.11frugal/initrd.gz
}
You may have to edit this by checking the puppy menu.lst and make the linux line of this menuentry match the kernel line of the menu.lst, less the word kernel, match the initrd line of menu.lst to the initrd of this menuentry
Then rerun the grub command
This may be even better solution.
 
Old 07-22-2020, 01:21 AM   #7
heistein369
LQ Newbie
 
Registered: May 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Exclamation mkdir /mnt/sda2/boot 2>/dev/null

I got:

Code:
]
error: syntax error
error: Incorrect command
error: syntax error

Anyway, thank You for your help -> The keyboard-trick has worked great!
 
Old 07-22-2020, 06:38 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,352

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034
post the /etc/grub.d/40_custom and the puppy menu.lst

Last edited by colorpurple21859; 07-22-2020 at 08:04 AM.
 
Old 07-22-2020, 08:47 AM   #9
heistein369
LQ Newbie
 
Registered: May 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
40_custom and menu.lst

Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry 'Puppy artfulpup'{
set root=(hd0,2)
linux /artfulpup17.11frugal/vmlinuz subdir=artfulpup17.11frugal
initrd /artfulpup17.11frugal/initrd.gz
}
 
Old 07-22-2020, 08:53 AM   #10
heistein369
LQ Newbie
 
Registered: May 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
menu.lst

Code:
# menu.lst produced by grub4dosconfig-v1.9.2
color white/blue black/cyan white/black cyan/black
#splashimage=/splash.xpm
timeout 10
default 0

# Frugal installed Puppy

title Puppy artfulpup 17.11 (sda5/artfulpup17.11frugal)
  uuid 66d96a81-9120-49de-86d4-9c0bceac4fdd
  kernel /artfulpup17.11frugal/vmlinuz   psubdir=artfulpup17.11frugal pmedia=atahd pfix=fsck
  initrd /artfulpup17.11frugal/initrd.gz

# Full installed Linux

title 4MLinux (sda6/boot)
  uuid 1623f198-304e-4bee-aefc-2df067f61656
  kernel /boot/vmlinuz-4MLinux root=/dev/sda6 ro
  initrd /boot/bzImage

# Windows
# this entry searches Windows on the HDD and boot it up
title Windows\nBoot up Windows if installed
  errorcheck off
  find --set-root --ignore-floppies --ignore-cd  /bootmgr
  chainloader /bootmgr
  find --set-root --ignore-floppies --ignore-cd  /ntldr
  chainloader /ntldr
  find --set-root --ignore-floppies --ignore-cd   /io.sys
  chainloader /io.sys
  errorcheck on

# Advanced Menu
title Advanced menu
  configfile /menu-advanced.lst
  commandline
 
Old 07-22-2020, 09:31 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,352

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034
Based on your menu.lst change the 40_custom to this and then rerun gnu grub
Code:
menuentry 'Puppy artfulpup'{
set root=(hd0,5)
linux /artfulpup17.11frugal/vmlinuz psubdir=artfulpup17.11frugal pmedia=atahd pfix=fsck
initrd /artfulpup17.11frugal/initrd.gz
}

Last edited by colorpurple21859; 07-22-2020 at 09:33 AM.
 
1 members found this post helpful.
Old 07-22-2020, 10:52 AM   #12
heistein369
LQ Newbie
 
Registered: May 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thumbs up Hurray! It finally works. Thank you very much!

It finally works. Thank you very much!
 
Old 07-22-2020, 11:01 AM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,352

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034
Your welcome
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How keyboard back? It seems something changed my keyboard and other language settings dedec0 Linux - Mobile 4 07-17-2020 05:31 PM
LXer: Final 4MLinux and 4MLinux Allinone Edition 12.0 Released with PAE Support LXer Syndicated Linux News 0 05-10-2015 12:56 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration