LinuxQuestions.org
Help answer threads with 0 replies.
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, 09:53 AM   #16
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875

blkid --- to check what the partition specs are.

$ sudo blkid

It looks like you have an lvm2 partiton (fedora/redhat) in play. So there's special stuff for that.

$ sudo pacman -S lvm2
(or $ sudo apt-get install lvm2)

$ sudo lvscan
Code:
  ACTIVE            '/dev/fedora/swap' [2.97 GiB] inherit
  ACTIVE            '/dev/fedora/root' [26.06 GiB] inherit
In the case of my fedora install on an SDHC card. And you mount that partition, not the /dev/ device.

$ sudo mount /dev/fedora/root /mnt/fedora

Which is on my /dev/sda2 partition according to $(cat /proc/partitions). To double mount it elsewhere.

$ sudo mount --rbind /mnt/fedora /home/user/fedora

Or something like that. YMMV.
 
Old 09-21-2016, 10:08 AM   #17
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
While Ubuntu installs NTFS support by default Redhat/CentOS does not. To install ntfs-3g in CentOS you need to enable the epel repository.

If the drive was not unmounted/ejected properly from Ubuntu then the filesystem might be corrupted. While ntfsfix can repair simple errors this might require chkdsk which requires a real windows computer.

Once you get this problem resolved you might want to switch to a linux filesystem if you never need to connect it to a Windows computer. This will require you to backup all the data somewhere since reformatting will essentially "erase" existing files.
installing ntfs-3g doesn't work ... seems

[root@server ~]# yum install ntfs-3g
Loaded plugins: changelog, fastestmirror, nethserver_events, presto, refresh-
: packagekit
Setting up Install Process
Loading mirror speeds from cached hostfile
* centos-base: ftp.cvut.cz
* centos-updates: ftp.cvut.cz
* elrepo: dfw.mirror.rackspace.com
* nethforge: mirror.framassa.org
* nethserver-base: mirror.framassa.org
* nethserver-updates: mirror.framassa.org
centos-base | 3.7 kB 00:00
centos-updates | 3.4 kB 00:00
centos-updates/primary_db | 2.0 MB 00:00
elrepo | 2.9 kB 00:00
nethforge | 3.6 kB 00:00
nethserver-base | 3.7 kB 00:00
nethserver-updates | 4.1 kB 00:00
nethserver-updates/primary_db | 60 kB 00:00
No package ntfs-3g available.
Error: Nothing to do
 
Old 09-21-2016, 10:11 AM   #18
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
blkid --- to check what the partition specs are.

$ sudo blkid

It looks like you have an lvm2 partiton (fedora/redhat) in play. So there's special stuff for that.

$ sudo pacman -S lvm2
(or $ sudo apt-get install lvm2)

$ sudo lvscan
Code:
  ACTIVE            '/dev/fedora/swap' [2.97 GiB] inherit
  ACTIVE            '/dev/fedora/root' [26.06 GiB] inherit
In the case of my fedora install on an SDHC card. And you mount that partition, not the /dev/ device.

$ sudo mount /dev/fedora/root /mnt/fedora

Which is on my /dev/sda2 partition according to $(cat /proc/partitions). To double mount it elsewhere.

$ sudo mount --rbind /mnt/fedora /home/user/fedora

Or something like that. YMMV.
Sorry, don't get it. What should I do? Trying the above, it shows
[root@server ~]# pacman -S lvm2
-bash: pacman: command not found
[root@server ~]# apt-get install lvm2
-bash: apt-get: command not found
[root@server ~]# sudo apt-get install lvm2
sudo: apt-get: command not found
[root@server ~]# sudo lvscan
ACTIVE '/dev/VolGroup/lv_swap' [3.75 GiB] inherit
ACTIVE '/dev/VolGroup/lv_root' [1.82 TiB] inherit
 
Old 09-21-2016, 10:18 AM   #19
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 MarianH View Post
installing ntfs-3g doesn't work ... seems

[root@server ~]# yum install ntfs-3g
Loaded plugins: changelog, fastestmirror, nethserver_events, presto, refresh-
: packagekit
Setting up Install Process
Loading mirror speeds from cached hostfile
* centos-base: ftp.cvut.cz
* centos-updates: ftp.cvut.cz
* elrepo: dfw.mirror.rackspace.com
* nethforge: mirror.framassa.org
* nethserver-base: mirror.framassa.org
* nethserver-updates: mirror.framassa.org
centos-base | 3.7 kB 00:00
centos-updates | 3.4 kB 00:00
centos-updates/primary_db | 2.0 MB 00:00
elrepo | 2.9 kB 00:00
nethforge | 3.6 kB 00:00
nethserver-base | 3.7 kB 00:00
nethserver-updates | 4.1 kB 00:00
nethserver-updates/primary_db | 60 kB 00:00
No package ntfs-3g available.
Error: Nothing to do

query your repo for said item maybe written as a different name but same app. or you can install via source code which is a crazy fun thing to do!!!

But with most distros this is in repo or installed when installing system. because it is a well needed app, so that is crazy mad thin that you are getting "no package ntfs-3g" .. try query your repo using ntfs* to see what you get. then figure it out?

Last edited by BW-userx; 09-21-2016 at 10:19 AM.
 
Old 09-21-2016, 10:21 AM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,452

Rep: Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214
You need to enable the epel repository. http://fedoraproject.org/wiki/EPEL

yum install epel-release

I would install ntfs-3g and then disable the repository.
 
Old 09-21-2016, 10:21 AM   #21
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 MarianH View Post
Sorry, don't get it. What should I do? Trying the above, it shows
[root@server ~]# pacman -S lvm2
-bash: pacman: command not found
[root@server ~]# apt-get install lvm2
-bash: apt-get: command not found
[root@server ~]# sudo apt-get install lvm2
sudo: apt-get: command not found
[root@server ~]# sudo lvscan
ACTIVE '/dev/VolGroup/lv_swap' [3.75 GiB] inherit
ACTIVE '/dev/VolGroup/lv_root' [1.82 TiB] inherit
apt-get, yum, and pacman ??

these are seperate command calls for installing thing used by different/seperate Linux/GNU distos. Which you really need to know your system so you know which one to use. then just change the comamnds to match the needed results. this is a #1 thing to know when using Linux/GNU. My system uses the xbps command . so you see everyone is different in this respect. but for mounting it is not.

here is instructions on using apt-get and apt-cache

Pacman instructions

YUM instructions

Last edited by BW-userx; 09-21-2016 at 10:30 AM.
 
Old 09-21-2016, 11:12 AM   #22
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
You need to enable the epel repository. http://fedoraproject.org/wiki/EPEL

yum install epel-release

I would install ntfs-3g and then disable the repository.
Seems something is not working and I think this should be downloaded.

[root@server ~]# yum install epel-release
Loaded plugins: changelog, fastestmirror, nethserver_events, presto, refresh-
: packagekit
Setting up Install Process
Loading mirror speeds from cached hostfile
* centos-base: ftp.cvut.cz
* centos-updates: ftp.cvut.cz
* elrepo: dfw.mirror.rackspace.com
* nethforge: mirror.framassa.org
* nethserver-base: mirror.framassa.org
* nethserver-updates: mirror.framassa.org
No package epel-release available.
 
Old 09-21-2016, 11:23 AM   #23
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,452

Rep: Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214
My fault, it does not work since you do not have the extras repositories enabled.

http://www.tecmint.com/how-to-enable...el-centos-6-5/
 
Old 09-21-2016, 11:33 AM   #24
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
My fault, it does not work since you do not have the extras repositories enabled.

http://www.tecmint.com/how-to-enable...el-centos-6-5/
Wonderful, worked like a charm. Thank you!
So now I have the ntfs-3g installed. How could I proceed further please?
 
Old 09-21-2016, 11:40 AM   #25
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 MarianH View Post
Wonderful, worked like a charm. Thank you!
So now I have the ntfs-3g installed. How could I proceed further please?
if you go over the past post you'll see that too has been covered. slow down take a breath, sip something liquid, then procceed ...
 
Old 09-21-2016, 12:23 PM   #26
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
So went through the posts and it seems that I have to connect it to the Win computer and do the chkdisk as this is what I have:

[root@server /]# ntfs-3g /dev/sdb1 /share
ntfs_mst_post_read_fixup_warn: magic: 0xdc3006b3 size: 1024 usa_ofs: 60017 usa_count: 1848: Invalid argument
Record 0 has no FILE magic (0xdc3006b3)
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.
 
Old 09-21-2016, 12:43 PM   #27
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
Quote:
Originally Posted by MarianH View Post
[root@server ~]# sudo lvscan
ACTIVE '/dev/VolGroup/lv_swap' [3.75 GiB] inherit
ACTIVE '/dev/VolGroup/lv_root' [1.82 TiB] inherit
# mount /dev/VolGroup/lv_root /mnt/root

# dnf install lvm2
(or whatever the older Yum equivalent is. But you already have it installed.)

Not really what you need for NTFS filesystems. But one of those less than obvious things if you haven't been around a while. The ntfs3g and fuse stuff is what you need for ntfs.

http://www.tuxera.com/community/open-source-ntfs-3g/
 
Old 09-21-2016, 12:58 PM   #28
MarianH
LQ Newbie
 
Registered: Sep 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
# mount /dev/VolGroup/lv_root /mnt/root

# dnf install lvm2
(or whatever the older Yum equivalent is. But you already have it installed.)

Not really what you need for NTFS filesystems. But one of those less than obvious things if you haven't been around a while. The ntfs3g and fuse stuff is what you need for ntfs.

http://www.tuxera.com/community/open-source-ntfs-3g/
sorry I don't get it ... I've did the mount of lv_root, but the only thing it does is that it mounts the same part of the internal drive to the folder root in the folder mnt. So it doesn't belong to the USB HDD.
lvm2 is installed and I don't know what to do with it.

Truly, I don't need the ntfs, but the thing is I have there data that I would need to get out. Once done I can format it to whatever else, but until then I just have to realise how to copy the data elsewhere.
 
Old 09-21-2016, 01:06 PM   #29
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 MarianH View Post
sorry I don't get it ... I've did the mount of lv_root, but the only thing it does is that it mounts the same part of the internal drive to the folder root in the folder mnt. So it doesn't belong to the USB HDD.
lvm2 is installed and I don't know what to do with it.

Truly, I don't need the ntfs, but the thing is I have there data that I would need to get out. Once done I can format it to whatever else, but until then I just have to realise how to copy the data elsewhere.
if you got access to WINDOWS then hook it up to a windows copy or move all of your data to another drive then do with that drive whatever you wnat to, then you'd be done with it.
 
Old 09-21-2016, 01:08 PM   #30
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,452

Rep: Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214Reputation: 6214
Anything about LVM at the moment is not relevant to mounting the USB drive. You can try running ntfsfix to see if it can fix your problem.

ntfsfix -n /dev/sdb1 ( The -n will only show what is wrong i.e. it will not do anything)
 
  


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 11:08 AM
Force External USB HDD to mount to certain folder predatorz Linux - Hardware 4 06-18-2008 12:26 PM
Insert/remove USB disk leaves a permanent folder carbide Linux - General 3 03-25-2008 04:42 AM
Can't mount usb flash disk? ak-87 Slackware 13 05-19-2007 06:42 AM
How to mount my USB mobile disk malek_baklouti Linux - Software 13 04-23-2004 10:43 AM

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

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