Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] determine if livecd/liveusb is 32 or 64-bit
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
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 886

PostPosted: Fri Feb 10, 2017 9:20 pm    Post subject: [SOLVED] determine if livecd/liveusb is 32 or 64-bit Reply with quote

Hi,

I'm booting a liveusb with SystemRescueCD to install Gentoo (that's because the Gentoo Minimal Install ISO can't boot with UEFI and the Gentoo LiveDVD is too big for my purposes).
Anyway, SysRescCD is a third-party Gentoo system.

I booted via UEFI and got to the Grub menu. I selected the first default boot option which loads the rescue64 64-bit kernel image.

However, I get the following results when trying to check if I have a 32 or 64-bit system:

Code:

# getconf LONG_BIT
32
# uname -m
x86_64
# arch
x86_64
# file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, stripped


Does this mean the kernel is 64-bit but all the applications are 32-bit?

If I boot "gentoo64" from the Gentoo Minimal ISO, I get all-64bit results, ie., getconf LONG_BIT=64.

Can anyone please let me know if I can install a Gentoo 64-bit multi-lib system on a HDD from this SysRescCD (latest release)?


Last edited by Vieri on Sat Feb 11, 2017 10:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
markisthejob
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2008
Posts: 143
Location: Cork, Republic of Ireland

PostPosted: Fri Feb 10, 2017 9:42 pm    Post subject: Reply with quote

Quote:
# uname -m
x86_64


You are using a x86_64 kernel.Yes you can use this for a 64-bit multilib install. systemrescuecd is many peoples preferred method for installing gentoo
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8710
Location: ~Brussels - Belgique

PostPosted: Fri Feb 10, 2017 10:03 pm    Post subject: Reply with quote

Hi!,

The system in systemrescuecd is 32 bits, and the kernel is 64 or 32 bits, depending if the bootloader detects a 32 or 64 bits processor.
UEFI boot chooses automatically 64 bits if I remember.

So, you can install a 64 bits system without any problem with SystemRescueCD (what I use for years, for 32 and 64 systems).

You only have to download a 64 bits stage 3 and chroot into it.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 886

PostPosted: Fri Feb 10, 2017 10:54 pm    Post subject: Reply with quote

I did that but it seems to be failing on something that has apparently nothing to do with this topic.
It's the first time I try to use a non-official-Gentoo live system to install Gentoo on a HDD.

I'm getting this:

Code:

# emerge-webrsync
!!! Repository 'x-portage' is missing masters attribute in '/usr/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Fetching most recent snapshot ...
Trying to retrieve 20170209 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170209.tar.xz.md5sum ...
Fetching file portage-20170209.tar.bz2.md5sum ...
Fetching file portage-20170209.tar.gz.md5sum ...
20170209 snapshot was not found
Trying to retrieve 20170208 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170208.tar.xz.md5sum ...
Fetching file portage-20170208.tar.bz2.md5sum ...
Fetching file portage-20170208.tar.gz.md5sum ...
20170208 snapshot was not found
Trying to retrieve 20170207 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170207.tar.xz.md5sum ...
Fetching file portage-20170207.tar.bz2.md5sum ...
Fetching file portage-20170207.tar.gz.md5sum ...
20170207 snapshot was not found
Trying to retrieve 20170206 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170206.tar.xz.md5sum ...
Fetching file portage-20170206.tar.bz2.md5sum ...
Fetching file portage-20170206.tar.gz.md5sum ...
20170206 snapshot was not found
Trying to retrieve 20170205 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170205.tar.xz.md5sum ...
Fetching file portage-20170205.tar.bz2.md5sum ...
Fetching file portage-20170205.tar.gz.md5sum ...
20170205 snapshot was not found
Trying to retrieve 20170204 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170204.tar.xz.md5sum ...
Fetching file portage-20170204.tar.bz2.md5sum ...
Fetching file portage-20170204.tar.gz.md5sum ...
20170204 snapshot was not found
Trying to retrieve 20170203 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170203.tar.xz.md5sum ...
Fetching file portage-20170203.tar.bz2.md5sum ...
Fetching file portage-20170203.tar.gz.md5sum ...
20170203 snapshot was not found
Trying to retrieve 20170202 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170202.tar.xz.md5sum ...
Fetching file portage-20170202.tar.bz2.md5sum ...
Fetching file portage-20170202.tar.gz.md5sum ...
20170202 snapshot was not found
Trying to retrieve 20170201 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170201.tar.xz.md5sum ...
Fetching file portage-20170201.tar.bz2.md5sum ...
Fetching file portage-20170201.tar.gz.md5sum ...
20170201 snapshot was not found
Trying to retrieve 20170131 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170131.tar.xz.md5sum ...
Fetching file portage-20170131.tar.bz2.md5sum ...
Fetching file portage-20170131.tar.gz.md5sum ...
20170131 snapshot was not found
Trying to retrieve 20170130 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170130.tar.xz.md5sum ...
Fetching file portage-20170130.tar.bz2.md5sum ...
Fetching file portage-20170130.tar.gz.md5sum ...
20170130 snapshot was not found
Trying to retrieve 20170129 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170129.tar.xz.md5sum ...
Fetching file portage-20170129.tar.bz2.md5sum ...
Fetching file portage-20170129.tar.gz.md5sum ...
20170129 snapshot was not found
Trying to retrieve 20170128 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170128.tar.xz.md5sum ...
Fetching file portage-20170128.tar.bz2.md5sum ...
Fetching file portage-20170128.tar.gz.md5sum ...
20170128 snapshot was not found
Trying to retrieve 20170127 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170127.tar.xz.md5sum ...
Fetching file portage-20170127.tar.bz2.md5sum ...
Fetching file portage-20170127.tar.gz.md5sum ...
20170127 snapshot was not found
Trying to retrieve 20170126 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170126.tar.xz.md5sum ...
Fetching file portage-20170126.tar.bz2.md5sum ...
Fetching file portage-20170126.tar.gz.md5sum ...
20170126 snapshot was not found
Trying to retrieve 20170125 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170125.tar.xz.md5sum ...
Fetching file portage-20170125.tar.bz2.md5sum ...
Fetching file portage-20170125.tar.gz.md5sum ...
20170125 snapshot was not found
Trying to retrieve 20170124 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170124.tar.xz.md5sum ...
Fetching file portage-20170124.tar.bz2.md5sum ...
Fetching file portage-20170124.tar.gz.md5sum ...
20170124 snapshot was not found
Trying to retrieve 20170123 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170123.tar.xz.md5sum ...
Fetching file portage-20170123.tar.bz2.md5sum ...
Fetching file portage-20170123.tar.gz.md5sum ...
20170123 snapshot was not found
Trying to retrieve 20170122 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170122.tar.xz.md5sum ...
Fetching file portage-20170122.tar.bz2.md5sum ...
Fetching file portage-20170122.tar.gz.md5sum ...
20170122 snapshot was not found
Trying to retrieve 20170121 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170121.tar.xz.md5sum ...
Fetching file portage-20170121.tar.bz2.md5sum ...
Fetching file portage-20170121.tar.gz.md5sum ...
20170121 snapshot was not found
Trying to retrieve 20170120 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170120.tar.xz.md5sum ...
Fetching file portage-20170120.tar.bz2.md5sum ...
Fetching file portage-20170120.tar.gz.md5sum ...
20170120 snapshot was not found
Trying to retrieve 20170119 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170119.tar.xz.md5sum ...
Fetching file portage-20170119.tar.bz2.md5sum ...
Fetching file portage-20170119.tar.gz.md5sum ...
20170119 snapshot was not found
Trying to retrieve 20170118 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170118.tar.xz.md5sum ...
Fetching file portage-20170118.tar.bz2.md5sum ...
Fetching file portage-20170118.tar.gz.md5sum ...
20170118 snapshot was not found
Trying to retrieve 20170117 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170117.tar.xz.md5sum ...
Fetching file portage-20170117.tar.bz2.md5sum ...
Fetching file portage-20170117.tar.gz.md5sum ...
20170117 snapshot was not found
Trying to retrieve 20170116 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170116.tar.xz.md5sum ...
Fetching file portage-20170116.tar.bz2.md5sum ...
Fetching file portage-20170116.tar.gz.md5sum ...
20170116 snapshot was not found
Trying to retrieve 20170115 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170115.tar.xz.md5sum ...
Fetching file portage-20170115.tar.bz2.md5sum ...
Fetching file portage-20170115.tar.gz.md5sum ...
20170115 snapshot was not found
Trying to retrieve 20170114 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170114.tar.xz.md5sum ...
Fetching file portage-20170114.tar.bz2.md5sum ...
Fetching file portage-20170114.tar.gz.md5sum ...
20170114 snapshot was not found
Trying to retrieve 20170113 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170113.tar.xz.md5sum ...
Fetching file portage-20170113.tar.bz2.md5sum ...
Fetching file portage-20170113.tar.gz.md5sum ...
20170113 snapshot was not found
Trying to retrieve 20170112 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170112.tar.xz.md5sum ...
Fetching file portage-20170112.tar.bz2.md5sum ...
Fetching file portage-20170112.tar.gz.md5sum ...
20170112 snapshot was not found
Trying to retrieve 20170111 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170111.tar.xz.md5sum ...
Fetching file portage-20170111.tar.bz2.md5sum ...
Fetching file portage-20170111.tar.gz.md5sum ...
20170111 snapshot was not found
Trying to retrieve 20170110 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170110.tar.xz.md5sum ...
Fetching file portage-20170110.tar.bz2.md5sum ...
Fetching file portage-20170110.tar.gz.md5sum ...
20170110 snapshot was not found
Trying to retrieve 20170109 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170109.tar.xz.md5sum ...
Fetching file portage-20170109.tar.bz2.md5sum ...
Fetching file portage-20170109.tar.gz.md5sum ...
20170109 snapshot was not found
Trying to retrieve 20170108 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170108.tar.xz.md5sum ...
Fetching file portage-20170108.tar.bz2.md5sum ...
Fetching file portage-20170108.tar.gz.md5sum ...
20170108 snapshot was not found
Trying to retrieve 20170107 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170107.tar.xz.md5sum ...
Fetching file portage-20170107.tar.bz2.md5sum ...
Fetching file portage-20170107.tar.gz.md5sum ...
20170107 snapshot was not found
Trying to retrieve 20170106 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170106.tar.xz.md5sum ...
Fetching file portage-20170106.tar.bz2.md5sum ...
Fetching file portage-20170106.tar.gz.md5sum ...
20170106 snapshot was not found
Trying to retrieve 20170105 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170105.tar.xz.md5sum ...
Fetching file portage-20170105.tar.bz2.md5sum ...
Fetching file portage-20170105.tar.gz.md5sum ...
20170105 snapshot was not found
Trying to retrieve 20170104 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170104.tar.xz.md5sum ...
Fetching file portage-20170104.tar.bz2.md5sum ...
Fetching file portage-20170104.tar.gz.md5sum ...
20170104 snapshot was not found
Trying to retrieve 20170103 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170103.tar.xz.md5sum ...
Fetching file portage-20170103.tar.bz2.md5sum ...
Fetching file portage-20170103.tar.gz.md5sum ...
20170103 snapshot was not found
Trying to retrieve 20170102 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170102.tar.xz.md5sum ...
Fetching file portage-20170102.tar.bz2.md5sum ...
Fetching file portage-20170102.tar.gz.md5sum ...
20170102 snapshot was not found
Trying to retrieve 20170101 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20170101.tar.xz.md5sum ...
Fetching file portage-20170101.tar.bz2.md5sum ...
Fetching file portage-20170101.tar.gz.md5sum ...
20170101 snapshot was not found


For firewall reasons I need to do a webrsync.
I don't recall having this issue with the Gentoo Minmal Install ISO.
The portage files are accessible but the command fails. Maybe it's not constructing the right URL. Odd...

[EDIT] I'm running this within chroot, of course.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Fri Feb 10, 2017 11:46 pm    Post subject: Reply with quote

Please check this folder, and its contents

Code:
/etc/portage/repos.conf
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Sat Feb 11, 2017 5:23 am    Post subject: Reply with quote

Roman: what do you want Vieri to check there? What do you expect is incorrect?

Vieri: is an unprivileged user otherwise able to use the network in that environment? Is /etc/resolv.conf world readable and configured to use a nameserver that works? Is the network up, with a valid default route? Check with ls -l /etc/resolv.conf ; cat -n /etc/resolv.conf ; ifconfig -a ; route.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Feb 11, 2017 10:03 pm    Post subject: Reply with quote

Vieri wrote:
For firewall reasons I need to do a webrsync.
I don't recall having this issue with the Gentoo Minmal Install ISO.
The portage files are accessible but the command fails. Maybe it's not constructing the right URL. Odd...

[EDIT] I'm running this within chroot, of course.

I use webrsync too, for security reasons (the main tree is unsigned). Sometimes you just get a bad mirror in the rotation. Doing GENTOO_MIRRORS=foo emerge-webrsync instead of using the default should work.

Here's how to test the mirror manually:
Code:
curl -I $(portageq gentoo_mirrors | cut -f1 -d' ')/snapshots/portage-latest.tar.xz{,.md5sum,.gpgsig}
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 886

PostPosted: Sat Feb 11, 2017 10:10 pm    Post subject: Reply with quote

Xavier, booting SysRescCD from Legacy BIOS shows the syslinux boot menu which uses a module to autodetect if the machine can run 64 bit or not. However, booting from UEFI loads a GRUB menu and all its entries are for 64 bits (no detection).

OK, so it seems I can install a 64-bit system (chrooting to it) even if the live system has 32-bit binaries, as long as it boots a 64-bit kernel.

Hu, thanks, you're right. I didn't "cp -L" resolv.conf from live to jail root. That's because I'm used tp the Gentoo Minimal Install where /etc/resolv.conf is not a symlink. SysRescCD has a symlink for that file.
My bad... However, emerge-webrsync's output made me think there was a problem with the remote repository because of the message "snapshot was not found"...
It would have been clearer if it had said something like "cannot resolve" or "cannot connect".

Anyway, thanks!
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 886

PostPosted: Sat Feb 11, 2017 10:17 pm    Post subject: Reply with quote

Ant P. wrote:
Sometimes you just get a bad mirror in the rotation.


Thanks for the tip. I'll keep that in mind. In my case though, I had an issue with /etc/resolv.conf.
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