Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.suse    |    Suse is actually not that bad    |    138,051 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 136,298 of 138,051    |
|    Sidney_Kotic to All    |
|    Re: USB automount    |
|    15 May 17 21:00:14    |
      From: kant@have.it              Sorry for the length. The examples are strange, 3 different computers with 3       different post boot /dev layouts. Maybe I'm just over complicating things.              > Why did you think that fstab would be modified by login?              I would think not. Part of the fstab looks like this:       UUID=c9b1c553-03b5-406d-bd1e-7591aa0c659f swap swap defaults 0 0       UUID=ee9017b6-622c-42b9-b42e-f6a77981f1a7 / btrfs defaults 0 0       UUID=ee9017b6-622c-42b9-b42e-f6a77981f1a7 /boot/grub2/i386-pc btrfs       subvol=@/boot/grub2/i386-pc 0 0              Which is OK, a df says this:       /dev/sda7 41G 24G 15G 62% /       /dev/sda7 41G 24G 15G 62% /.snapshots       /dev/sda7 41G 24G 15G 62% /var/lib/mariadb       ...       /dev/sdb1 3.7T 2.7T 1.1T 72% /run/media/sidney/4TB              Which should be swell, but sometimes during the boot process it takes /dev/sdb       and uses it instead of /dev/sda.              Then when the USB is mounted it uses /dev/sda, unless I don't login in which       case it a df will show me nothing about the USB.              Whereas:       lsblk -fi       NAME FSTYPE LABEL UUID MOUNTPOINT       sda       |-sda1 vfat 7628-FF10 /boot/efi       |-sda2       |-sda3 ntfs Windows 0EC02BA6C02B934F       |-sda4 ntfs Windows RE tools 442EEABB2EEAA560       |-sda5 ntfs RECOVERY 6A966749966714BB       |-sda6 swap c9b1c553-03b5-406d-bd1e-7591aa0c659f [SWAP]       |-sda7 btrfs ee9017b6-622c-42b9-b42e-f6a77981f1a7 /var/opt       `-sda8 xfs d6b8a04f-a23e-4462-b3d1-964a395178d8 /home       sdb       `-sdb1 ntfs 4TB 7CD4EE17D4EDD404 /run/media/sidney/4TB       sdc       `-sdc1 ntfs PNY16GB 740C30A17C89431B /run/media/sidney/PNY16GB       sr0              Will tell me where the USBs are (mounted in this case), and then I can use the       after.local to mount the device on a known mount point. I'm not sure what to       put into the fstab, especially since things seem to change during the boot       process.:              This is what an unmounted USB on another computer looks like:       sda       |-sda1       `-sda2 btrfs 1TB 9ba44c12-6c45-41f3-9737-67ec889469c5              With two or three greps and a cut I can get this:       sdb2 btrfs 1TB 9ba44c12       The important information is in the first 3 fields. More to be done but I can       work on that tomorrow and ultimately I think I can use the after.local to mount       the device on a known mount point so that NFS can share it. Irregardless of       whether or not someone is logged in to put it into the /run/media/who/label or       they're kind of somewhere in the system and I have to find it. Which is what       this whole debacle is about.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca