Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[Solved] How to Automount Partitions in MX

Message
Author
User avatar
vamsi
Forum Regular
Forum Regular
Posts: 424
Joined: Thu Apr 13, 2017 2:50 am

[Solved] How to Automount Partitions in MX

#1 Post by vamsi » Thu Jun 07, 2018 7:15 am

Recently i connected my cpu two hdd's via a cable now i want to mount all the partitions automatically i.e, 1HDD and 2 HDD partitions is there a way i messed with fstab file but didn't worked

Code: Select all

$ sudo blkid
/dev/sda1: UUID="f9c818a6-7038-4dd2-aad1-263fa527f73e" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="e02dfbea-cded-4dd4-b4fa-cff99f24d732"
/dev/sda2: LABEL="rootMX17" UUID="fb5af156-c9ae-4963-b0a8-6039d78bbfce" TYPE="ext4" PARTLABEL="Basic data partition" PARTUUID="688b1d1b-3922-43e2-bca4-ad0946987134"
/dev/sda3: UUID="fae678df-f8dc-4f0a-87f5-8307d3398098" TYPE="ext4" PARTUUID="6bb94577-37eb-4f6d-ae10-76d1d0f04255"
/dev/sda4: LABEL="Android-x86" UUID="033e8fc7-4cfe-9454-bc59-df7329ca862d" TYPE="ext4" PARTLABEL="Android" PARTUUID="f5c8bce3-3e4f-4c9c-9a80-6224465ec94d"
/dev/sda5: UUID="2DF8F85A1147CE35" TYPE="ntfs" PTTYPE="dos" PARTLABEL="My Files" PARTUUID="e4c620ce-fb83-4d65-aded-7b35a189e476"
/dev/sdb1: UUID="82FE6E3EFE6E2A9D" TYPE="ntfs" PARTUUID="d8a7d8a7-01"
/dev/sdb5: LABEL="KULAKARNI" UUID="60BCAD92BCAD62F0" TYPE="ntfs" PARTUUID="d8a7d8a7-05"
/dev/sdb6: LABEL="PRASAD" UUID="C234C36C34C36251" TYPE="ntfs" PARTUUID="d8a7d8a7-06"
/dev/sdb7: LABEL="VAMSI" UUID="44ECE53FECE52C3C" TYPE="ntfs" PARTUUID="d8a7d8a7-07"
/dev/zram1: UUID="6cf5e869-ed7c-403d-b7b7-58646b81081f" TYPE="swap"

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/sda2 :
UUID=fb5af156-c9ae-4963-b0a8-6039d78bbfce	/	ext4	defaults	1	1
#Entry for /dev/sdb5 :
UUID=60BCAD92BCAD62F0	/media/cherubim/60BCAD92BCAD62F0	ntfs-3g	defaults,locale=en_US.UTF-8	0	0
#Entry for /dev/sdb1 :
UUID=82FE6E3EFE6E2A9D	/media/cherubim/82FE6E3EFE6E2A9D	ntfs	defaults	0	0
#Entry for /dev/sdb6 :
UUID=C234C36C34C36251	/media/cherubim/C234C36C34C36251	ntfs-3g	defaults,locale=en_US.UTF-8	0	0
#Entry for /dev/sda4 :
UUID=033e8fc7-4cfe-9454-bc59-df7329ca862d	/media/Android_x86	ext4	defaults	0	0
#Entry for /dev/sda5 :
UUID=2DF8F85A1147CE35	/media/cherubim/2DF8F85A1147CE35	ntfs-3g	defaults	0	0
#Entry for /dev/sda3 :
UUID=fae678df-f8dc-4f0a-87f5-8307d3398098	/media/sda3	ext4	defaults	0	0
#Entry for /dev/sda1 :
UUID=f9c818a6-7038-4dd2-aad1-263fa527f73e	swap	swap	defaults	0	0
Thanks
Last edited by vamsi on Fri Jun 08, 2018 3:09 am, edited 1 time in total.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 9066
Joined: Sun Dec 16, 2007 1:17 pm

Re: How to Automount Partitions in MX

#2 Post by dolphin_oracle » Thu Jun 07, 2018 7:54 am

use the "auto" option in fstab.

Code: Select all


#Entry for /dev/sdb5 :
UUID=60BCAD92BCAD62F0	/media/cherubim/60BCAD92BCAD62F0	ntfs-3g	defaults,auto,locale=en_US.UTF-8	0	0
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
vamsi
Forum Regular
Forum Regular
Posts: 424
Joined: Thu Apr 13, 2017 2:50 am

Re: How to Automount Partitions in MX

#3 Post by vamsi » Thu Jun 07, 2018 8:19 am

dolphin_oracle wrote:
Thu Jun 07, 2018 7:54 am
use the "auto" option in fstab.

Code: Select all


#Entry for /dev/sdb5 :
UUID=60BCAD92BCAD62F0	/media/cherubim/60BCAD92BCAD62F0	ntfs-3g	defaults,auto,locale=en_US.UTF-8	0	0
Thanks i edited like this

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/sda2 :
UUID=fb5af156-c9ae-4963-b0a8-6039d78bbfce	/	ext4	defaults	1	1

#Entry for /dev/sdb1 :
UUID=82FE6E3EFE6E2A9D	/media/cherubim/82FE6E3EFE6E2A9D	ntfs	defaults	0	0

#Entry for /dev/sda4 :
UUID=033e8fc7-4cfe-9454-bc59-df7329ca862d	/media/Android_x86	ext4	defaults	0	0

#Entry for /dev/sda5 :
UUID=2DF8F85A1147CE35		/media/sda5	ntfs-3g	defaults,auto	0	0

#Entry for /dev/sda3 :
UUID=fae678df-f8dc-4f0a-87f5-8307d3398098	/media/sda3	ext4	defaults	0	0

/dev/sda5	/media/cherubim	ntfs-3g	defaults,locale=en_US.UTF-8	0	0
#Entry for /dev/sdb6 :
UUID=C234C36C34C36251	/media/cherubim/C234C36C34C36251	ntfs-3g	defaults,locale=en_US.UTF-8	0	0

#Entry for /dev/sda1 :
UUID=f9c818a6-7038-4dd2-aad1-263fa527f73e	swap	swap	defaults	0	0
Every partitions mount after starting but i was not able to create a folder in any partition and not able to paste anything what may be the reason

Thanks..

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 9066
Joined: Sun Dec 16, 2007 1:17 pm

Re: How to Automount Partitions in MX

#4 Post by dolphin_oracle » Thu Jun 07, 2018 8:31 am

vamsi wrote:
Thu Jun 07, 2018 8:19 am


Every partitions mount after starting but i was not able to create a folder in any partition and not able to paste anything what may be the reason

Thanks..
probably the top level of the partition is owned by root. this is how tools like gparted or gnome-disks format with ext4. I generally create subfolders and then give my user permissions on those folders.

ntfs-3g is a little different. you can spoof the user privileges. in my screenshot below (ignore the red circle, this is an old screenshot), I use UID and GID variables to tell the ntfs-3g driver what user I want to "own" the filesystem.
You do not have the required permissions to view the files attached to this post.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 374
Joined: Sun Aug 20, 2017 10:11 am

Re: How to Automount Partitions in MX

#5 Post by stsoh » Thu Jun 07, 2018 8:31 am

try this:

Code: Select all

ntfs-3g	uid=1000,gid=1000,fmask=0137,dmask=0027,locale=en_US.UTF-8	0	0
MX-17.1_x64 Horizon, G41M-P33 Combo(MS-7592), Pentium E5400 (min/max: 1203/2700 MHz), 8Gb RAM (800 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.

User avatar
vamsi
Forum Regular
Forum Regular
Posts: 424
Joined: Thu Apr 13, 2017 2:50 am

Re: How to Automount Partitions in MX

#6 Post by vamsi » Thu Jun 07, 2018 11:42 am

Image
here is fstab file i did this and rebooted and gere is the screenshot

Image
and i was not able to create folder also.. :frown: :frown:
thanks..

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 9066
Joined: Sun Dec 16, 2007 1:17 pm

Re: How to Automount Partitions in MX

#7 Post by dolphin_oracle » Thu Jun 07, 2018 11:43 am

is your user id 1000?

what is

Code: Select all

id
run as regular user giving for output?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
vamsi
Forum Regular
Forum Regular
Posts: 424
Joined: Thu Apr 13, 2017 2:50 am

Re: How to Automount Partitions in MX

#8 Post by vamsi » Thu Jun 07, 2018 12:04 pm

dolphin_oracle wrote:
Thu Jun 07, 2018 11:43 am
is your user id 1000?

what is

Code: Select all

id
run as regular user giving for output?
Here is the output

Code: Select all

$ id
uid=1000(cherubim) gid=1000(cherubim) groups=1000(cherubim),7(lp),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),108(netdev),116(lpadmin),119(scanner)

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 374
Joined: Sun Aug 20, 2017 10:11 am

Re: How to Automount Partitions in MX

#9 Post by stsoh » Thu Jun 07, 2018 1:38 pm

stsoh wrote:
Thu Jun 07, 2018 8:31 am
try this:

Code: Select all

ntfs-3g	uid=1000,gid=1000,fmask=0137,dmask=0027,locale=en_US.UTF-8	0	0
what was the result when/if u use the above???
if it is still lock, logic say tat u r not recognized user by the system.
/media/sda5??? maybe your uuid is invalid.
try this:

Code: Select all

/media/cherubim/2DF8F85A1147CE35
check n confirm uuid,

Code: Select all

blkid
MX-17.1_x64 Horizon, G41M-P33 Combo(MS-7592), Pentium E5400 (min/max: 1203/2700 MHz), 8Gb RAM (800 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 9066
Joined: Sun Dec 16, 2007 1:17 pm

Re: How to Automount Partitions in MX

#10 Post by dolphin_oracle » Thu Jun 07, 2018 9:39 pm

a couple of points I want to clear up.

1. did the automount part work?

2. if that is a windows partition, are you sure windows is totally shutdown? by default it can use a hybrid sleep/shutdown that can leave the ntfs partition locked to other processes.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “Software / Configuration”