LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-17-2015, 09:59 AM   #1
gordont8
LQ Newbie
 
Registered: Sep 2014
Posts: 13

Rep: Reputation: Disabled
How to run 'GParted Live' directly from the hard drive.


My H.P Compaq notebook is dual booted with Xubuntu 14.04 and Windows 7.
I want to run GParted Live direct from the hard drive. To this end I have downloaded 'gparted-live-0.20.0-2-i486.iso' onto my '/home/gordon/Downloads'folder. The folder is in partition 'dev/sda5' which is within extended partition 'dev/sda4'.
To get 'GParted Live' to boot from the Grub start menu I understand I have to add a specific script to file 'grub.d/40_custom' and save it. I then have to update the 'grub.cfg' file by putting the command 'sudo grub-mkconfg -o /boot/grub/grub.cfg' into Terminal.
My problem is that I do not know the script to add into the 'grub.d/40_custom' file in order to get GParted Live to boot.
Would someone with knowledge of this procedure be able to tell me exactly what script I have to type please.

Last edited by gordont8; 01-17-2015 at 10:00 AM.
 
Old 01-17-2015, 10:49 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
http://gparted.org/livehd.php
 
Old 01-17-2015, 02:01 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,611

Rep: Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515Reputation: 2515
The simplest way is at the link posted by Head_on_a_Stick above using the second Grub2 option with setisofile. The line below in the example assumes the gparted iso file in in /home/isos, so if it is not, you need to change the path to where it actually is or move it.

Quote:
set isofile="/home/isos/gparted-live-0.5.2-9.iso"
I've used the other method for Grub2 with the GParted files extracted. Don't try to modify the partition on which you have GParted as that won't work.
 
Old 01-17-2015, 04:58 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,026

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Opps, I read post 2 finally.

Last edited by jefro; 01-17-2015 at 05:50 PM.
 
Old 01-18-2015, 09:05 AM   #5
gordont8
LQ Newbie
 
Registered: Sep 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Many thanks yancek. I was successful when I followed the Head_on_a _stick guide. One of the many mistakes I made on the way was to use the update command 'sudo grub-mkconfig -o /boot/grub/grub.cfg' to update grub. I should have used 'sudo update-grub2'. One of the difficulties when searching for guides, as I am sure everybody knows, is being able to identify a guide that is up-to date and has relevance to your particular setup. I spent a number of frustrating hours following duff leads when trying to get GParted Live onto the hard drive.

Last edited by gordont8; 01-18-2015 at 09:07 AM. Reason: spelling yancek
 
Old 01-18-2015, 03:20 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
mind you you will NOT be able to do anything with the partition that the iso is on

seeing as you would have to unomunt that partition first

this is why it is a LIVE dvd

just about the ONLY use for the gparted in your OS's repos ( should be using ) is for usb thumb drives
 
Old 01-18-2015, 05:33 PM   #7
gordont8
LQ Newbie
 
Registered: Sep 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
John, Your comment leaves me a little puzzled. My understanding is/was that, by setting up the iso on the hard drive and amending the 'grub config' file in the manner shown in the 'Head on a stick' guide, booting it up from the grub menu left all the partitions unmounted. In fact, when I did just as described, no partitions were mounted, including the /home partition where the iso file resided. I did read in one webpage a comment which said the iso file probably had to be in root for it to work. However, as I could not fathom how to get the downloaded iso into root I left it in '/home/gordon/Downloads' and it all worked fine. I do have a separate GParted that I probably installed directly from Ubuntu Software but that ,of course, shows the partitions mounted when you run it from the whiskers menu. The reason I put the iso onto the hard drive was because, having downloaded it onto a USB flash drive with one of the necessary appendages, I could not get the flash drive to boot. I did not try loading it onto a CD. That would have been my final shot if the hard drive download had not worked.
 
  


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
How do I partition my hard drive? Gparted is being stupid. Scorr Linux - Newbie 14 02-01-2009 05:22 PM
Recording video directly to hard drive? Mark_667 Linux - General 2 11-09-2008 04:19 AM
How do I install Linux directly to a hard drive? traceii Linux - Newbie 16 01-17-2008 04:52 PM
loading linux directly on to hard drive gibney Linux - Newbie 2 05-14-2007 03:28 AM
Please help me run fsck from a live cd to check my hard drive... extendedping Linux - Software 7 01-30-2007 03:17 PM

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

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