Author Topic: Stop Drives AutoMount at Startup - How?  (Read 1495 times)

Offline Proletariat

  • Full Member
  • ***
  • Posts: 51
    • My Bike
Re: Stop Drives AutoMount at Startup - How?
« Reply #15 on: January 11, 2012, 07:30:48 PM »
Went into safe mode & made the changes there.

I added:
Code: [Select]
# Entry for /dev/sda1 :
/media/System Reserved ntfs-3g rw,user,noauto,exec,umask=000
# Entry for /dev/sda2 :
/media/Corsair SSD ntfs-3g rw,user,noauto,exec,umask=000

Didn't do anything though. Big surprise there.  :o  :D
KDE4 FullMonty 2011

Offline Proletariat

  • Full Member
  • ***
  • Posts: 51
    • My Bike
Re: Stop Drives AutoMount at Startup - How?
« Reply #16 on: January 11, 2012, 08:10:27 PM »
I've now got it looking like this:

Code: [Select]
# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8 /media/System Reserved ntfs-3g rw,user,noauto,exec,umask=000
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9 /media/Corsair SSD ntfs-3g rw,user,noauto,exec,umask=000

Still no go.

KDE4 FullMonty 2011

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Stop Drives AutoMount at Startup - How?
« Reply #17 on: January 11, 2012, 08:24:13 PM »
to verify the UUID, use the command blkid (BLKID lowercase), those you have added doesn't look to be the right length ...

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11577
  • ----IOFLU----
Re: Stop Drives AutoMount at Startup - How?
« Reply #18 on: January 11, 2012, 08:24:30 PM »
I've now got it looking like this:

Code: [Select]
# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8 /media/System Reserved ntfs-3g rw,user,noauto,exec,umask=000
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9 /media/Corsair SSD ntfs-3g rw,user,noauto,exec,umask=000

Still no go.



Now try to follow the instructions, as given.

[root@localhost ~]# mkdir -p /mnt/win-c /mnt/win-d                     <Enter>

You now have two proper mount point directories. Edit, again as root, /etc/fstab to include these two lines;

# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8  /mnt/win-c  ntfs-3g  rw,user,noauto,exec,umask=000   0 0
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9  /mnt/win-d  ntfs-3g  rw,user,noauto,exec,umask=000   0 0


Save the file. Reboot.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Proletariat

  • Full Member
  • ***
  • Posts: 51
    • My Bike
Re: Stop Drives AutoMount at Startup - How?
« Reply #19 on: January 11, 2012, 08:26:28 PM »
Getting it closer. Now got>

Code: [Select]
# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8 /mnt/win-c ntfs-3g rw,user,noauto,exec,umask=000
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9 /mnt/win-d ntfs-3g rw,user,noauto,exec,umask=000

Will make the other changes now.
KDE4 FullMonty 2011

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11577
  • ----IOFLU----
Re: Stop Drives AutoMount at Startup - How?
« Reply #20 on: January 11, 2012, 08:31:58 PM »
I've now got it looking like this:

Quote
# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8 /media/System Reserved ntfs-3g rw,user,noauto,exec,umask=000   1  2
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9 /media/Corsair SSD ntfs-3g rw,user,noauto,exec,umask=000   1  2

Still no go.

remove the red parameters, add those in blue  ;)


The parameters you show in blue should be      0 0

The /media directory having been taken over for removable devices by HAL/udev, should not be used for mount points listed in /etc/fstab. A sub-directory in /mnt would be more correct.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Proletariat

  • Full Member
  • ***
  • Posts: 51
    • My Bike
Re: Stop Drives AutoMount at Startup - How?
« Reply #21 on: January 11, 2012, 08:38:01 PM »
Code: [Select]
# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8 /mnt/win-c ntfs-3g rw,user,noauto,exec,umask=000 0 0
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9 /mnt/win-d ntfs-3g rw,user,noauto,exec,umask=000 0 0

Still no go. I must be missing something.

Aslo when at a terminal in root I enter /etc/fstab & get permission denied.

I've been going into safe mode to make the changes.

Verified the numbers. All OK.
KDE4 FullMonty 2011

Offline Proletariat

  • Full Member
  • ***
  • Posts: 51
    • My Bike
Re: Stop Drives AutoMount at Startup - How?
« Reply #22 on: January 11, 2012, 08:44:09 PM »
Just noticed something in blkid.

Instead of UUID it say for both  LABEL.

Will make the changes & see what gives.
KDE4 FullMonty 2011

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11577
  • ----IOFLU----
Re: Stop Drives AutoMount at Startup - How?
« Reply #23 on: January 11, 2012, 08:45:44 PM »
Code: [Select]
# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8 /mnt/win-c ntfs-3g rw,user,noauto,exec,umask=000 0 0
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9 /mnt/win-d ntfs-3g rw,user,noauto,exec,umask=000 0 0

Still no go. I must be missing something.

Aslo when at a terminal in root I enter /etc/fstab & get permission denied.

I've been going into safe mode to make the changes.

Verified the numbers. All OK.

As root;

[root@localhost ~]# kwrite /etc/fstab                        <Enter>

You need to specify the editor you want to open the file.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Proletariat

  • Full Member
  • ***
  • Posts: 51
    • My Bike
Re: Stop Drives AutoMount at Startup - How?
« Reply #24 on: January 11, 2012, 08:50:41 PM »
That will make it quicker.  :D

Made more changes. Still no go.

Code: [Select]
# Entry for /dev/sda1 :
LABEL=842ac5062ac4f5e8 /mnt/win-c ntfs-3g rw,user,noauto,exec,umask=000 0 0
# Entry for /dev/sda2 :
LABEL=b65ec62b5ec5e3e9 /mnt/win-d ntfs-3g rw,user,noauto,exec,umask=000 0 0

KDE4 FullMonty 2011

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11577
  • ----IOFLU----
Re: Stop Drives AutoMount at Startup - How?
« Reply #25 on: January 11, 2012, 09:15:18 PM »
That will make it quicker.  :D

Made more changes. Still no go.

Code: [Select]
# Entry for /dev/sda1 :
LABEL=842ac5062ac4f5e8 /mnt/win-c ntfs-3g rw,user,noauto,exec,umask=000 0 0
# Entry for /dev/sda2 :
LABEL=b65ec62b5ec5e3e9 /mnt/win-d ntfs-3g rw,user,noauto,exec,umask=000 0 0



If you use the LABEL= you need to specify the label name, not the UUID number.

Example:

From my /etc/fstab;

[root@fatman ~]# cat /etc/fstab
Code: [Select]
# Entry for /dev/sda9 :
LABEL=kde64-2           /                       ext4    defaults,noatime                1 1
LABEL=TR5-Documents     /home/polack/Documents  ext3    rw,user,noauto,exec,noatime     0 0
LABEL=Documents2        /home/polack/Documents2 ext3    rw,user,noauto,exec,noatime     0 0
# LABEL=share7          /share7                 ext3    rw,user,noauto,exec,noatime     0 0
LABEL=share1            /share1                 ext4    rw,user,auto,exec,noatime       0 0
#LABEL=share9           /share9                 ext3    defaults,noatime                0 0
LABEL=share9            /share9                 ext3    rw,user,noauto,exec,noatime       0 0
LABEL=movies            /movies                 ext3    rw,user,noauto,exec,noatime       0 0
LABEL=movies2           /movies2                ext3    rw,user,auto,exec,noatime       0 0
# LABEL=TV-1            /tv                     ext3    rw,user,noauto,exec,noatime     0 0
LABEL=storage00         /zstorage00             ext3    rw,user,noauto,exec,noatime     0 0
LABEL=120backup         /zbackup                ext3    rw,user,noauto,exec,noatime     0 0
LABEL=boot1000          /mnt/boot               ext3    rw,user,noauto,exec,noatime     0 0
#LABEL=part17           /mnt/17                 ext4    rw,user,noauto,exec,noatime     0 0
none                    /proc                   proc    defaults                        0 0
# Entry for /dev/sda2 :
#LABEL=swap200          swap                    swap    defaults                        0 0
# Entry for /dev/sda2 :
#LABEL=swap300          swap                    swap    defaults                        0 0
# Entry for /dev/sdc2 :
LABEL=swap1000          swap                    swap    defaults                        0 0
# Entry for /dev/sde2 :
LABEL=swap750           swap                    swap    defaults                        0 0
none                    /dev/pts                devpts  mode=0620                       0 0
/dev/fd0                /mnt/floppy             auto    rw,user,noauto,exec             0 0
/dev/sr0                /mnt/cdrom              auto    ro,user,noauto                  0 0
/dev/sr1                /mnt/dvd                auto    ro,user,noauto                  0 0
# none                  /dev/shm                tmpfs   defaults                        0 0

[root@fatman ~]# blkid
/dev/sda9: LABEL="kde64-2" UUID="a8fdfcab-c52a-4de2-adce-28738e49f388" TYPE="ext4"
/dev/sda2: LABEL="swap1000" UUID="8b44f813-fd45-4f94-b519-28300b4791ad" TYPE="swap"
/dev/sda3: LABEL="TR5" UUID="6ae6cf37-7fd2-4b9c-86dc-f037141745bb" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: LABEL="TR5-Documents" UUID="9c1bbdf4-5f3c-4d70-b03a-983504da6c15" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda6: LABEL="tmpback" UUID="dcf02721-aca8-494f-8182-cc8ab1df8430" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda7: LABEL="TR6" UUID="36feb97d-2f61-4709-b6f5-8e8d8fee3370" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda8: LABEL="kde2011" UUID="8c17ff68-f606-4148-98ac-1e85324e7bc6" TYPE="ext4"
/dev/sda11: LABEL="os-backups" UUID="3d1692bb-afe0-4648-b5be-d30f1eca32e7" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda12: LABEL="movies2" UUID="fad35a11-5738-401e-88b6-56b78dfeb15a" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda13: LABEL="share1" UUID="9c1c0b28-b24c-40ed-8c90-e5c704021548" TYPE="ext3" SEC_TYPE="ext2"
/dev/sda14: LABEL="minime2010" UUID="ab32e99a-5bb8-4360-b75d-e13df5412608" TYPE="ext4"
/dev/sda15: LABEL="kde64-4" UUID="15788c3a-2767-4c9e-8ebf-a0a488c1820c" TYPE="ext4"
/dev/sda16: LABEL="minime12" UUID="d31989a1-48f3-4875-848b-a66db2e86f09" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda17: LABEL="kde64" UUID="78e81c20-8949-487b-b685-de84a16c8802" TYPE="ext4"
/dev/sda1: LABEL="boot1000" UUID="10165aee-8b41-4c52-aa7e-c6b0d6d17eeb" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda10: LABEL="st-backup" UUID="7b1f293e-8deb-49de-adbf-db9173fd2599" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc1: LABEL="boot750" UUID="985efd35-13a4-4279-8129-0f9552d95ccb" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc2: LABEL="swap750" UUID="0ccd09b0-ebb4-4f78-8c73-632232adf438" TYPE="swap"
/dev/sdc3: LABEL="750pclos" UUID="ace4498d-cd4b-458b-9b0c-853c0679fe70" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc5: LABEL="Documents2" UUID="d9550e51-e2e6-4b48-b382-d491ab0bc1ea" TYPE="ext3"
/dev/sdc6: LABEL="share9" UUID="3abe7220-57d1-40c8-acb3-b8d13585577f" TYPE="ext3"
/dev/sdc7: LABEL="Documents" UUID="6c984560-d3bc-4ea9-b2ad-62586c662bcf" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc8: LABEL="750mm" UUID="b512d57e-3c7a-4226-96ea-98ba93d5d486" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc9: LABEL="movies" UUID="90ae3f6a-46b2-485a-886d-e4c203491907" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc10: LABEL="120backup" UUID="3dff9abc-88c0-47dc-bd2c-f3f991acab69" TYPE="ext3"
/dev/sdc11: LABEL="storage00" UUID="f0320f20-48d5-4ddb-89ed-9da4676aefa4" TYPE="ext3"

I use the same /etc/fstab for all my installations, editing only the LABEL=<name> of the / partition entry, to mount the correct partition. I use the same external drives that hold all my installations on various computers, so those entries that are commented out with a # at the beginning of the entry are partitions on the internal drives of machines other than the one I'm presently using.

Note that blkid shows the LABEL=<name> in quotes, but the quotes are not used in /etc/fstab.

[root@fatman ~]# mount |grep sd
/dev/sda9 on / type ext4 (rw,noatime)
/dev/sda13 on /share1 type ext4 (rw,nosuid,nodev,noatime)
/dev/sda12 on /movies2 type ext3 (rw,nosuid,nodev,noatime)
/dev/sda5 on /home/polack/Documents type ext3 (rw,nosuid,nodev,noatime,user=polack)
/dev/sdc5 on /home/polack/Documents2 type ext3 (rw,nosuid,nodev,noatime,user=polack)
/dev/sdc6 on /share9 type ext3 (rw,nosuid,nodev,noatime,user=polack)
/dev/sdc9 on /movies type ext3 (rw,nosuid,nodev,noatime,user=polack)

Note that the last four results above show user=polack, indicating they are partitions mounted by my normal user.
« Last Edit: January 11, 2012, 09:42:10 PM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline Proletariat

  • Full Member
  • ***
  • Posts: 51
    • My Bike
Re: Stop Drives AutoMount at Startup - How?
« Reply #26 on: January 11, 2012, 09:57:06 PM »
Code: [Select]
# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8 /mnt/win-c ntfs-3g rw,user,noauto,exec,umask=000 0 0
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9 /mnt/win-d ntfs-3g rw,user,noauto,exec,umask=000 0 0

Back to that. When using LABEL because of the space in the names the last 0 was red. Didn't work.

I've doubled check the number, even pasted them in. Still does not work.

Adding the whole fstab file just in case.
Code: [Select]
# Entry for /dev/sdb1 :
UUID=2fc71f32-bab2-4a7d-8f7a-64aca19687a8 / ext4 acl,relatime 1 1
# Entry for /dev/sdb5 :
UUID=653e47fe-e2be-4279-b851-7c8c111c3ac4 /home ext4 acl,relatime 1 2
none /proc proc defaults 0 0
# Entry for /dev/sdb6 :
UUID=9007db2f-3bed-4d8f-ae3e-def9e0dda6ce swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
# Entry for /dev/sda1 :
UUID=842ac5062ac4f5e8 /mnt/win-c ntfs-3g rw,user,noauto,exec,umask=000 0 0
# Entry for /dev/sda2 :
UUID=b65ec62b5ec5e3e9 /mnt/win-d ntfs-3g rw,user,noauto,exec,umask=000 0 0
KDE4 FullMonty 2011

Offline Proletariat

  • Full Member
  • ***
  • Posts: 51
    • My Bike
Re: Stop Drives AutoMount at Startup - How?
« Reply #27 on: January 14, 2012, 06:03:25 PM »
Just wanted to say thanks everyone for the replies.

I ended up 'hiding' the drives through dolphin. They were still ready for mounting though /media but now unseen in the left plane.

I learnt a lot through this thread.  :)
KDE4 FullMonty 2011