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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
09-21-2016, 12:49 PM
|
#31
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
i am not convinced this is an ntfs formatted partition. what does:
Code:
sudo parted -l /dev/sdb
yield ?
Last edited by schneidz; 09-21-2016 at 12:52 PM.
Reason: corrected per michaelk below
|
|
|
09-21-2016, 12:50 PM
|
#32
|
Moderator
Registered: Aug 2002
Posts: 26,799
|
I believe it is. Anyway CentOS 6 fdisk does not support GPT partitions, use parted i.e.
parted -l /dev/sdb
Last edited by michaelk; 09-21-2016 at 12:52 PM.
|
|
1 members found this post helpful.
|
09-21-2016, 03:30 PM
|
#33
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by michaelk
I believe it is. Anyway CentOS 6 fdisk does not support GPT partitions, use parted i.e.
parted -l /dev/sdb
|
so how would one change a GPT to MBR then please share ... 
|
|
|
09-21-2016, 03:58 PM
|
#34
|
Moderator
Registered: Aug 2002
Posts: 26,799
|
|
|
|
09-21-2016, 10:01 PM
|
#35
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
With newer fdisk: fdisk -t MBR /dev/sdX
|
|
|
09-22-2016, 05:05 AM
|
#36
|
Member
Registered: Aug 2007
Posts: 483
Rep: 
|
>>>so how would one change a GPT to MBR then please share
You don't change any formatting ! If your disk is GPT you simply use gdisk ( GPT fdisk family ) or parted. If you are using the wrong tools for your disk formatting you don't change the formatting, you just use the right GPT aware tools !
I am absolutely shocked at these comments from "senior" members, both this and the lvm time-wasting advice. The OP's centos 6 system was running on lvm. This had nothing to do with the usb drive. The level of understanding is worse than the OP.
>>>Anyway CentOS 6 fdisk does not support GPT partitions, use parted i.e.
fdisk on any distribution does not support GPT which is why gdisk ( GPT fdisk family ) was created.
|
|
|
09-22-2016, 07:13 AM
|
#37
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Quote:
Originally Posted by tofino_surfer
fdisk on any distribution does not support GPT which is why gdisk ( GPT fdisk family ) was created.
|
It does here, for at least a year, probably more.
|
|
|
09-22-2016, 07:44 AM
|
#38
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by tofino_surfer
>>>so how would one change a GPT to MBR then please share
You don't change any formatting ! If your disk is GPT you simply use gdisk ( GPT fdisk family ) or parted. If you are using the wrong tools for your disk formatting you don't change the formatting, you just use the right GPT aware tools !
I am absolutely shocked at these comments from "senior" members, both this and the lvm time-wasting advice. The OP's centos 6 system was running on lvm. This had nothing to do with the usb drive. The level of understanding is worse than the OP.
>>>Anyway CentOS 6 fdisk does not support GPT partitions, use parted i.e.
fdisk on any distribution does not support GPT which is why gdisk ( GPT fdisk family ) was created.
|
oh really now, so what is wrong with changing the formatting? if it does not hurt the drive? cuts down on having to have every kind of tool to deal with everything man comes up with on how to do the same thing. them ones are the ones causing this problem.
I'm going to go eat an apple now.
|
|
|
09-22-2016, 12:11 PM
|
#39
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep: 
|
Quote:
Originally Posted by michaelk
I believe it is. Anyway CentOS 6 fdisk does not support GPT partitions, use parted i.e.
parted -l /dev/sdb
|
I've run chkdsk ... didn't work. It was saying something that the partition table is unable to read/fix/damaged or so ... don't recall that exactly.
Now I did the above and it says:
[root@server ~]# parted -l /dev/sdb
Model: ATA ST2000LM007-1R81 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 538MB 537MB primary ext3 boot
2 538MB 2000GB 2000GB primary lvm
Model: Seagate Expansion Desk (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 32.3kB 2000GB 2000GB ntfs
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/VolGroup-lv_root: 1996GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 1996GB 1996GB ext4
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/VolGroup-lv_swap: 4027MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 4027MB 4027MB linux-swap(v1)
What does that mean? Is it good/bad?
|
|
|
09-22-2016, 01:07 PM
|
#40
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by tofino_surfer
>>>so how would one change a GPT to MBR then please share
You don't change any formatting ! If your disk is GPT you simply use gdisk ( GPT fdisk family ) or parted. If you are using the wrong tools for your disk formatting you don't change the formatting, you just use the right GPT aware tools !
I am absolutely shocked at these comments from "senior" members, both this and the lvm time-wasting advice. The OP's centos 6 system was running on lvm. This had nothing to do with the usb drive. The level of understanding is worse than the OP.
>>>Anyway CentOS 6 fdisk does not support GPT partitions, use parted i.e.
fdisk on any distribution does not support GPT which is why gdisk ( GPT fdisk family ) was created.
|
i agree. the diagnosing has been terrible causing people to suggest things that seem to be unrelated.
Quote:
Originally Posted by MarianH
I've run chkdsk ... didn't work. It was saying something that the partition table is unable to read/fix/damaged or so ... don't recall that exactly.
Now I did the above and it says:
[root@server ~]# parted -l /dev/sdb
Code:
...
Model: Seagate Expansion Desk (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 32.3kB 2000GB 2000GB ntfs
...
|
this seems to be most pertinent and the presumptions were correct (it is an ntfs formatted partition on a gpt partitioned disk).
use code tags next time so the output would be easier to read.
starting from square-1, what does:
Code:
mkdir usb-disk; sudo mount /dev/sdb1 usb-disk
print out ?
maybe try running this in case the necessary packages arent installed:
Code:
yum install ntfs-3g ntfsprogs
does anyone know of any restriction of trying to mount a gpt disk on a system booted from an mbr disk ?
Last edited by schneidz; 09-22-2016 at 01:30 PM.
|
|
|
09-22-2016, 01:26 PM
|
#41
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep: 
|
Not sure if I understood it well, but I've wrote all those and seems something is missing
Code:
[root@server ~]# mkdir usb-disk
[root@server ~]# sudo mount /dev/sdb1 usb-disk
mount: you must specify the filesystem type
[root@server ~]# yum istall ntfs-3g ntfsprogs
Loaded plugins: changelog, fastestmirror, nethserver_events, presto, refresh-
: packagekit
No such command: istall. Please use /usr/bin/yum --help
|
|
|
09-22-2016, 01:32 PM
|
#42
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by MarianH
Not sure if I understood it well, but I've wrote all those and seems something is missing
Code:
[root@server ~]# mkdir usb-disk
[root@server ~]# sudo mount /dev/sdb1 usb-disk
mount: you must specify the filesystem type
[root@server ~]# yum istall ntfs-3g ntfsprogs
Loaded plugins: changelog, fastestmirror, nethserver_events, presto, refresh-
: packagekit
No such command: istall. Please use /usr/bin/yum --help
|
^you made a typo (are you able to copy-and-past a ?). should be:
Code:
sudo yum install ntfs-3g ntfsprogs
maybe try also:
Code:
sudo mount -t ntfs /dev/sdb1 usb-disk
Last edited by schneidz; 09-22-2016 at 01:47 PM.
|
|
|
09-22-2016, 01:35 PM
|
#43
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Root does not need sudo.
|
|
|
09-22-2016, 01:39 PM
|
#44
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
i doubt it but maybe your kernel was compiled without efi support. run this to confirm:
Code:
[schneidz@hyper ~]$ grep EFI `ls -1 /boot/config-* | tail -n 1`
CONFIG_MODULE_SIG_UEFI=y
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_EFI_MIXED=y
CONFIG_EFI_SECURE_BOOT_SIG_ENFORCE=y
CONFIG_FB_EFI=y
CONFIG_XEN_EFI=y
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# EFI (Extensible Firmware Interface) Support
# CONFIG_EFI_VARS is not set
CONFIG_EFI_ESRT=y
CONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not set
CONFIG_EFI_RUNTIME_WRAPPERS=y
# CONFIG_EFI_CAPSULE_LOADER is not set
CONFIG_UEFI_CPER=y
CONFIG_CACHEFILES=m
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
CONFIG_EFIVAR_FS=y
CONFIG_EARLY_PRINTK_EFI=y
# CONFIG_EFI_PGT_DUMP is not set
CONFIG_EFI_SIGNATURE_LIST_PARSER=y
also, maybe you need to enable something like rpmfusion in order to install ntfs:
Code:
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm'
Last edited by schneidz; 09-22-2016 at 01:45 PM.
|
|
|
09-22-2016, 01:47 PM
|
#45
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep: 
|
Quote:
Originally Posted by schneidz
i doubt it but maybe your kernel was compiled without efi support. run this to confirm:
Code:
[schneidz@hyper ~]$ grep EFI `ls -1 /boot/config-* | tail -n 1`
CONFIG_MODULE_SIG_UEFI=y
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_EFI_MIXED=y
CONFIG_EFI_SECURE_BOOT_SIG_ENFORCE=y
CONFIG_FB_EFI=y
CONFIG_XEN_EFI=y
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# EFI (Extensible Firmware Interface) Support
# CONFIG_EFI_VARS is not set
CONFIG_EFI_ESRT=y
CONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not set
CONFIG_EFI_RUNTIME_WRAPPERS=y
# CONFIG_EFI_CAPSULE_LOADER is not set
CONFIG_UEFI_CPER=y
CONFIG_CACHEFILES=m
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
CONFIG_EFIVAR_FS=y
CONFIG_EARLY_PRINTK_EFI=y
# CONFIG_EFI_PGT_DUMP is not set
CONFIG_EFI_SIGNATURE_LIST_PARSER=y
also, maybe you need to enable something like rpmfusion in order to install ntfs:
Code:
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm'
|
Code:
[root@server ~]# grep EFI 'ls -l /boot/config-* | tail -n 1'
grep: ls -l /boot/config-* | tail -n 1: No such file or directory
You have new mail in /var/spool/mail/root
|
|
|
All times are GMT -5. The time now is 09:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|