LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-21-2016, 12:49 PM   #31
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920

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
 
Old 09-21-2016, 12:50 PM   #32
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,799

Rep: Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333
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.
Old 09-21-2016, 03:30 PM   #33
BW-userx
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

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
Quote:
Originally Posted by michaelk View Post
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 ...
 
Old 09-21-2016, 03:58 PM   #34
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,799

Rep: Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333
Here is one way.

https://www.gnu.org/software/parted/...e/mklabel.html
 
Old 09-21-2016, 10:01 PM   #35
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
With newer fdisk: fdisk -t MBR /dev/sdX
 
Old 09-22-2016, 05:05 AM   #36
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
>>>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.
 
Old 09-22-2016, 07:13 AM   #37
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Quote:
Originally Posted by tofino_surfer View Post
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.
 
Old 09-22-2016, 07:44 AM   #38
BW-userx
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

Rep: Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243Reputation: 2243
Quote:
Originally Posted by tofino_surfer View Post
>>>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.
 
Old 09-22-2016, 12:11 PM   #39
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
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?
 
Old 09-22-2016, 01:07 PM   #40
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920
Quote:
Originally Posted by tofino_surfer View Post
>>>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 View Post
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.
 
Old 09-22-2016, 01:26 PM   #41
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-22-2016, 01:32 PM   #42
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920
Quote:
Originally Posted by MarianH View Post
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-pasta ?). 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.
 
Old 09-22-2016, 01:35 PM   #43
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Root does not need sudo.
 
Old 09-22-2016, 01:39 PM   #44
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920
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.
 
Old 09-22-2016, 01:47 PM   #45
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Changing USB stick mount folder (possibly name of the drive?) lpallard Linux - Hardware 6 09-19-2010 10:08 AM
Force External USB HDD to mount to certain folder predatorz Linux - Hardware 4 06-18-2008 11:26 AM
Insert/remove USB disk leaves a permanent folder carbide Linux - General 3 03-25-2008 03:42 AM
Can't mount usb flash disk? ak-87 Slackware 13 05-19-2007 05:42 AM
How to mount my USB mobile disk malek_baklouti Linux - Software 13 04-23-2004 09:43 AM

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

All times are GMT -5. The time now is 09:57 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