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, 09:53 AM
|
#16
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
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.
|
|
|
09-21-2016, 10:08 AM
|
#17
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
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
|
|
|
09-21-2016, 10:11 AM
|
#18
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep:
|
Quote:
Originally Posted by Shadow_7
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
|
|
|
09-21-2016, 10:18 AM
|
#19
|
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 MarianH
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.
|
|
|
09-21-2016, 10:21 AM
|
#20
|
Moderator
Registered: Aug 2002
Posts: 26,452
|
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.
|
|
|
09-21-2016, 10:21 AM
|
#21
|
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 MarianH
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.
|
|
|
09-21-2016, 11:12 AM
|
#22
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
|
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.
|
|
|
09-21-2016, 11:33 AM
|
#24
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
|
Wonderful, worked like a charm. Thank you!
So now I have the ntfs-3g installed. How could I proceed further please?
|
|
|
09-21-2016, 11:40 AM
|
#25
|
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 MarianH
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 ...
|
|
|
09-21-2016, 12:23 PM
|
#26
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep:
|
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.
|
|
|
09-21-2016, 12:43 PM
|
#27
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
Quote:
Originally Posted by MarianH
[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/
|
|
|
09-21-2016, 12:58 PM
|
#28
|
LQ Newbie
Registered: Sep 2016
Posts: 22
Original Poster
Rep:
|
Quote:
Originally Posted by Shadow_7
# 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.
|
|
|
09-21-2016, 01:06 PM
|
#29
|
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 MarianH
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.
|
|
|
09-21-2016, 01:08 PM
|
#30
|
Moderator
Registered: Aug 2002
Posts: 26,452
|
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)
|
|
|
All times are GMT -5. The time now is 01:00 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
|
|