LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-03-2022, 10:35 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Clonezilla live is busting my ...


For many years I have used Clonezilla for cold OS backups. It has saved me MANY times from bad updates etc. For a number of my machines I run the OS (CentOS7, Ubuntu 20.04, Mint 20.3) from 32 GB USB flash drives. A number of reasons I will not go into for now.

I just got a new entry level Intel NUC. I burned a cloned image of a Mint machine (gateway, firewall, VPN sharing) onto a brand new 32 GB flash drive. So far, so good. I booted the new NUC and made some changes to NIC mac addresses etc., tested it and declared it ready for production. Final step was to burn a backup.

Clonezilla tells me there are bad sectors on the flash drive.

fsck - no problems
Ran
Code:
badblocks -w -s -o error.log /dev/sdX
for over an hour. Several passes with different patterns. No errors.
Used dd to make an image of the flash drive. No complaints.
Formatted the flash drive with overwrite. No complaints.
Tried to image a couple of other flash drives - errors reported by Clonzilla.
Repeated tests with the latest "alternate" (Ubuntu based) Clonezilla live. Same issue.

Finally... The Intel NUC does not detect a bootable drive when I attempt to boot it from the Clonezilla live flash drive. It does show bootable when I examine it and it boots other machnines.

Any suggestions?

TIA,

Ken
 
Old 07-03-2022, 12:53 PM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,507

Rep: Reputation: Disabled
MBR? UEFI? Secure Boot?

One of the above, probably Secure Boot
 
Old 07-03-2022, 12:55 PM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Sounds like a firmware / bios issue on the NUC. If it will boot some devices but not others then it seems that it is not properly reading the device boot sector.
 
Old 07-03-2022, 03:20 PM   #4
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks fatmac,

Secure boot is turned off on the NUC. It is booting with UEFI. It boots a Mint image burned to a USB flash drive with Disks just fine. But not Clonezilla.

Thanks computersavvy,

I am cloning one of my 32 GB USB drives with the NUC OS on another machine with Redo Rescue. It created the image no complaint. I am now burning it back to the flash drive. When I am done I will see if the Redo Rescue flash drive will boot the NUC and make sure the saved and restored image still works on the NUC.

Ken

Update:

My first attempt failed. I think I selected to restore all partitions rather that a COMPLETE restore. I did another create image and complete restore to a second USB drive which now boots the NUC just fine. It appears I have a workable solution.

I have no idea what is going on with Clonezilla. It has been my standby for MANY years. Now if I could remember what I was supposed to be working on.

Last edited by taylorkh; 07-03-2022 at 04:03 PM. Reason: update
 
Old 07-05-2022, 07:28 AM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
I am marking this thread resolved although it should be half resolved. This beggars belief...

I use a Dell Inspiron 3050 Micro (NUC size PC) with a 1 TB internal drive as my image storage box. I use Clonezilla to take images of Linux installs on USB flash drives and MicroSD cards (for Raspberry Pi). It has worked great for a long time. The box has ONE USB3 port which I have always used for the device being imaged as I figure it is faster and boot Clonezilla from a USB2 port as it is on a USB2 flash drive. That configuration is what was failing me as described above.
hLast night I decided to try cloning a flash drive from a USB2 port. Worked great multiple times and I restored an image to a flash drive in the USB2 port. No problems. Is the is the answer? NO. This morning I have been imaging and burning to the USB3 port as usual. Same flash drives. No problems reported. Perhaps some corrosion on the USB3 connector in the computer? Perhaps but I had tried the process on an idenical computer yesterday and got the bad sector message from Clonezilla. Perhaps I should not image flash drives on Monday

As to the NUC not booting from Clonezilla... I have read that NUCs are somewhat picky in booting from USB. I will play with that some more when I have time. In the interim I have found redorescue to work well.

Thanks again for the input.

Ken
 
Old 07-05-2022, 07:52 AM   #6
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
This is starting out as a week for self inflicted problems

The NUC booting is resolved. On my bench I have a USB hub with the transceivers for my wireless keyboard and mouse plugged in. When I want to fire up a machine I plug that hub in - easier than fumbling with the two tiny transceivers and less likely to loose them. I was installing some VPN software on a couple of NUCs and I had the .deb files, credentials, some scripts etc. on a flash drive for convenience. I had that flash drive plugged into the hub so it would be available when the new machine booted.

It seems that the NUC saw that flash drive first, determined that it was not bootable and simply gave me the digital bird rather than examine any other USB storage devices. I removed the non-bootable flash drive from the hub and Clonezilla boots just fine

This thread is truly resolved - even if I do not know the root cause of the bad sectors issue.

Ken
 
1 members found this post helpful.
Old 07-05-2022, 03:59 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by taylorkh View Post
This is starting out as a week for self inflicted problems

The NUC booting is resolved. On my bench I have a USB hub with the transceivers for my wireless keyboard and mouse plugged in. When I want to fire up a machine I plug that hub in - easier than fumbling with the two tiny transceivers and less likely to loose them. I was installing some VPN software on a couple of NUCs and I had the .deb files, credentials, some scripts etc. on a flash drive for convenience. I had that flash drive plugged into the hub so it would be available when the new machine booted.

It seems that the NUC saw that flash drive first, determined that it was not bootable and simply gave me the digital bird rather than examine any other USB storage devices. I removed the non-bootable flash drive from the hub and Clonezilla boots just fine

This thread is truly resolved - even if I do not know the root cause of the bad sectors issue.

Ken
I would be willing to wager that the use of the external USB hub was the main factor. The bios had to configure it in addition to the internal devices and thus it seems possible that something was improperly configured by the bios.

USB from the bios is intended to support keyboard, mouse, flash drives, etc, but is not intended to support chained hubs as you are using. Specifically, the bios on a PC is designed to support the hardware installed on the motherboard, but not all additional hardware beyond that necessary to boot.

Last edited by computersavvy; 07-05-2022 at 04:02 PM.
 
Old 07-05-2022, 04:46 PM   #8
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks computersavvy,

As I recall, Windows NT 3.51 did not support USB so I did not buy anything USB. Since I had nothing USB I did not care that NT did not support USB. USB, especially flash drives, present a tremendous attack surface. Think Stuxnet. The NUC would boot from a Mint Mate 20.3 install ISO on a flash drive or from the redorescue live flash drive WHILE I HAD THE DATA FLASH DRIVE IN THE HUB. Clonezilla Live - no. Who knows. At least now I have a working solution.

Thanks again for your insightful comments.

Ken
 
  


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
LXer: Clonezilla-release Stable Clonezilla live (2.0.1-15) Released LXer Syndicated Linux News 0 12-18-2012 09:21 PM
LXer: Bordeaux 50% off recession busting sale LXer Syndicated Linux News 0 11-30-2010 12:12 PM
LXer: Busting (or Trusting) Wi-Fi Security Myths LXer Syndicated Linux News 1 05-28-2010 07:34 AM
LXer: Linux in 2006: June is Busting Out All Over LXer Syndicated Linux News 0 12-26-2006 10:54 PM
LXer: EFF Patent Busting Project LXer Syndicated Linux News 0 07-07-2006 10:54 PM

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

All times are GMT -5. The time now is 02:10 PM.

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