You are not logged in.
Pages: 1
Hi, world.
I am trying to mount my common(shared(between 3 OS's) partition) at the start time. I've done this last week on Linux Mint by adding this line:
/etc/fstab
UUID=7E926B1E1055F04E /home/user/common ntfs-3g rw 0 0Now I'm trying to add this line:
/dev/sda6 /home/user/common ntfs-3g uid=user,gid=users 0 0As archwiki says it's the most permissive option. I aslo added my user to disk group and many more groups:
Output of #groups user
sys adm tty disk lp wheel ftp uucp log locate rfkill http games video audio optical floppy scanner input systemd-journal usersDon't know if it's ok to add my user to so many groups
Plz, give me also advice on groups, maybe I should exclude some dangerous groups.
Some output of #dmesg
INUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 2.849044] systemd[1]: Detected architecture x86-64.
[ 2.854200] systemd[1]: Set hostname to <shgr-mashina>.
[ 3.026740] usb 5-1: new low-speed USB device number 2 using uhci_hcd
[ 3.267738] random: crng init done
[ 3.607642] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 3.607721] systemd[1]: Listening on Journal Socket (/dev/log).
[ 3.646678] systemd[1]: Reached target Login Prompts.
[ 3.646739] systemd[1]: Listening on udev Kernel Socket.
[ 3.646817] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 3.646840] systemd[1]: Reached target Remote File Systems.
[ 3.646897] systemd[1]: Listening on Journal Socket.
[ 3.930259] EXT4-fs (sda9): re-mounted. Opts: data=ordered
[ 5.392047] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2
[ 5.392054] ACPI: Power Button [PWRB]
[ 5.392782] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[ 5.392786] ACPI: Power Button [PWRF]
[ 5.484553] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 5.520250] snd_hda_codec_realtek hdaudioC0D2: autoconfig for ALC888: line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[ 5.520254] snd_hda_codec_realtek hdaudioC0D2: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 5.520257] snd_hda_codec_realtek hdaudioC0D2: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 5.520259] snd_hda_codec_realtek hdaudioC0D2: mono: mono_out=0x0
[ 5.520262] snd_hda_codec_realtek hdaudioC0D2: dig-out=0x1e/0x0
[ 5.520264] snd_hda_codec_realtek hdaudioC0D2: inputs:
[ 5.520267] snd_hda_codec_realtek hdaudioC0D2: Rear Mic=0x18
[ 5.520270] snd_hda_codec_realtek hdaudioC0D2: Front Mic=0x19
[ 5.520272] snd_hda_codec_realtek hdaudioC0D2: Line=0x1a
[ 5.520275] snd_hda_codec_realtek hdaudioC0D2: CD=0x1c
[ 5.520277] snd_hda_codec_realtek hdaudioC0D2: dig-in=0x1f
[ 5.545100] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/sound/card0/input5
[ 5.546090] input: HDA Intel HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input4
[ 5.546148] input: HDA Intel Rear Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[ 5.546206] input: HDA Intel Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[ 5.546262] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[ 5.546318] input: HDA Intel Line Out Front as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 5.546372] input: HDA Intel Line Out Surround as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 5.546426] input: HDA Intel Line Out CLFE as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 5.546479] input: HDA Intel Line Out Side as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 5.627987] intel_rng: FWH not detected
[ 5.680971] FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
[ 5.681794] input: Chicony USB Keyboard as /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/0003:04F2:0403.0001/input/input13
[ 5.722602] i801_smbus 0000:00:1f.3: SMBus using PCI interrupt
[ 5.727666] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x000000000000042C-0x000000000000042D (\GP2C) (20160930/utaddress-247)
[ 5.727676] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 5.727725] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 5.736802] hid-generic 0003:04F2:0403.0001: input,hidraw0: USB HID v1.11 Keyboard [Chicony USB Keyboard] on usb-0000:00:1d.2-1/input0
[ 5.760374] input: PC Speaker as /devices/platform/pcspkr/input/input14
[ 5.768209] input: Chicony USB Keyboard as /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.1/0003:04F2:0403.0002/input/input15
[ 5.781218] [drm] Initialized
[ 5.811698] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 5.811712] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 5.812196] r8169 0000:02:00.0 eth0: RTL8168c/8111c at 0xffffc90000395000, 00:24:1d:88:3e:cf, XID 1c4000c0 IRQ 27
[ 5.812199] r8169 0000:02:00.0 eth0: jumbo features [frames: 6128 bytes, tx checksumming: ko]
[ 5.823493] hid-generic 0003:04F2:0403.0002: input,hiddev0,hidraw1: USB HID v1.11 Device [Chicony USB Keyboard] on usb-0000:00:1d.2-1/input1
[ 5.823940] input: USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/0003:0000:0538.0003/input/input16
[ 5.823994] hid-generic 0003:0000:0538.0003: input,hidraw2: USB HID v1.11 Mouse [ USB OPTICAL MOUSE] on usb-0000:00:1d.3-1/input0
[ 5.861221] coretemp coretemp.0: Using relative temperature scale!
[ 5.861244] coretemp coretemp.0: Using relative temperature scale!
[ 5.879273] leds_ss4200: no LED devices found
[ 6.058701] intel_powerclamp: No package C-state available
[ 6.088525] systemd-journald[170]: Received request to flush runtime journal from PID 1
[ 6.090556] intel_powerclamp: No package C-state available
[ 6.606314] pci 0000:00:00.0: Intel G41 Chipset
[ 6.606344] pci 0000:00:00.0: detected gtt size: 2097152K total, 262144K mappable
[ 6.607079] pci 0000:00:00.0: detected 32768K stolen memory
[ 6.607119] [drm] Memory usable by graphics device = 2048M
[ 6.607125] checking generic (d0000000 300000) vs hw (d0000000 10000000)
[ 6.607127] fb: switching to inteldrmfb from VESA VGA
[ 6.607176] Console: switching to colour dummy device 80x25
[ 6.608259] [drm] Replacing VGA console driver
[ 6.613428] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 6.613430] [drm] Driver supports precise vblank timestamp query.
[ 6.613932] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 6.623464] [drm] RC6 disabled, disabling runtime PM support
[ 6.626082] [drm] Initialized i915 1.6.0 20161121 for 0000:00:02.0 on minor 0
[ 6.701668] fbcon: inteldrmfb (fb0) is primary device
[ 6.812380] iTCO_vendor_support: vendor-support=0
[ 6.864470] Console: switching to colour frame buffer device 180x56
[ 6.881624] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[ 6.881695] iTCO_wdt: Found a ICH7 or ICH7R TCO device (Version=2, TCOBASE=0x0460)
[ 6.881910] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[ 6.887386] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 6.948885] mousedev: PS/2 mouse device common for all mice
[ 7.068608] Adding 3071996k swap on /dev/sda8. Priority:-1 extents:1 across:3071996k FS
[ 7.208202] gpio_ich: GPIO from 462 to 511 on gpio_ich
[ 7.298101] r8169 0000:02:00.0 enp2s0: renamed from eth0
[ 8.470870] EXT4-fs (sda10): mounted filesystem with ordered data mode. Opts: data=ordered
[ 8.984692] r8169 0000:02:00.0 enp2s0: link down
[ 8.984778] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
[ 10.470537] r8169 0000:02:00.0 enp2s0: link up
[ 10.470550] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[ 28.701294] fuse init (API version 7.26)Addition info:
That ntfs partition is a logical partition along with linux partitions, all they live in one primary partition, other primary partitions occupied by Windows 10.
MBR BIOS.
When I mount manually it's ok, I can read and write to them(all other partitions), but still requires authentication by root password, which is annoying.
When I boot It fails and I have to comment that line in /etc/fstab
Offline
OMG! I just realized I tried to mount the wrong partition /sda6 is actually my Mint root directory.
I will try this line and if it's ok I'll respond later.
/dev/sda11 /home/user/common ntfs-3g uid=user,gid=users 0 0better this
/UUID=7E926B1E1055F04E /home/user/common ntfs-3g uid=user,gid=users 0 0I still need advice on groups though.
Last edited by tuva_men (2017-04-29 13:54:39)
Offline
Welcome to the arch linux forums tuva_men.
As archwiki says it's the most permissive option.
Where in the arch wiki? Please provide a link.
uid=value and gid=value
Set the owner and the group of files and directories. The values
are numerical. The defaults are the uid and gid of the current
process.
Why did you switch from using UUID referencing for the device to /dev/sda6?
See Users_and_groups#Group_list the user probably does not need to be in most of the groups you added it to.
Offline
3 OSs meaning windows, mint, and arch?
Offline
I just rebooted and it works fine as expected.
Where in the arch wiki? Please provide a link.
If you are running on a single user machine, you may like to own the file system yourself and grant all possible permissions:
/dev/NTFS-partition /mnt/windows ntfs-3g uid=username,gid=users 0 0
https://wiki.archlinux.org/index.php/NTFS-3G
Why did you switch from using UUID referencing for the device to /dev/sda6?
I don't know myself
I was suspisious about that, thought UUID is something unique. I tried UUID version, but for the /sda6 partition.
uid=value and gid=value
Set the owner and the group of files and directories. The values
are numerical. The defaults are the uid and gid of the current
process.
Don't know about this anything, I thought it was my username
How to get rid off the authentication process on other partitions when I manually trying to mount them?
Offline
3 OSs meaning windows, mint, and arch?
Yes, but I'm using arch because mint cinnamon is too much for my old pc, I quickly ran out of RAM(2GB). Actually Mint is slower than Windows 10 and crashes(stops) very often, which is strange because I used Ubuntu couple of years ago and the system was faster than windows 7.
Offline
Welcome, tuva_men ![]()
I think what you are trying to do is not "healthy" for your OS-es. You home directory containst all your configuration files (dotfiles).
Arch is a rolling release distro. Mint is not (though it uses new software). So it's likely that you'll have a software on both OS-es with different versions, but same dotfiles. They might interfere and break each other.
What I suggest is (I do this): create a data partition instead of a home partition. You can then symlink all your directories to your home folder like:
ln -s /mnt/data/Dropbox ~/dropboxThe effect is almost the same as they were in your home folder... My home directory contains about 15 symlinks to my data partition. This way your config files remain separate.
Setting up all this auto-mounting stuff is quite easy with gnome-disk-utility. It's in the Arch repos.
50-50 GB is more than enough for your OS-es if you use them this way.
Last edited by Lemongrass (2017-04-29 14:40:12)
Offline
@Lemongrass tuva_men's title of mounting to /home does not match the fstab entries tuva_men posted which use a mount point of /home/user/common which would not suffer from the issue you are warning about.
Offline
Thank you for the correction, loqs! ![]()
Offline
@Lemongrass tuva_men's title of mounting to /home does not match the fstab entries tuva_men posted which use a mount point of /home/user/common which would not suffer from the issue you are warning about.
Yes, it's mostly the same as Lemongrass's method, only I'm mounting instead of symlinking. I also have separate data(NTFS) partition. Is it better to symlink than mount? Or mounting symlinks already behind the scenes?
Offline
loqs wrote:Where in the arch wiki? Please provide a link.
If you are running on a single user machine, you may like to own the file system yourself and grant all possible permissions:
/dev/NTFS-partition /mnt/windows ntfs-3g uid=username,gid=users 0 0
https://wiki.archlinux.org/index.php/NTFS-3Gman 8 ntfs-3g wrote:uid=value and gid=value
Set the owner and the group of files and directories. The values
are numerical. The defaults are the uid and gid of the current
process.
So the wiki is correct and the ntfs-3g man page is incorrect it translates user and group names to numeric values if names are provided.
This assumes your username is really called user and the user's primary group is users.
So that would seem to leave the issue of why you added the user to all those groups and why switch away from UUID to device node based naming.
Edit:
Also if you are trying to determine if an fstab entry was mounted successfully or not I would recommend the journal over dmesg.
Last edited by loqs (2017-04-29 15:09:54)
Offline
Pages: 1