Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Force Mount NTFS-3G Read and Write.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sun Oct 10, 2021 9:08 am    Post subject: Force Mount NTFS-3G Read and Write. Reply with quote

Hello.

Is there any way to force Read and Write on the NTFS-3G /usr/portage/distfiles via /etc/fstab?
I do not care for any file corruptions on that SAMSUNG drive, its old and unrelyable. I just want to get rid of the read only mounts which may happens when I play around with the overclocking stuff.
I want to keep stuff which can be easily downloaded again away from my /. To keep also my backups from / smaller.

I have a Computer with CPU: Ryzen 3700x / Mainboard: MSI B550 Gaming EDGE WIFI and a SATA SAMSUNG 2.5" 1TB HDD.

According to this I could use remove_hiberfile feature from ntfs-3g:
https://unix.stackexchange.com/questions/163806/force-mount-windows-hibernated-partition-in-read-write-mode
Quote:
# mount -t ntfs-3g -o remove_hiberfile /dev/sdXX /media/windows


How the distfiles are in use now:
Code:
ASUS-G75VW /home/roman # grep distfiles /etc/fstab
/dev/sdc1   /usr/portage/distfiles ntfs-3g nofail,nodev,defaults 0 0
ASUS-G75VW /home/roman # lsblk /dev/sdc1
NAME MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sdc1   8:33   0 931,5G  0 part /usr/portage/distfiles


Code:
ASUS-G75VW /home/roman # lsblk
NAME                                                      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda                                                         8:0    0 111,8G  0 disk 
├─sda1                                                      8:1    0   100M  0 part 
├─sda2                                                      8:2    0    16M  0 part 
├─sda3                                                      8:3    0 111,2G  0 part 
└─sda4                                                      8:4    0   508M  0 part 
sdb                                                         8:16   0 111,8G  0 disk 
├─sdb1                                                      8:17   0     2M  0 part 
├─sdb2                                                      8:18   0   125M  0 part  /boot
├─sdb3                                                      8:19   0 111,5G  0 part 
│ └─vg_root_volume_ADATA-lv_root_volume_ADATA             251:0    0 111,5G  0 lvm   
│   └─root_vg_root_volume_ADATA-lv_root_volume_ADATA-root 251:1    0 111,5G  0 crypt /
└─sdb4                                                      8:20   0   128M  0 part 
sdc                                                         8:32   0 931,5G  0 disk 
└─sdc1                                                      8:33   0 931,5G  0 part  /usr/portage/distfiles
nvme0n1                                                   259:0    0 931,5G  0 disk 
├─nvme0n1p1                                               259:1    0     1M  0 part 
├─nvme0n1p2                                               259:2    0    15M  0 part 
└─nvme0n1p3                                               259:3    0 931,5G  0 part 
ASUS-G75VW /home/roman # df -h
Filesystem        Size  Used Avail Use% Mounted on
none               16G  1,2M   16G   1% /run
udev               10M     0   10M   0% /dev
shm                16G   90M   16G   1% /dev/shm
/dev/mapper/root  110G   71G   34G  68% /
cgroup_root        10M     0   10M   0% /sys/fs/cgroup
/dev/sdb2         124M   69M   55M  56% /boot
none               16G   18M   16G   1% /tmp
none               28G  2,3G   26G   9% /var/tmp/portage
none              8,0G     0  8,0G   0% /home/roman/Downloads
none               16G     0   16G   0% /home/roman/.cache/thumbnails
none               16G     0   16G   0% /home/roman/.cache/winetricks
none               16G     0   16G   0% /home/roman/.cache/fontconfig
none               16G     0   16G   0% /home/roman/.cache/wine
none               16G     0   16G   0% /home/roman/.cache/youtube-dl
none               16G     0   16G   0% /home/roman/.nv
tmpfs             3,2G   12K  3,2G   1% /run/user/2608
/dev/sdc1         932G   44G  889G   5% /usr/portage/distfiles


Could you please help me and give me some hints to how to forcefully mount that ntfs-3g drive? Thank you
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Oct 10, 2021 11:36 am    Post subject: Reply with quote

Roman_Gruber,

The filesystem is in a mess. It can't be safely mounted read write.

You can remake the filesystem and restore from your backup.
or run a fsck on it and hope that does not make a bad thing worse.

fsck guesses what should be there. Its been known to guess incorrectly too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum