Every time I do a reboot I have 1 external drive that disappears until I go into, I think it's file manager, click on the drive, and then my external drive gets attached.
Until I do that all the links that I have to it don't work.
I would prefer that when I do a restart that all my files are visible.
thanks
how do I get Linux Mint to reattached an external drive
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
how do I get Linux Mint to reattached an external drive
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: how do I get Linux Mint to reattached an external drive
I think it must be an option with the mount command but I dont know which one.
This is what my present mount shows.
The device in question is sdb1
This is what my present mount shows.
The device in question is sdb1
Code: Select all
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=1968580k,nr_inodes=492145,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=402988k,mode=755)
/dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=17039)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=402984k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdi1 on /media/hextejas/cbb92d11-8ef1-4baa-8e4f-ff01424c5176 type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
/dev/sdc1 on /media/hextejas/6042e901-7b89-4603-9c21-5a6454ece145 type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
/dev/sr0 on /media/hextejas/UC201501135A_EN1D type udf (ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,uhelper=udisks2)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
/dev/sdb1 on /media/hextejas/MyData type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
hextejas@corky-pc:~$
Re: how do I get Linux Mint to reattached an external drive
Do I need to change the fstab file ?
It looks pretty barren.
It looks pretty barren.
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=cc1e451d-532e-48c0-b2fe-b8a52603de1c / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=5D21-9113 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
Re: how do I get Linux Mint to reattached an external drive
Hi,
What is happening here is exactly what the system is designed to do. You want something different.
To ensure that a drive is reconnected after booting, add it to your fstab.
The most robust way is by using the drive's partition **filesystem** UUID.
Use one 'mount' command per partition. Don't forget that the mountpoints must exist.
Connect the drive to the computer. Run the following: (redirected to a text file.).
Now edit your 'fstab'. (using xed here.)
Add the line **after the system partitions** i.e at the bottom.. otherwise the mountpoints won't exist.
You can use 'mount -a' to force the fstab to be re-read (if the external drive had been disconnected).
Adjust your mount parameters to suit your own requirements ('man mount').
Bodge99
What is happening here is exactly what the system is designed to do. You want something different.
To ensure that a drive is reconnected after booting, add it to your fstab.
The most robust way is by using the drive's partition **filesystem** UUID.
Use one 'mount' command per partition. Don't forget that the mountpoints must exist.
Connect the drive to the computer. Run the following: (redirected to a text file.).
Code: Select all
blkid > myUUIDs.txt
Code: Select all
sudo xed /etc/fstab
Code: Select all
# / was on /dev/sda5 during installation
UUID=cc1e451d-532e-48c0-b2fe-b8a52603de1c / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=5D21-9113 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
# My added external drive. Partition 1
UUID=aaaaaaaa-1111-bbbb-ccccc-dddddddd /home/username/Cat-videos ext4 defaults 0 3
# My added external drive. Partition 2
UUID=bbbbbbbb-2222-cccccccc-33333-eeeeeee /home/username/Dog-videos ext4 defaults 0 3
Adjust your mount parameters to suit your own requirements ('man mount').
Bodge99