WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: grub settings  (Read 19459 times)

Offline Iko113

  • Newbie
  • *
  • Posts: 19
Re: grub settings
« Reply #30 on: September 15, 2018, 05:49:34 AM »
In my previous post I added the wrong attachment. Here it is for ext4.

Offline Iko113

  • Newbie
  • *
  • Posts: 19
Re: grub settings
« Reply #31 on: September 15, 2018, 10:54:15 AM »
Sorry for the previous posts (#29 and #30): this problem was solved by installing e2fsprogs in the terminal (as in the instructions): something must have gone wrong with the installation in the appbrowser.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: grub settings
« Reply #32 on: September 15, 2018, 11:07:41 AM »
Hello Iko113

Honestly I would start over..

I recommend a non-journaling file system like ext2 file system for a USB stick
and ext4 for a regular old HDD
create
sdc1 (DOS/UEFI) for your boot files
sdc2 (ext2) for you home, opt and tce directory structure

--set=root will probably need to be the first partition so that grub can find your /boot/ "linux files"
Code: [Select]
blkid -s UUID /dev/sdc1
You're showing errors with unsupported file systems from a booted tinycore which is unrelated to grub.
You can verify which file systems gparted current;y has support for by checking gparted menu;  Gparted > View > File System Support
If a file system is not supported then load the appropriate driver, eg;
Code: [Select]
tce-load -i e2fsprogsthen close and reopen gparted

Also this has been said many times already (not that this is an issue yet, but will be once you've provided grub with the correct path to your linux files...)  CDE is for a read only Compact Disk.  After copying the contents of a cde directory to a USB stick or HDD, you must change the directory name from cde to tce and remove the cde entry from your boot config file.


An example of grub.cfg from my currently installed USB stick
Code: [Select]
insmod part_msdos
insmod fat
insmod ext2
loadfont unicode
insmod efi_gop
insmod efi_uga
insmod font
insmod gfxterm
set gfxmode=auto
set gfxterm_font=unicode
set gfxpayload=keep
terminal_output gfxterm

#Timeout for menu
set default=0
set timeout=5

menuentry "*** TC-9-x86 (Nvidia on USB)" {
search --no-floppy --fs-uuid --set=root B854-8FE0
linux /boot/vmlinuz-41410 vmalloc=384MB tz=GMT noswap loglevel=3 waitusb=5:UUID="b313c2c4-fedf-4c44-bf42-6a6fca54b311" tce=UUID="b313c2c4-fedf-4c44-bf42-6a6fca54b311"/tc9-x86 opt=UUID="b313c2c4-fedf-4c44-bf42-6a6fca54b311" home=UUID="b313c2c4-fedf-4c44-bf42-6a6fca54b311" lst=onboot_x86_Nvidia.lst mydata=mydata_tc9x86.Nvidia
initrd /boot/rootfs-90.gz /boot/modules-41410.gz
}


menuentry "*** TC-9-Corepure64 (Xorg on USB)" {
search --no-floppy --fs-uuid --set=root B854-8FE0
linux /boot/vmlinuz64-41410 noswap tz=GMT loglevel=3 waitusb=5:UUID="b313c2c4-fedf-4c44-bf42-6a6fca54b311" tce=UUID="b313c2c4-fedf-4c44-bf42-6a6fca54b311"/tc9-x86_64 opt=UUID="b313c2c4-fedf-4c44-bf42-6a6fca54b311" home=UUID="b313c2c4-fedf-4c44-bf42-6a6fca54b311" lst=onboot_CorePure64.lst
initrd /boot/rootfs64-90.gz /boot/modules64-41410.gz
}

menuentry "System restart" {
echo "System rebooting..."
reboot
}
When you have multiple drives and partitions it's important to specify the correct path to the linux files you wish to use.
Remember this is only a partial example from a USB install I use on a 64bit UEFI PC in compatibility mode, so YMMV

I suggest set root and partition layout is holding back progress here...
« Last Edit: September 15, 2018, 11:22:38 AM by coreplayer2 »

Offline Iko113

  • Newbie
  • *
  • Posts: 19
Re: grub settings
« Reply #33 on: September 15, 2018, 12:13:19 PM »
Thank you for your support. I'll have to do some (more) reading ;-)

Offline Iko113

  • Newbie
  • *
  • Posts: 19
Re: grub settings
« Reply #34 on: September 16, 2018, 07:23:42 AM »
create
sdc1 (DOS/UEFI) for your boot files
sdc2 (ext2) for you home, opt and tce directory structure

--set=root will probably need to be the first partition so that grub can find your /boot/ "linux files"
This first partition would be sdc1(DOS/UEFI), but the "linux files" home, opt and tce are on sdc2??
(my confusion: is "root" for GRUB/UEFI or for TC-files?)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: grub settings
« Reply #35 on: September 16, 2018, 09:11:52 AM »
I think of root as synonymous with original of something, or the beginning

We must be careful not to confuse the root file system with root device.   AIUI as Grub.cfg  is concerned we are referencing the device where linux kernel and tc initrd can be found.  In this case we are specifying the first partition to begin our search.


In this example:

Code: [Select]
blkid -s UUID /dev/sdc1
Code: [Select]
search --no-floppy --fs-uuid --set=root B854-8FE0
linux /boot/vmlinuz
initrd /boot/rootfs.gz /boot/modules.gz

required components to boot are referenced from root device (partition UUID B854-8FE0)/boot/


there are some minor differences with GPT and UEFI installations but the grub install command will take care of these
If you use the  --removable option then GRUB will be installed to /EFI/BOOT/BOOTX64.EFI

But don't take my word for anything, if you need more, see:
https://www.gnu.org/software/grub/manual/grub/grub.html#Introduction
« Last Edit: September 16, 2018, 09:31:33 AM by coreplayer2 »

Offline Iko113

  • Newbie
  • *
  • Posts: 19
Re: grub settings
« Reply #36 on: November 04, 2018, 08:49:14 AM »
Problem solved by 1. advice of coreplayer2 combined with 2. modification of grub-install: replace "target=x86_64-efi" with "target=i386-efi". Thanks for your help.