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-22-2016, 01:50 PM   #46
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
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
^ again, several typos. are you not able to copy-pasta ?
 
Old 09-22-2016, 01:55 PM   #47
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
^ again, several typos. are you not able to copy-pasta ?
ah ... sorry, just found how to do that. Still learning.

Code:
[root@server ~]# grep EFI `ls -1 /boot/config-* | tail -n 1`
CONFIG_EFI=y
CONFIG_FB_EFI=y
CONFIG_UEFI_CPER=y
CONFIG_EFI_VARS=y
CONFIG_CACHEFILES=m
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
CONFIG_EFI_PARTITION=y
CONFIG_EARLY_PRINTK_EFI=y
 
Old 09-22-2016, 01:59 PM   #48
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
maybe enabling rpmfusion repo then install the ntfs libs would work ?:
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'
sudo yum install ntfs-3g ntfsprogs
 
Old 09-22-2016, 02:02 PM   #49
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
maybe enabling rpmfusion repo then install the ntfs libs would work ?:
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'
sudo yum install ntfs-3g ntfsprogs
I tried, but based on this I don't know if it was installed or there is the error

Code:
[root@server ~]# 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'
Loaded plugins: changelog, fastestmirror, nethserver_events, presto, refresh-
              : packagekit
Setting up Local Package Process
rpmfusion-free-release-6-1.noarch.rpm                    | 5.9 kB     00:00
Examining /var/tmp/yum-root-1ddInA/rpmfusion-free-release-6-1.noarch.rpm: rpmfusion-free-release-6-1.noarch
Marking /var/tmp/yum-root-1ddInA/rpmfusion-free-release-6-1.noarch.rpm to be installed
Loading mirror speeds from cached hostfile
 * centos-base: ftp.cvut.cz
 * centos-updates: mirror.met.hu
 * elrepo: mirrors.leadhosts.com
 * nethforge: mirror.framassa.org
 * nethserver-base: mirror.framassa.org
 * nethserver-updates: mirror.framassa.org
rpmfusion-nonfree-release-6-1.noarch.rpm                 | 6.0 kB     00:00
Examining /var/tmp/yum-root-1ddInA/rpmfusion-nonfree-release-6-1.noarch.rpm: rpmfusion-nonfree-release-6-1.noarch
Marking /var/tmp/yum-root-1ddInA/rpmfusion-nonfree-release-6-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rpmfusion-free-release.noarch 0:6-1 will be installed
--> Processing Dependency: epel-release >= 6 for package: rpmfusion-free-release-6-1.noarch
---> Package rpmfusion-nonfree-release.noarch 0:6-1 will be installed
--> Processing Dependency: epel-release >= 6 for package: rpmfusion-nonfree-release-6-1.noarch
--> Finished Dependency Resolution
Error: Package: rpmfusion-nonfree-release-6-1.noarch (/rpmfusion-nonfree-release-6-1.noarch)
           Requires: epel-release >= 6
Error: Package: rpmfusion-free-release-6-1.noarch (/rpmfusion-free-release-6-1.noarch)
           Requires: epel-release >= 6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
 
Old 09-22-2016, 02:06 PM   #50
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
^ seems like it errored. i thought you are running centos-6 ? what does this yield:
Code:
uname -a -m -p

Last edited by schneidz; 09-22-2016 at 02:09 PM.
 
Old 09-22-2016, 02:14 PM   #51
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
^ seems like it errored. i thought you are running centos-6 ? what does this yield:
Code:
uname -a -m -p
Yes, as far as I know

Code:
[root@server ~]# uname -a -m -p
Linux server.home.sk 2.6.32-642.4.2.el6.x86_64 #1 SMP Tue Aug 23 19:58:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
 
Old 09-22-2016, 02:19 PM   #52
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,638

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
ntfs-3g is in the epel repository and was installed back in post #24.

The fact that chkdsk failed in windows although we do not know what version would indicate that we need to go in another direction. As far as I know anything except windows XP/2003 32 bit can read/write a GPT partition I believe so can you confirm what version you tried plugging the disk into.

CentOS 6 as far as I know can read/write a GPT partition but if the drive is corrupted it does not matter at the moment how the kernel is configured.
 
Old 09-22-2016, 02:20 PM   #53
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
Yes, as far as I know

Code:
[root@server ~]# uname -a -m -p
Linux server.home.sk 2.6.32-642.4.2.el6.x86_64 #1 SMP Tue Aug 23 19:58:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
it seems to indicate you are running enterprise-linux-6 which is functionally equivalent to centos-6. not sure why the rpmfusion repo installed failed on that check.

do either of these commands work regardless
Code:
sudo yum install ntfs-3g 
sudo yum install ntfsprogs
 
Old 09-22-2016, 02:26 PM   #54
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
it seems to indicate you are running enterprise-linux-6 which is functionally equivalent to centos-6. not sure why the rpmfusion repo installed failed on that check.

do either of these commands work regardless
Code:
sudo yum install ntfs-3g 
sudo yum install ntfsprogs
I've had the ntfs-3g installed and now it seems I was successful with the ntfsprogs as well.
And now I have this

Code:
[root@server ~]# mount -t ntfs /dev/sdb1 usb-disk
ntfs_mst_post_read_fixup_warn: magic: 0x44414142  size: 1024   usa_ofs: 60017  usa_count: 1848: Invalid argument
Record 0 has no FILE magic (0x44414142)
Failed to load $MFT: Input/output error
Failed to mount '/dev/sdb1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

Last edited by MarianH; 09-22-2016 at 02:30 PM.
 
Old 09-22-2016, 02:29 PM   #55
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,638

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
What version of Windows did you try running chkdsk?
 
Old 09-22-2016, 02:32 PM   #56
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
What version of Windows did you try running chkdsk?
It is Win10
 
Old 09-22-2016, 03:14 PM   #57
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,638

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
I am out of ideas. It looks like you are going to have to use a recovery tool like testdisk if you want to try saving data from the drive.
 
1 members found this post helpful.
Old 09-22-2016, 03:41 PM   #58
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
I am out of ideas. It looks like you are going to have to use a recovery tool like testdisk if you want to try saving data from the drive.
Actually I tried that yesterday after chkdsk said it cannot repair the table. But it was running whole night&day and nothing was moving or changing there. It looked like it got stuck. I've only selected 'analyse' and left it running.
I've googled somewhere someone recommending recuva. Have this as the last possibility, but I am not sure if I can save some data if the partition table is not correct :-/
 
Old 09-22-2016, 03:50 PM   #59
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,638

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
Data recovery tools do not need a partition table to find files. However, since the filenames are in the filesystems metadata they are in most cases lost.
 
Old 09-22-2016, 05:14 PM   #60
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
does anyone know of any restriction of trying to mount a gpt disk on a system booted from an mbr disk ?

Absolutely none. On Linux UEFI boot and GPT formatting are completely separate. You can use GPT formatting with any kind of boot firmware. With GPT the grub2 second stage core.img is placed in a 1 MiB BIOS Boot partition as are any PBRs for multi-boot systems. The protective MBR on GPT disks points to these BIOS Boot partitions for the second stage. GPT formatted disks therefore still have a (protective) MBR which is used for BIOS-MBR boots. Therefore to answer your question above a GPT formatted disk can be an MBR disk as well.

There is a Wikipedia page that has diagrams. https://en.wikipedia.org/wiki/BIOS_boot_partition

I use GPT formatting on my two SSDs and two 3TB WD spinning disks in a mdadm raid1 with lvm on top. I have a Gigabyte BIOS firmware MB. All my OS installs (Centos 7, Fedora 24 on new SSD, Fedora 16 on old SSD 4yrs ago) are therefore BIOS-MBR and I use GPT formatting everywhere.

With the 3TB WD Black drives I had to use GPT as antiquated MBR with its 32 bit addressing only supports 2GiB (2.2GB). I partitioned these manually with GParted. For the 3 OS installations on SSD the installers now default to GPT as they should.

On my new SSD I have two BIOS Boot partitions, one for Centos 7 and one for Fedora 24.

$ sudo gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.6

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 488397168 sectors, 232.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 57F23261-A25A-49FC-8CAB-599CBCE36AB5
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 488397134
Partitions will be aligned on 2048-sector boundaries
Total free space is 263055661 sectors (125.4 GiB)

Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 BIOS_Boot-Main
2 52408320 53432319 500.0 MiB EF00
3 104861696 188747775 40.0 GiB 8300
4 188747776 209719295 10.0 GiB 8300
5 1026048 52406271 24.5 GiB 8300
6 209719296 225343487 7.5 GiB 8200 swap
7 4096 1026047 499.0 MiB EF00
8 52406272 52408319 1024.0 KiB EF02 BIOS_Boot-Fedora_24
9 53432320 104861695 24.5 GiB 8300


There is no reason to use antiquated MBR partitioning anymore on Linux.
 
  


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 06:46 AM.

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