Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How 2 boot from iso 4 rescue when no external media?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1104

PostPosted: Thu Apr 16, 2015 9:19 pm    Post subject: How 2 boot from iso 4 rescue when no external media? Reply with quote

Hi,
Instead of having a external media as a rescue, I'd like to dedicate a partition for that purpose?
Is it feasable?
Thks 4 ur attention.


Last edited by CaptainBlood on Thu Apr 16, 2015 9:35 pm; edited 2 times in total
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1104

PostPosted: Thu Apr 16, 2015 9:25 pm    Post subject: Reply with quote

Code:
http://www.howtogeek.com/196933/how-to-boot-linux-iso-images-directly-from-your-hard-drive/
is my best self answer. :lol:
I was wondering about grub2, but not so easy!
Linux for the World!! Sorry but I can't refrain myself :wink:
It is not a partition but I my case it will fit as I mainly need to update ext4 of a single boot physicaly already resized partition.
Thks 4 ur attention, interest and support
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43213
Location: 56N 3W

PostPosted: Thu Apr 16, 2015 9:49 pm    Post subject: Reply with quote

CaptainBlood,

ext4 has on line resizing. If you made the partition bigger, resize2fs is what you need.
It works on live in use filesystems.

If you made the partition smaller, you must shrink the filesystem first.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1104

PostPosted: Thu Apr 16, 2015 10:49 pm    Post subject: Reply with quote

Here is the following situation:
I have a third party boot manager, which allows partition tweaks in a easy gui (Bootit BareMetal not to name it).

It claims it can resize ext2, 3 & 4 both ways.

As I need to free up some disk space to create new partitions, I'd rather do it graphically at physical level first, and to do the adequate resize2fs within an alternate booting system as a final step. AFAIK this is editor's advice on the subject.

So i'm confused at
Code:

If you made the partition smaller, you must shrink the filesystem first.

because it implies physical level should come second.

Not that I think it is impossible, but I fear it requires partition sector/chunk/cylinder calculations to have logical & physical matching together, whereas with the other method the resize2fs thing adapts to the current size of the partition. I must admit I don't recall the exact command line. :oops: :lol:

In both cases (your way or mine), booting from alternate to update filesystem "metadata" seems required, if I understand.

Thanks for your attention, interest & support


Last edited by CaptainBlood on Fri Apr 17, 2015 9:32 am; edited 1 time in total
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1104

PostPosted: Thu Apr 16, 2015 11:16 pm    Post subject: Reply with quote

Oops my bad, I'm totally wrong about the order.
I've just checked editor's advice is the same as yours.
Seems like physically shrinking ext4 can not go beyond metadata's value.

Alternate bootable fs seems required, still.

Since M$ OS is also aboard with a secondary NTFS partition to share with others OS, it should be a problem ALA grub2 can not access NTFS for an iso image boot sequence.
Alternatively I have a bunch of XEN domU partitions to support the trick ( the bootable iso image).

Thks 4 ur attention, interest & support


Last edited by CaptainBlood on Thu Apr 23, 2015 10:58 am; edited 1 time in total
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Apr 22, 2015 9:44 pm    Post subject: Reply with quote

*subscribing*

since I'm interested into these kind of recovery options, too
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum