Mepis 11 - mount slaved hard drive and write to the drive

For help or questions about 64-bit version of MEPIS, this is the forum to use.
Message
Author
User avatar
namida12
Forum Guide
Forum Guide
Posts: 1566
Age: 51
Joined: Sun Apr 01, 2007 4:54 pm

Mepis 11 - mount slaved hard drive and write to the drive

#1 Postby namida12 » Thu Jan 26, 2012 3:02 pm

I have a second hard drive in my system, but I only want to mount the drive occasionally for writing purposes.

In Mepis 8, I would click on my computer and mount the drive and it would ask for root permission, and then i could read and write to the drive. In Mepis 11 it is always mounted, but I can not discover how to toggle on and off the write permission via Dolphin. I also tried to do it with Kdiskfree without success.

With the drive open in a window, I opened a terminal and typed SU and then password but I do not know what command I need to use to give this mounted drive user permission, and then when i am finished storing the files i want, then turn off write permission as it is currently mounted...

I would like the drive to be invisible to Dolphin (not to mount) and let me mount the drive and write to it as I please or not see the drive as the system worked in Mepis 8. I am certain there should be a boot change that I could make to stop auto mount of sdb, and then perform it manually as needed...

This should be in the wiki, but i guess I am blind this week, or having a senior moment 20 years early...

JR

User avatar
DBeckett
Forum Veteran
Forum Veteran
Posts: 3064
Joined: Sat May 16, 2009 3:59 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#2 Postby DBeckett » Thu Jan 26, 2012 3:46 pm

Assuming the drive is ext3 and is called sdb1...

As root, edit /etc/fstab. Find the line that refers to sdb1. Make sure it's above the # dynamic entries line.

Make it look something like this:

Code: Select all

/dev/sdb1 /mnt/sdb1 ext3 noauto,user,exec,rw,noatime 0 0
Gigabyte 990FXA-UD3, AMD FX-6100 hex-core, 3.3GHz, 8G, Radeon HD6570

User avatar
namida12
Forum Guide
Forum Guide
Posts: 1566
Age: 51
Joined: Sun Apr 01, 2007 4:54 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#3 Postby namida12 » Thu Jan 26, 2012 4:20 pm

DBeckett wrote:Assuming the drive is ext3 and is called sdb1...

As root, edit /etc/fstab. Find the line that refers to sdb1. Make sure it's above the # dynamic entries line.

Make it look something like this:

Code: Select all

/dev/sdb1 /mnt/sdb1 ext3 noauto,user,exec,rw,noatime 0 0


DBeckett,

I have sdb1 listed below the Dynamic entries. Would i modify that line? Or just add this additional line above the # Dynamic entries below as you suggested?

JR

Code: Select all

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda1 / ext4 defaults,noatime 1 1
/dev/sda2 swap swap sw,pri=1 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
/dev/sda3 /home auto defaults,noatime 1 2
# Dynamic entries below
/dev/sdb1 /mnt/sdb1 ext3 noauto,users,exec,relatime 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0

User avatar
DBeckett
Forum Veteran
Forum Veteran
Posts: 3064
Joined: Sat May 16, 2009 3:59 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#4 Postby DBeckett » Thu Jan 26, 2012 4:28 pm

Move that line above the # Dynamic entries line and then just add the rw option to it. It would look like this:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda1 / ext4 defaults,noatime 1 1
/dev/sda2 swap swap sw,pri=1 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
/dev/sda3 /home auto defaults,noatime 1 2
/dev/sdb1 /mnt/sdb1 ext3 noauto,users,exec,rw,relatime 0 0
# Dynamic entries below
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
Gigabyte 990FXA-UD3, AMD FX-6100 hex-core, 3.3GHz, 8G, Radeon HD6570

User avatar
namida12
Forum Guide
Forum Guide
Posts: 1566
Age: 51
Joined: Sun Apr 01, 2007 4:54 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#5 Postby namida12 » Thu Jan 26, 2012 5:34 pm

DBeckett wrote:Move that line above the # Dynamic entries line and then just add the rw option to it. It would look like this:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda1 / ext4 defaults,noatime 1 1
/dev/sda2 swap swap sw,pri=1 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
/dev/sda3 /home auto defaults,noatime 1 2
/dev/sdb1 /mnt/sdb1 ext3 noauto,user,exec,rw,noatime 0 0
# Dynamic entries below
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0


DBeckett,

Thank you for the color coding, made it easy to apply the change. Unfortunately, I still do not have the ability to add a folder or copy a small file to that drive. It is also auto mounted, and the "users" or "user" is different in the commands you suggested would that make a difference?

I tried it using both methods in fstab and booting each time to be certain:

Code: Select all

/dev/sdb1 /mnt/sdb1 ext3 noauto,users,exec,rw,relatime 0 0
<--Last suggestion

Code: Select all

/dev/sdb1 /mnt/sdb1 ext3 noauto,user,exec,rw,noatime 0 0
<--First suggestion

I am going to move it below the Dynamic entries line and reboot to see if that makes a difference...

JR

User avatar
namida12
Forum Guide
Forum Guide
Posts: 1566
Age: 51
Joined: Sun Apr 01, 2007 4:54 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#6 Postby namida12 » Thu Jan 26, 2012 5:54 pm

The drive is still listed on Dolphin when I open home, and I still do not have the ability to add a folder or copy a small file to that drive.

If I unmount the drive using KDiskfree the drive is still visible in Dolphin but not mounted...

What would happen If I did not list this drive in fstab, or I put a Hash mark (#) before the line? I can always use Kdiskfree to mount the drive.

JR

User avatar
richb
Administrator
Posts: 12927
Age: 71
Joined: Wed Jul 12, 2006 2:17 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#7 Postby richb » Thu Jan 26, 2012 6:47 pm

Without adding anything to fstab, Dolphin lists the drive and mounts it when I click on it.
Forum Rules
Guide - How to Ask for Help

Rich

Laptop: Acer V5-572G: Intel i5, 12 GIG mem, Intel graphics, SanDisk SSD, 256GB
Virtualbox: Win 7
Desktop: MX-15- 64, AMD A8 7600 FM2+ CPU R7 Graphics, fglrx driver, 16 GIG Mem. Samsung EVO SSD 250 GB

User avatar
uncle mark
Forum Veteran
Forum Veteran
Posts: 5354
Age: 2015
Joined: Sat Nov 11, 2006 10:42 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#8 Postby uncle mark » Thu Jan 26, 2012 6:47 pm

Try

/dev/sdb1 /mnt/sdb1 ext3 auto,users,exec,rw 0 0

above the Dynamic line
Desktop: Custom build Asus/AMD/nVidia -- MX-15 KDE, MEPIS 11
Laptop: Acer Aspire 5250 -- MX-15

User avatar
DBeckett
Forum Veteran
Forum Veteran
Posts: 3064
Joined: Sat May 16, 2009 3:59 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#9 Postby DBeckett » Thu Jan 26, 2012 6:56 pm

But he seems to want it to be unmounted unless he wants to use it.
Gigabyte 990FXA-UD3, AMD FX-6100 hex-core, 3.3GHz, 8G, Radeon HD6570

User avatar
uncle mark
Forum Veteran
Forum Veteran
Posts: 5354
Age: 2015
Joined: Sat Nov 11, 2006 10:42 pm

Re: Mepis 11 - mount slaved hard drive and write to the driv

#10 Postby uncle mark » Thu Jan 26, 2012 7:23 pm

DBeckett wrote:But he seems to want it to be unmounted unless he wants to use it.



Okay, how about

/dev/sdb1 /mnt/sdb1 ext3 defaults,noatime 0 0

although I think that does automount.

Don't really see why it would matter whether it automounts or not.

I'm just trying combinations that work for me giving the write access he wants without needing to feed it the root password. That would be a PITA.
Desktop: Custom build Asus/AMD/nVidia -- MX-15 KDE, MEPIS 11
Laptop: Acer Aspire 5250 -- MX-15


Return to “64-bit Newbies”

Who is online

Users browsing this forum: No registered users and 1 guest