Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
According to post #28 there are at least three disks i.e. /dev/sda, /dev/sdb and /dev/sdc. /dev/sda represents the entire disk whereas /dev/sda1 represents the 1st partition. The boot loader in your case is installed to the MBR which is the disk not the partition.
/dev/mapper/centos-home is a logical volume which is different then a physical partition.
Actually RH/CentOS 7 defaults to xfs. The original install puts /boot in its own partition due to LVM. Although xfs does have its drawbacks i.e if you ever want to shrink a logical volume or install the boot loader to something other then MBR/UEFI
Actually RH/CentOS 7 defaults to xfs. The original install puts /boot in its own partition due to LVM. Although xfs does have its drawbacks i.e if you ever want to shrink a logical volume or install the boot loader to something other then MBR/UEFI
/boot still defaults to ext4. The ROOT filesystem is xfs, which can't be use to boot from. I understand this is because xfs is NOT a native Linux filesystem. It comes from IRIX, and was designed for IRIX - which doesn't need the reserved blocks that the BIOS boot requires.
Even in UFI, it cannot use xfs for /boot - it is required to be a FAT filesystem; so again, you cannot use xfs for /boot.
Thank you very much for your help. I don't know what terrible things I am doing to resolve this. However, I am now at localhost. But I don't have net connection here.
Code:
ping google.com
ping: unknown host
Code:
ping 127.0.0.1
packets are transmitting
Code:
service network status
Configured devices: lo enp5s0 enp6s0
Currently active devices: lo enp5s0 enp6s0
Code:
ifup lo
Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Code:
ifup enp5s0 or ifup enp6s0
Error: Connection activation failed: No suitable device found for this connection
Can not edit manually any scripts. i.e. ifcfg-lo, ifcfg-enp5s0 or ifcfg-enp6s0. More details are attached.
Any help?
Best Regards
Zillur
Hi there,
Thank you very much for your help all the way. Good news!!! I successfully installed the OS, connected to the internet and updated. I still have some problem. I can't mount my 16TB disk. I tried by the following way:
Code:
fdisk -l
Disk /dev/sda: 16000.9 GB, 16000900661248 bytes, 31251759104 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 120.0 GB, 120034123776 bytes, 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00025ee1
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 1026047 512000 83 Linux
/dev/sdb2 1026048 234440703 116707328 8e Linux LVM
Disk /dev/mapper/centos-root: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-swap: 4294 MB, 4294967296 bytes, 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-home: 61.5 GB, 61459136512 bytes, 120037376 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@localhost zillur]# pvdisplay
--- Physical volume ---
PV Name /dev/sdb2
VG Name centos
PV Size 111.30 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 28492
Free PE 15
Allocated PE 28477
PV UUID XckdBU-mmPU-ExEy-1btB-BmLz-z1hB-WpF8G2
"/dev/sda3" is a new physical volume of "14.55 TiB"
--- NEW Physical volume ---
PV Name /dev/sda3
VG Name
PV Size 14.55 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID T1UlID-qOHi-R7Xj-lNGb-XTHK-QFwK-2q8zPy
[root@localhost zillur]# mount /dev/sda3 /
mount: unknown filesystem type 'LVM2_member'
[root@localhost zillur]# mount /dev/sda3 /home
mount: unknown filesystem type 'LVM2_member
[root@localhost zillur]# lvmdiskscan
/dev/centos/root [ 50.00 GiB]
/dev/centos/swap [ 4.00 GiB]
/dev/sda2 [ 500.00 MiB]
/dev/centos/home [ 57.24 GiB]
/dev/sda3 [ 14.55 TiB] LVM physical volume
/dev/sdb1 [ 500.00 MiB]
/dev/sdb2 [ 111.30 GiB] LVM physical volume
3 disks
2 partitions
0 LVM physical volume whole disks
2 LVM physical volumes
Previous name of my machine was user@warkstation01. But now it is user@localhost. Any idea why did it happen? How can I revert to original?
My internet connection is fine. It seems my ip address is changed. My previous ip was 136.145.231.48 but it is changed to 136.145.231.38. How did it happen? How can I revert to original.
Code:
[root@localhost zillur]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 38:2c:4a:c5:8f:0c brd ff:ff:ff:ff:ff:ff
inet 136.145.231.38/24 brd 136.145.231.255 scope global dynamic enp5s0
valid_lft 602206sec preferred_lft 602206sec
inet6 2607:2000:100:116:3a2c:4aff:fec5:8f0c/64 scope global noprefixroute dynamic
valid_lft 2591861sec preferred_lft 604661sec
inet6 fe80::3a2c:4aff:fec5:8f0c/64 scope link
valid_lft forever preferred_lft forever
3: enp6s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
link/ether 38:2c:4a:c5:8f:0d brd ff:ff:ff:ff:ff:ff
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 52:54:00:1d:fb:5e brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
link/ether 52:54:00:1d:fb:5e brd ff:ff:ff:ff:ff:ff
[root@localhost zillur]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 136.145.231.1 0.0.0.0 UG 100 0 0 enp5s0
136.145.180.253 136.145.231.1 255.255.255.255 UGH 100 0 0 enp5s0
136.145.231.0 0.0.0.0 255.255.255.0 U 100 0 0 enp5s0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
The hostname defaults to localhost. It can be changed. If your ISP assigns you an ip address using dhcp it will change.
You created a physical volume /dev/sda3 but it did display in your fdisk output. Nothing to mount yet. Do you want to add it to an existing logical volume?
Thank you very much for your kind reply. Is it possible to retrieve previous ip and hostname?
Yeah. I want to mount my 16TB disk in /home.
Code:
[root@localhost ssh]# mount /dev/sda3 /
mount: unknown filesystem type 'LVM2_member'
[root@localhost ssh]# mount /dev/sda1 /
mount: /dev/sda1 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
[root@localhost ssh]# vgdisplay
--- Volume group ---
VG Name centos
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 111.30 GiB
PE Size 4.00 MiB
Total PE 28492
Alloc PE / Size 28477 / 111.24 GiB
Free PE / Size 15 / 60.00 MiB
VG UUID ybqHGe-BUO3-NmWv-DMAw-gqDM-mX1j-vG6vrK
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.