LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-07-2016, 08:53 PM   #16
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0

Thank you Fred Caro, for coming.

Quote:
Originally Posted by Fred Caro View Post
Have you tried checking your memory (ram)? If you can't boot to check try an external dvd/cd player, if you have one available or take it out and check it in another system, ie run memtest from another install disk/usb or even the same one, it is often present on an install disk (memtest, that is).

Fred.
Sorry for the delaid reply, it took me some time to do what you suggested.

I made two unsuccessful attempts to connect two old external dvd players. Probably they may be out of order. Both didn't recognise the cds.

As a last resort I took courage and installed Grub. God forbid, everything went smooth. When I hold the shift key, I get the grub menu now. So I conducted the memory-test. Down below on the screen, I got the result "Pass complete. No errors.". Here below is the result;

Click image for larger version

Name:	Memtest.jpg
Views:	19
Size:	150.5 KB
ID:	22365

After this I again tried to boot from USB. But there was no success.

Thank you for your concern, Fred.

Regards
 
Old 07-09-2016, 09:39 PM   #17
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Hello everybody,

If the USB booting issue cannot be resolved; is there any other solution for preventing my PC from going out of my hands, when something goes wrong and I am unable to boot into the current OS due to the lack of a Live USB/CD boot option?

I was thinking of a measure that could save me from such a disaster. But I do not know, whether it is possible?

Though my CD drive and USB are not working, I have a working OS, i.e, LXLE already installed. Can I use this already installed LXLE OS on the HD, to install another small OS like TinyCore-Linux on a new small partition created on the same HD? Is it possible to install another Linux distro from my currently installed Linux OS? If there are two OSs, [One for working and the other a standby, just a small core OS.] on the system and if one fails; in the absence/failure of Live USB/CD boot, the other OS can be helpful in accessing the PC and resolving the issues.

I searched the web. But didn't find any step by step tutorials. I didn't find clear information on whether, even if this is possible or not.

Please kindly inform whether this is possible or not. And if possible, is there any step by step guide to do it? Please provide links that help with the required step by step guidance for doing it.

Thank you all, for the concern.

Regards
 
Old 07-10-2016, 07:30 AM   #18
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,490

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Yes it is possible as long as you have another OS such as LXLE which has Grub2. You download the iso of whichever OS you want, whether TinyCore or something else, to your LXLE partition then put an entry to boot the iso in the /boot/grub/grub.cfg file. This works with almost any Ubuntu derivative and a number of other Linux systems. You can get an explanation at the Ubuntu documentation site below.

https://help.ubuntu.com/community/Grub2/ISOBoot

An entry that worked for me is below. You need to make appropriate changes such as the set root line and the loopback loop line which needs to have the "exact" name of the iso pointing to it's path. The example below shows the iso in the / (root) of the filesystem.

Quote:
menuentry 'Tiny Core iso' {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
loopback loop /TinyCore-5.3.iso
linux (loop)/boot/vmlinuz tce=sda2
initrd (loop)/boot/core.gz
}
 
Old 07-10-2016, 08:29 AM   #19
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Hi Yancek. Thanks for coming.

Quote:
Originally Posted by yancek View Post
Yes it is possible as long as you have another OS such as LXLE which has Grub2.
Oh that's nice. But can I install Grub2 through the Synaptic? I checked but didn't find an entry. There is an entry that says;

Quote:
Grub v2: This is a dummy transitional package to handle GRUB 2 upgrades.
Does this install Grub2 on the system?

If not how to install/upgrade Grub2? Is my old system compatible with it? Is there any risk of upsetting the MBR during installation?

Quote:
Originally Posted by yancek View Post
You download the iso of whichever OS you want, whether TinyCore or something else, to your LXLE partition then put an entry to boot the iso in the /boot/grub/grub.cfg file. This works with almost any Ubuntu derivative and a number of other Linux systems. You can get an explanation at the Ubuntu documentation site below.

https://help.ubuntu.com/community/Grub2/ISOBoot

An entry that worked for me is below. You need to make appropriate changes such as the set root line and the loopback loop line which needs to have the "exact" name of the iso pointing to it's path. The example below shows the iso in the / (root) of the filesystem.
Thanks for the link, yancek. I will go through it. And thanks for the sample entry. Such samples help a lot to newbies like me. They greatly reduce the slope of the learning curve. Giving samples, is a great way of teaching. They quickly iron out lot of doubts springing in the minds of amateurs.

Thanks for the concern.

Regards
 
Old 07-10-2016, 11:49 AM   #20
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,490

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
You said you had LXLE already installed. If that is the case and the LXLE install is recent, then you already have Grub2 and there would be no need to install it again. Use the grub.cfg file in your LXLE /boot/grub directory. Don't update grub. After you have used the entry to boot and install TinyCore or whatever you decide to install, simply delete the entry from the LXLE grub.cfg file and run sudo update-grub from LXLE to get a menuentry for it in the Grub menu.
 
Old 07-11-2016, 10:48 AM   #21
Anil Kagi
Member
 
Registered: Aug 2014
Distribution: antiX-Frugal
Posts: 155

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
You said you had LXLE already installed. If that is the case and the LXLE install is recent, then you already have Grub2 and there would be no need to install it again. Use the grub.cfg file in your LXLE /boot/grub directory. Don't update grub. After you have used the entry to boot and install TinyCore or whatever you decide to install, simply delete the entry from the LXLE grub.cfg file and run sudo update-grub from LXLE to get a menuentry for it in the Grub menu.
Mysteriously, yancek, when I had first installed LXLE, neither Grub-legacy nor Grub2 was installed by default. Later I installed Grub-legacy. But to make doubly sure, I checked the version installed on the system by giving the command 'grub-install -v', and the output was,

Quote:
grub-install (GNU GRUB 0.97)
Thank you for being there, yancek.

Regards
 
Old 07-11-2016, 11:11 AM   #22
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,490

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
I installed LXLE 14.04 which had Grub2 as the default bootloader so I'm not sure why the version you used did not have Grub2. It wouldn't boot without a bootloader unless you were using a bootloader from some other system. In any case, the method I suggested to boot the iso directly will not work with Grub Legacy for any iso. You would need to first loop mount the iso, then create a directory and copy all the files from the loop mount location then open the isolinux or syslinux.cfg file and copy the modified boot entry to fit Grub Legacy and put that entry in the grub.conf or menu.lst file. Not nearly as simple as using Grub2.
 
Old 07-11-2016, 03:41 PM   #23
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
If this system booted once from a usb then about the only way it can't boot again is because usb port is damaged.

I'd do full power down for a few hours with ac (and battery if laptop) removed.

Then insert usb flash or usb hard drive.

Boot directly to bios.

Look in "Hard Drive" order. Move usb drive above internal drive.

Boot choice set to "Hard Drive" Not usb choice.

Boot
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue while booting from LiveUSB srv.abhishek Linux - Laptop and Netbook 3 06-29-2015 07:59 AM
LiveUSB not booting >>Youtube Video CollinBlatt Linux - Newbie 1 01-24-2014 01:21 PM
How to edit initrd to fit your liveUSB - liveUSB preparation (openSUSE and others) deckoff Linux - General 7 01-08-2012 02:58 AM
Fedora 14 LiveUSB not booting up Little_Robot Fedora 6 11-22-2010 09:25 PM
Bug in initramfs /init detected while booting from Fedora 9 liveusb nikhil010586 Linux - Newbie 1 09-16-2008 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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