LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-03-2016, 05:00 PM   #46
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896

You would want to install it to the MBR of the boot disk i.e. /dev/sda
 
1 members found this post helpful.
Old 08-03-2016, 05:02 PM   #47
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
But I have no disk like /dev/sda. I have only /dev/sdc1, /dev/mapper/centos-home and so on.
 
Old 08-03-2016, 05:18 PM   #48
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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.

Last edited by michaelk; 08-03-2016 at 05:20 PM.
 
1 members found this post helpful.
Old 08-03-2016, 06:23 PM   #49
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Well - the error messages TELL you that xfs does not support BIOS boot.

That is why the original install put /boot on its own partition, with an ext4 filesystem.
 
Old 08-03-2016, 07:33 PM   #50
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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
 
Old 08-04-2016, 05:22 AM   #51
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by michaelk View Post
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.
 
Old 08-04-2016, 05:57 AM   #52
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
My default CentOS 7 min installation...
Code:
/dev/sda1: UUID="a3970912-c691-4f81-8644-6986cffc44bd" TYPE="xfs" 
/dev/sda2: UUID="mTGjRo-1kLp-5euU-hkdd-Uw97-PHvH-G8yQAj" TYPE="LVM2_member" 
/dev/sdb1: UUID="b3nOwe-u60O-RWON-uyl1-V394-C4if-Lfa0Ax" TYPE="LVM2_member" 
/dev/mapper/centos-root: UUID="ddaccaa8-bd73-434f-814b-c7680a37dd9c" TYPE="xfs" 
/dev/mapper/centos-swap: UUID="da052531-384a-4226-88e1-9f84f7edf9f2" TYPE="swap"

NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0   12G  0 disk 
├─sda1            8:1    0  500M  0 part /boot
└─sda2            8:2    0 11.5G  0 part 
  ├─centos-root 253:0    0 10.3G  0 lvm  /
  └─centos-swap 253:1    0  1.2G  0 lvm  [SWAP]
 
Old 08-04-2016, 06:11 AM   #53
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
It's Grub that can't currently handle xfs. It's not the only choice of bootloader though.

There's a patch to resolve this (https://lists.gnu.org/archive/html/g.../msg00037.html).

Grub 2.02.beta3 should also have xfs v5 filesystem support.

https://bugs.archlinux.org/task/46856
 
1 members found this post helpful.
Old 08-06-2016, 07:16 PM   #54
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
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
Attached Thumbnails
Click image for larger version

Name:	13940090_10209678586546089_1128702739_o.jpg
Views:	21
Size:	104.4 KB
ID:	22672   Click image for larger version

Name:	13977828_10209678527064602_123830792_o.jpg
Views:	10
Size:	123.6 KB
ID:	22673  
 
Old 08-07-2016, 05:15 PM   #55
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
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
Thank you for helping me all the way.

Best Regards
Zillur
 
Old 08-07-2016, 08:12 PM   #56
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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?
 
Old 08-07-2016, 10:01 PM   #57
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
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.
Can I retrieve data from my previous system? There are few users and too many data. http://www.linuxquestions.org/questi...4&d=1452575857

Thank you very much again.
Best Regards
Zillur
 
Old 08-07-2016, 10:41 PM   #58
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Hostname configuration file is /etc/sysconfig/network.

Without knowing any information about your network or ISP can not say but if it is dhcp then no.

Post the output of vgdisplay
 
1 members found this post helpful.
Old 08-07-2016, 10:49 PM   #59
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you very much.
Quote:
[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
 
Old 08-07-2016, 10:53 PM   #60
zillur
Member
 
Registered: Apr 2015
Posts: 217

Original Poster
Rep: Reputation: Disabled
Thank you. It looks like I have nothing in /ect/sysconfig/network
Code:
[root@localhost sysconfig]# pwd
/etc/sysconfig
[root@localhost sysconfig]# more network
# Created by anaconda
 
  


Reply



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
Failing to boot up due to failing to acces the GRUB spenot09 Linux - Software 7 10-19-2015 10:56 AM
Jessie boot cd failing to boot on a Poweredge R905 Jasambo Debian 5 06-15-2015 04:38 PM
Boot Problem in Grub (Chainloader failing? /boot messed up?) gjemmott Linux - Desktop 2 03-15-2010 10:26 AM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:28 PM.

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