You are not logged in.

#1 2021-11-27 16:09:53

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

Seagate USB External Drive

A few months ago I bought a Seagate Expansion Portable Drive 1TB to replace or augment my OLD Verbatium CLON250GB that I use as my "backup device".

Today I saw twoions reply in this post:

twoion wrote:

Everything I put data on I don't like to buy from shady sources (which IMO ebay is). There are only very few manufacturers who make good chipped and spinning storage, I'd stick to them. I'd rather buy a cheap CPU than skimp on the persistence layer.

and I remembered I have had a questions in the back of my mind to ask since I bought it.

Plug in the Verbatium and it mounts, then I unmount when finished backing up.

Plug in the SEAGATE and it automatically adds itself to my /etc/fstab file

Question:

How do I stop this external drive from adding itself to my /etc/fstab file

Searching has failed me.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

Offline

#2 2021-11-27 16:46:23

eight.bit.al
Member
From: Prison
Registered: 2015-10-01
Posts: 1,289

Re: Seagate USB External Drive

^

chattr +i fstab

does the trick.

8bit

Last edited by eight.bit.al (2021-11-27 17:00:47)

Offline

#3 2021-11-27 19:29:13

rbh
Moderator
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 1,514

Re: Seagate USB External Drive

eight.bit.al wrote:

^

chattr +i fstab

does the trick.

8bit

That is a symtomatic treatment. Better to cure, if possible.

@Sector11, i hate automount. I want to control when and where devices is mounted. Some devices I use often, I have set up in fstab, with options "user,noauto", so I can mount them with "mount /mountpoint".

Disable automount altogether is one option. But, if you vant all other usb-devices to be automounted, there might be some reading to do.

But automount and adding device to fstab, is not BL default behavior. Have you installed autofs? Or configured som udev-rule?


// Regards rbh

Please read before requesting help: Guide to getting help,
Introduction to the Bunsenlabs Lithium Desktop and other help topics under "Help Resources" on the BunsenLabs menu

Offline

#4 2021-11-30 16:27:14

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,947

Re: Seagate USB External Drive

@rbh

1. I do not keep any device plugged in, only plug them in when I want to use them.
2. Thunar is set to mount hot-plugged USB Drives automatically since my #! days.
3.  autofs - not installed
4. Not running BL, just Debian.

EDIT:  Sorry for the delay. Life got in the way.

2nd EDIT:  The script I use to backup:

 30 Nov 21 @ 13:33:00 ~
   $ s11bk
    Syncing /home
      to /media/sector11/disk/S11-Nov/
    Syncing /media/5/
      to /media/sector11/disk/M5/
    Syncing /media/10/
      to /media/sector11/disk/M10/
    Syncing /media/11/
      to /media/sector11/disk/M11/
    Syncing /media/12/
      to /media/sector11/disk/M12/

1. Syncing Complete
 
 To remove a directory
 use r m command: -f -r /media/sector11/disk/S11-MONTH
 
FT-MMOG  M10  M11  M12	M5  Mark  S11-Nov  S11-Oct  S11-Sep  Sector11-readme.txt  sharpbang-wall.png  shebang
 
2. Unmount /media/sector11/disk? (Y|n) 

Last edited by Sector11 (2021-11-30 16:27:53)


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster

Offline

Board footer

Powered by FluxBB