Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

When can I reboot (during Install)

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
41 posts
  • 1
  • 2
  • Next
Author
Message
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

When can I reboot (during Install)

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 12:13 pm

Hey. So, basically, I REALLY need to reboot my VM. I am installing Gentoo in a VM, and earlier today my laptop was in a different physical location. Now, I'm back home, but the IP addresses have a load of issues, which basically means I'm shooting in the dark about the networking section. So I need to reboot the VM to fix it. I am at "Networking Information". If I reboot, what is going to happen? Will I lose everything?

[Moderator note: the "messed up IP addresses" are discussed in [topic=1082342]I messed up my Networking. Please Help.[/topic]. -Hu]
Top
bobbymcgee
n00b
n00b
Posts: 55
Joined: Thu Apr 12, 2018 2:03 pm

  • Quote

Post by bobbymcgee » Sun Jun 10, 2018 12:52 pm

is this a joke?

no rebooting will not erase your hard drive. you will have to mount the partitions and chroot from your bootable media again and then pick up where you left off.
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 12:53 pm

Why would I make a joke. You don't need to be a jerk.
Top
bobbymcgee
n00b
n00b
Posts: 55
Joined: Thu Apr 12, 2018 2:03 pm

  • Quote

Post by bobbymcgee » Sun Jun 10, 2018 1:10 pm

sorry it came off like that with "but the IP addresses have a load of issues,"
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 1:41 pm

Its ok. What I mean is that my IP information is definitely messed up. As in, the IP is 10.0.1.15 when it ideally would be 192.168.1.(something).
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sun Jun 10, 2018 2:22 pm

Just restart your ethernet service.

Code: Select all

service net.eth0 restart
assuming you use eth0 which you probably don't. Use ifconfig to find out your interfaces name and substitute it for eth0.

This is assuming that your address is dynamically assigned. If not, you'll have to edit some file (which one depends on your setup) to change it before you restart.
Last edited by Tony0945 on Sun Jun 10, 2018 2:24 pm, edited 1 time in total.
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 2:23 pm

First off, really sorry for being a n00b. Second, which part of ifconfig will get my eth0/whatever names?

Also darn because I already set up the Networking using eth0. I'll have to go redo that.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Jun 10, 2018 3:23 pm

To address your original question, you can reboot whenever you like. You will need to redo commands that change live state, such as the current directory, the current root directory, or networking configuration. You do not need to redo commands that would cause data loss, such as changing the partition table, creating LUKS volumes, or formatting filesystems.

Your problem does not require rebooting the VM. That might be the fastest approach for you, but it is not the only solution.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sun Jun 10, 2018 4:25 pm

I made a change to my response on the other thread because now knowing this, it changes everything...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jun 10, 2018 4:30 pm

StevenC21,

No need to apologise for being new to Gentoo, or even to Linux.
We were all new at one time and most of us remember the learning curve.

You can reboot at any time during the install. The work you have done on /mnt/gentoo and inside the chroot will still be on your VM hard drive.
It just won't be attached at /mnt/gentoo and you won't be in the chroot is all.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 4:33 pm

Thank you for the kind words. In addition, would you mind looking at some of the other questions I have asked around the site? I'm afraid I might not get an answer.

https://forums.gentoo.org/viewtopic.php ... 70#8227970
https://forums.gentoo.org/viewtopic.php ... 60#8227960
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sun Jun 10, 2018 5:28 pm

StevenC21 wrote:First off, really sorry for being a n00b. Second, which part of ifconfig will get my eth0/whatever names?

Also darn because I already set up the Networking using eth0. I'll have to go redo that.
ifconfig -a

If you are already on eth0, that's fine. Often it's some dumb "persistant name" like enpsxyz0 or something else unmemorable that WILL change if you add or remove or reorder a PC card.

EDIT: I see from your other thread that it's not eth0 it's enp0s3. If you add "net.ifnames=0" to your kernel command line, you will restore eth0. Or keep enpos3. Just run net.setup again from sysrescuecd selected "wired" and "enp0s3" instead of eth0.

A bit of history here. eth0 used to be the default and worked fine as probably 99% of machines have only one ethernet interface so there is no ambiguity. But to deal with the minority of machines that have more than one, RedHat foisted this "persistant name" crap on the Linux community. Renaming has it's uses. I use eudev to rename the two interfaces on my PC router to "lan0" and "wan0" which is handier than remembering those stupid default names. If you have only one card and it seems that's your situation add "net.ifnames" to your kernel command line and stay traditional.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jun 10, 2018 5:53 pm

StevenC21,

It looks like you are in good hands on the two posts you referenced.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 6:17 pm

Thanks for the help guys! However, I'm still a bit lost.

I don't know what the kernel command line is, nor do I know what net.setup is, and I don't believe I've ran it yet. I don't know what sysrescuecd is either.

Sorry.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sun Jun 10, 2018 6:22 pm

One of your other threads has specific instructions for letting VBox acquire your host network. You probably should follow that.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jun 10, 2018 6:50 pm

StevenC21.

net.setup is a helper script to configure your network.
Its mostly not needed and if you think you need it to install in VBox, your virtual machine is misconfigured in virtualbox itself.

The kernel command line is a list of space separated options passed to the kernel when its loaded into RAM.
They appear in grub.cfg after

Code: Select all

kernel <path_to_kernel_file>

root= init= amdgpu.audio=1 and so on are popular. You mostly don't need to worry about them unless you are doing something off the beaten track.

System Rescue CD is a popular toolkit for rescuing broken systems and installing Gentoo.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 6:56 pm

Thanks Ned. So, what is the package called for me to install? Sorry, I'm new.

Very new.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jun 10, 2018 7:12 pm

StevenC21,

When you follow the handbook, how far have you got?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 8:48 pm

Well, I'm stuck at installing the bootloader. I accidentally formatted it as ext2, and I am having EVEN MORE issues unmounting it to format it FAT. I don't know whats happening lol.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jun 10, 2018 10:52 pm

StevenC21,

Understand that Virtualbox provides a whole virtual PC. BIOS, all the hardware ... everything.
Nothing you see in the guest bears any relationship to any real hardware installed in your PC.
That's somewhat simplistic but its a good enough approximation for now.

ext2 is fine in VBox as it will use BIOS by default.
vfat is only required for your EFI partition if you actually use EFI.

What does

Code: Select all

fdisk -l /dev/sda
show in your chroot?
Please copy/paste it into a post or

Code: Select all

emerge wgetpaste
and put it on the web, then post the link.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Sun Jun 10, 2018 10:54 pm

The command reads:

Code: Select all


Device       Start       End   Sectors  Size Type
/dev/sda1     2048    206847    204800  100M Linux filesystem
/dev/sda3   268288   1316863   1048576  512M Linux swap
/dev/sda4  1316864 104855551 103538688 49.4G Linux filesystem
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sun Jun 10, 2018 11:11 pm

StevenC21,

I'm not fobbing you off. I'm a noob at VBox also. I thought you were installing on bare metal with sysrescuecd, the preferred way to install on bare metal.
If that were the case you would have had prompts to set up your network using netsetup.

I'm still following so I can I can learn something myself.

Welcome to Gentoo!
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sun Jun 10, 2018 11:40 pm

Keep in mind, if you have a program running on a mounted directory, Linux will stop you from unmounting that directory until all programs with an open file handle on that directory has closed their file handles or terminated. Make sure you have no windows cd'd to that directory else you won't be able to unmount.

However yes if you're using MBR boot which is likely when using VBox, you do not need a EFI system partition for that VM. Grub will happily boot off of ext2.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Jun 11, 2018 12:15 am

StevenC21,

All of it please. Especially the Disklabel.
We are trying to work out if you are using EFI or not. I suspect not, once its confirmed, the way forward is to not tell grub to use EFI.

You can mix BIOS and GPT, mostly but don't. BIOS and MSDOS is easier.
If you use UEFI, you must use GPT.
Virtualbox defaults to BIOS but it can do UEFI if you configure it that way.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
StevenC21
n00b
n00b
Posts: 63
Joined: Thu Jun 07, 2018 1:04 pm

  • Quote

Post by StevenC21 » Mon Jun 11, 2018 12:20 am

Alright. Is there a way I can help in determining that?

Sorry I really am trying to understand, but I made the jump from 3 months of Linux Mint experience here, so...
Top
Post Reply

41 posts
  • 1
  • 2
  • Next

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy