MX & MEPIS Community Forum

Linux operating systems based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Mepis 11 - mount slaved hard drive and write to the drive 
Author Message
Forum Guide
Forum Guide
User avatar

Joined: Sun Apr 01, 2007 4:54 pm
Posts: 1301
Location: Las Vegas, NV
Has thanked: 188 times
Have thanks: 77 times
Post # 294403
Post Mepis 11 - mount slaved hard drive and write to the drive
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


Thu Jan 26, 2012 3:02 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sat May 16, 2009 3:59 pm
Posts: 2902
Has thanked: 421 times
Have thanks: 446 times
Post # 294405
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
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:
/dev/sdb1 /mnt/sdb1 ext3 noauto,user,exec,rw,noatime 0 0

_________________
Gigabyte 990FXA-UD3, AMD FX-6100 hex-core, 3.3GHz, Radeon HD6570
Gigabyte A55M-DS2, AMD A4-3400 dual-core APU (llano), 2.7 GHz, Radeon HD graphics
IBM ThinkPad T43, Intel Pentium M, 1.73GHz, Intel chipset


Thu Jan 26, 2012 3:46 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Apr 01, 2007 4:54 pm
Posts: 1301
Location: Las Vegas, NV
Has thanked: 188 times
Have thanks: 77 times
Post # 294408
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
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:
/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:
# 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


Thu Jan 26, 2012 4:20 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sat May 16, 2009 3:59 pm
Posts: 2902
Has thanked: 421 times
Have thanks: 446 times
Post # 294410
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
Move that line above the # Dynamic entries line and then just add the rw option to it. It would look like this:

Quote:
# 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, Radeon HD6570
Gigabyte A55M-DS2, AMD A4-3400 dual-core APU (llano), 2.7 GHz, Radeon HD graphics
IBM ThinkPad T43, Intel Pentium M, 1.73GHz, Intel chipset


Thu Jan 26, 2012 4:28 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Apr 01, 2007 4:54 pm
Posts: 1301
Location: Las Vegas, NV
Has thanked: 188 times
Have thanks: 77 times
Post # 294420
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
DBeckett wrote:
Move that line above the # Dynamic entries line and then just add the rw option to it. It would look like this:

Quote:
# 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:
/dev/sdb1 /mnt/sdb1 ext3 noauto,users,exec,rw,relatime 0 0
<--Last suggestion
Code:
/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


Thu Jan 26, 2012 5:34 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Apr 01, 2007 4:54 pm
Posts: 1301
Location: Las Vegas, NV
Has thanked: 188 times
Have thanks: 77 times
Post # 294426
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
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


Thu Jan 26, 2012 5:54 pm
Profile
Administrator
User avatar

Joined: Wed Jul 12, 2006 2:17 pm
Posts: 10808
Location: Rochester NY
Has thanked: 870 times
Have thanks: 1501 times
Post # 294430
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
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
Link to Wiki
Rich

Production: Acer Laptop V5-572G: Intel i5, 12 GIG mem, nVidia GT720M/Intel integrated graphics
Mx-14.2 Symbiosis
Virtualbox: Windows 7
Alternate: Kubuntu 14.10, KDE 4.11.2


Thu Jan 26, 2012 6:47 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Sat Nov 11, 2006 10:42 pm
Posts: 4482
Has thanked: 128 times
Have thanks: 918 times
Post # 294431
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
Try

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

above the Dynamic line

_________________
Desktop: Custom build Asus/AMD/nVidia -- MEPIS 11
Netbook: Fujitsu Lifebook Pentium M -- MX-14
Laptop: Acer Aspire 5250 AMD Dual -- SolydK 64


Thu Jan 26, 2012 6:47 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sat May 16, 2009 3:59 pm
Posts: 2902
Has thanked: 421 times
Have thanks: 446 times
Post # 294432
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
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, Radeon HD6570
Gigabyte A55M-DS2, AMD A4-3400 dual-core APU (llano), 2.7 GHz, Radeon HD graphics
IBM ThinkPad T43, Intel Pentium M, 1.73GHz, Intel chipset


Thu Jan 26, 2012 6:56 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Sat Nov 11, 2006 10:42 pm
Posts: 4482
Has thanked: 128 times
Have thanks: 918 times
Post # 294434
Post Re: Mepis 11 - mount slaved hard drive and write to the driv
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 -- MEPIS 11
Netbook: Fujitsu Lifebook Pentium M -- MX-14
Laptop: Acer Aspire 5250 AMD Dual -- SolydK 64


Thu Jan 26, 2012 7:23 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.