LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2023, 08:37 PM   #1
krplun
LQ Newbie
 
Registered: Apr 2023
Posts: 4

Rep: Reputation: 0
Angry Run Clonezilla from the Grub Menu


0


Hi I'm trying to insert a clonezilla-live option into my ubuntu grub menu. I put the clonezilla .iso file in the root directory and then updated the /etc/grub.d/40_custom file with the folowing entry:

menuentry "Clonezilla live" { set isofile="/clonezilla-live-3.0.3-22-amd64.iso" loopback loop $isofile linux (loop)/live/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset nodmraid ocs_live_run="ocs-live-general" ocs_live_extra_param="" keyboard-layouts= ocs_live_batch="no" locales= vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile initrd (loop)/live/initrd.img }

I then ran update-grub2, rebooted and selected clonezilla-live from the grub menu. The clonezilla .iso file must have been found because a clonezilla screen was displayed but it was the "second screen" (utf-8 options) instead of the "first screen" ( GNU Grub Menu with 800x600 options). If anyone has any ideas at all as to why this is happening I'd greatly appreciate it. Much thanks in advance! krplun

Last edited by krplun; 04-19-2023 at 10:22 AM.
 
Old 04-18-2023, 02:19 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,852
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Since the advent of KMS many many moons ago, vga=788 in linux boot cmdlines for most generic kernels only lasts for a few seconds before KMS kicks on, then running in the display's native mode unless something is done to configure otherwise, or if EDID is broken. For framebuffer consoles' text modes, an arbitrary mode can be set using video=<mode>. For X sessions, video= is ignored except if using the intel DDX display driver. If you want X to run in a particular mode with other display drivers, you can set it via various DE tools, or xrandr, or /etc/X11/xorg.con*. I'm not privy to how Clonezilla might do differently from Debian, but likely it doesn't differ at all.
 
1 members found this post helpful.
Old 04-19-2023, 10:30 AM   #3
krplun
LQ Newbie
 
Registered: Apr 2023
Posts: 4

Original Poster
Rep: Reputation: 0
Much appreciate you responding Mrmazda! This stuff seems to be above my pay grade so to speak. I took the vga parm out but got the same result. Assuming Clonezilla is like Debian are you thinking that all I might have to do is put the video=<mode> parm in the menuentry definition and it might fix my problem?

Interesting note here. If I put the same clonezilla .iso file on a ventoy usb stick and boot up from it the first screen does shows up! So why is clonezilla working as it should here but not when selected from the grub2? krplun –
Krplun
 
Old 04-19-2023, 11:31 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,852
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
With Grub, it's a simple thing to test boot parameters at run time by striking the E key when its menu appears, removing vga=, and appending video= parameter before proceeding. If it works as desired, simply make the same change in /etc/default/grub, then regenerate grub.cfg with update-grub.

I've never used Clonezilla, so can't help with anything specific to it. I clone usually with DFSee, sometimes using ddrescue or dd.

Nomodeset is primarily a troubleshooting parameter, designed to give a crude lowfi GUI experience when optimal drivers aren't working. I missed noticing your use of it previously. It almost certainly needs to go for a proper GUI experience. Probably some of the other parameters you included can go as well. The kernel's rather smart about what's need or not without so much interference from startup options.
 
1 members found this post helpful.
Old 04-19-2023, 11:57 AM   #5
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,150

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
I keep a small debian partition for recovery purposes. You can install clonezilla with apt. Then it's just another bootable partition with full distro capabilities
 
1 members found this post helpful.
Old 04-24-2023, 11:02 AM   #6
krplun
LQ Newbie
 
Registered: Apr 2023
Posts: 4

Original Poster
Rep: Reputation: 0
Update - Partial sucess!

Well it appears I have it partially working. Clonezilla has it's own grub2 menu so I took the menuentry from that and put it into the 40_custom file and added the isofile entry parms (see menuentry below). When I reboot and select that entry it finds the clonezilla.iso file and does the backup unattended as I want. What happens though is it backs up partition 1 (dev) and 2 (/boot/efi) sucessfully but ignores partition 3 (my filesystem). I'm thinking maybe it's because that's where the clonezilla.iso file resides. Does that make sense to anyone? Thanks in advance...

menuentry "My Mods with clonezilla-live 3.0.3-22" {
isofile="/home/krplun/Downloads/clonezilla-live-3.0.3-22-amd64.iso"
search --set -f $isofile
loopback loop $isofile
linuxefi (loop)/live/vmlinuz boot=live union=overlay username=user hostname=kinetic components config quiet loglevel=0 noswap edd=on nomodeset enforcing=0 noeject locales="en_US.UTF-8" keyboard-layouts=NONE osc_prerun1="df -h" ocs_prerun2="mount /dev/sdb1 /home/partimag" ocs_live_run="ocs-sr -q2 -j2 -z1p -i 0 -sfsck -senc -p choose savedisk 2023-99-99-img-krpt520T sda" ocs_live_extra_param="" ocs_live_batch="yes" vga=788 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 findiso=$isofile
initrdefi (loop)/live/initrd.img
}
 
Old 04-24-2023, 11:48 AM   #7
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 493

Rep: Reputation: 182Reputation: 182
Seems like a lot of work, not sure of the use case . Personally I just keep a boot-able Clonezilla Live on a cheap thumb drive handy. When I need to run it, I just plug it in and use the 'boot select menu' (F12 key to get to it on my machines) to boot into CloneZilla. Simple . In fact just used a couple of weeks ago to migrate two machines from Linux OS 500GB SSD to 2TB SSD drive. Once done, tuck the thumb drive away for next time. Both systems booted on the new drives no problem.
 
1 members found this post helpful.
Old 04-24-2023, 12:17 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
I'm thinking maybe it's because that's where the clonezilla.iso file resides. Does that make sense to anyone?
I may be wrong, but seems like I came across this a while ago and had to move the iso to a partition I wasn't backing up.
 
1 members found this post helpful.
Old 04-24-2023, 06:29 PM   #9
verndog
Member
 
Registered: Oct 2007
Posts: 279

Rep: Reputation: 68
Here's mine that works:
Code:
menuentry "clonezilla" {
	gfxpayload=1024x768x16,1024x768
	set isofile="/ISO/clonezilla-live-2.7.2-39-amd64.iso"
	loopback loop (hd1,1)$isofile
	linux (loop)/live/vmlinuz nomodeset boot=live live-config edd=on ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts=\"us\" ocs_live_batch=\"no\" locales=\"en_US.UTF-8\" ip=frommedia  toram=filesystem.squashfs findiso=$isofile
	initrd (loop)/live/initrd.img
        }
Clonezilla resides in my ISO folder
 
1 members found this post helpful.
Old 04-25-2023, 09:02 AM   #10
krplun
LQ Newbie
 
Registered: Apr 2023
Posts: 4

Original Poster
Rep: Reputation: 0
It worked for me! I tried a variation of this and it didn't work. Something must have been slightly off. Thank you Verndog for taking the time to share - much appreciated!

BTW Verndog when you run Clonezilla from the grub menu this way which Clonezilla screen shows up first for you? For me the 1st one that shows up is the start Clonezilla screen rather than the Clonezilla grub menu screen (with the 800x600 screen option on it). Got any idea as to why? krplun

Last edited by krplun; 04-26-2023 at 08:08 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Clonezilla iso won't boot from grub2 menu Tem2 Linux - Software 22 09-10-2021 10:35 AM
[SOLVED] Need help adding Clonezilla to grub2 menu Tem2 Linux - Software 3 09-08-2021 05:29 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
LXer: Clonezilla-release Stable Clonezilla live (2.0.1-15) Released LXer Syndicated Linux News 0 12-18-2012 09:21 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 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