/home/bill/bin/Suse linux notes (ThinkPad).txt www.BillHowell.ca 19Apr2021 initial Suse - USB tethering to cellphone ONLY wireless!!! (or ethernet) - don't use public access (bars etc) To unmount a USB drive : $ sudo umount /run/media/bill/Midas/ trash folder (~/.local/share/Trash/) Dolphin menu -> View -> Panels -> click on Places in places, right-click on Trash -> empty 24************************24 08********08 23Jul2021 packman update not working (don't want it!! 08********08 17May2021 https://stackoverflow.com/questions/4047011/restore-trash-item-to-original-location-linux Restore trash item to original location - Linux - Stack ... +--+ .Trash is just a (hidden) directory. All you need to do is move it out: mv ~/.Trash/foo ~/ or using the file browser of your desktop environment, open the trash and drag it out. +--+ As far as I know, in the trash folder (~/.local/share/Trash/), there is a folder with the files (files/) and a folder with the file information (info/). Each file has an associated .trashinfo file in which the original path and time of deletion are stored. You can use that to restore the file to its original location. answered Oct 28 '10 at 20:47 TehWan 08********08 14May2021 Suse [installation,update] problem YAST Software update -> Cannot access installation media Online update config -> Cannot access installation media hd:/?device=/dev/disk/by-id/usb-_USB_DISK_3.0_07038C4D9D267443-0:0-part2 (Medium 1). Check whether the server is accessible. +-----+ https://forums.opensuse.org/showthread.php/548068-Update-Software-Updater-it-looks-for-old-OpenSUSE-version-after-moving-from-15-1-to-15-2 17-Dec-2020, 10:15 #1, oakld Default Update Software Updater - it looks for old OpenSUSE version after moving from 15.1 to 15.2 Hello, I updated OpenSuSE from Leap 15.1 to 15.2, all worked like a charm, repositories were updated to 15.2 versions in the process. There's no repository for 15.1 in my YaST->Repositories. Even then, I get error messages from Software Update tool which is sitting in the notification part of the task bar: Code: Signature verification for Repository Leap_15.1 failed The settings of this tool has virtually no real options. How can I force it to use the new repositories? Where can one set this tool? It's name is so generic, that nothing meaningful can be googled about it. Oak >> no answer 08********08 14May2021 QNial setup problems unable to boot - cold shutdown, wait 30 min, then OK? directories - specific to LMDE2, need to adapt to ThinkPad, RaspPi kwrite - must make default for [txt,ndf,etc, etc] QNial d_temp & host_result? - I fixed d_temp -> /mnt/ramdisk/ XOR - already defined as system name? - yup (weird not on LMDE2) 08********08 14May2021 backupHD_to_ThinkPad.sh can't open log files with kwrite? $ cat '/home/bill/bin/backup LMDE2 log cumulative.txt' >> OK, I see output $ cat '/home/bill/bin/backup PROJECTS log cumulative.txt' $ cat '/home/bill/bin/backup webRawe log cumulative.txt' >> after cold boot, it worked 08********08 03May2021 OpenSuse upgrade Leap 15.1 -> 15.2 +-----+ https://en.opensuse.org/SDB:System_upgrade +--+ 1. Check if the update repository already exists and is enabled and update before upgrading. $ sudo zypper modifyrepo --enable openSUSE-Leap-15.1-1 [sudo] password for root: Repository 'openSUSE-Leap-15.1-1' has been successfully enabled. ~ $ sudo zypper modifyrepo --enable repo-debug Repository 'repo-debug' has been successfully enabled. ~ $ sudo zypper modifyrepo --enable repo-debug-non-oss Repository 'repo-debug-non-oss' has been successfully enabled. ~ $ sudo zypper modifyrepo --enable repo-debug-update Repository 'repo-debug-update' has been successfully enabled. ~ $ sudo zypper modifyrepo --enable repo-debug-update-non-oss Repository 'repo-debug-update-non-oss' has been successfully enabled. +--+ 2. Add update-repository $ sudo zypper addrepo --check --refresh --name 'openSUSE-Leap-15.1-Update' http://download.opensuse.org/update/leap/15.1/oss/ repo-update Adding repository 'openSUSE-Leap-15.1-Update' ...............................................................................[error] Repository named 'repo-update' already exists. Please use another alias. >> OK, already existed! +--+ 3. Move /var/cache to a separate subvolume Note: If the root file system is not Btrfs or you're upgrading from 15.0 or later version, then skip this section and continue to step 4. $ df / Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 480269308 202141468 277417412 43% / >> I am upgrading from 15.1 so skip all section 3 +--+ 4. Update system to the latest packages $ sudo zypper refresh [sudo] password for root: Problem retrieving files from 'openSUSE-Leap-15.1-1'. Empty destination in URI: hd:/?device=/dev/disk/by-id/usb-_USB_DISK_3.0_07038C4D9D267443-0:0-part2 Please see the above error message for a hint. Skipping repository 'openSUSE-Leap-15.1-1' because of the above error. Problem retrieving files from 'Packman Repository'. Permission to access 'http://packman.inode.at/suse/openSUSE_Leap_15.1/repodata/repomd.xml' denied. Please see the above error message for a hint. Skipping repository 'Packman Repository' because of the above error. Retrieving repository 'Debug Repository' metadata ............................................................................[done] Building repository 'Debug Repository' cache .................................................................................[done] Retrieving repository 'Debug Repository (Non-OSS)' metadata ..................................................................[done] Building repository 'Debug Repository (Non-OSS)' cache .......................................................................[done] Retrieving repository 'Update Repository (Debug)' metadata ...................................................................[done] Building repository 'Update Repository (Debug)' cache ........................................................................[done] Retrieving repository 'Update Repository (Debug, Non-OSS)' metadata ..........................................................[done] Building repository 'Update Repository (Debug, Non-OSS)' cache ...............................................................[done] Repository 'Non-OSS Repository' is up to date. Repository 'Main Repository' is up to date. Repository 'Source Repository' is up to date. Repository 'Source Repository (Non-OSS)' is up to date. Repository 'Main Update Repository' is up to date. Repository 'Update Repository (Non-Oss)' is up to date. Some of the repositories have not been refreshed because of an error. >> NUTS - errors!!! But this is related to old 15.1 repository. Maybe it's now irrelevant (stupid error messages if that is the case) +--+ sudo zypper update [sudo] password for root: Refreshing service 'patextract'. Problem retrieving the repository index file for service 'patextract': [|] Parse error: repoindex.xml[18] Couldn't find end of Start Tag script History: - Parse error: repoindex.xml[18] Couldn't find end of Start Tag script - repoindex.xml[18] attributes construct error - repoindex.xml[18] Specification mandates value for attribute async Warning: Skipping service 'patextract' because of the above error. Problem retrieving files from 'openSUSE-Leap-15.1-1'. Empty destination in URI: hd:/?device=/dev/disk/by-id/usb-_USB_DISK_3.0_07038C4D9D267443-0:0-part2 Please see the above error message for a hint. Warning: Skipping repository 'openSUSE-Leap-15.1-1' because of the above error. Problem retrieving files from 'Packman Repository'. Permission to access 'http://packman.inode.at/suse/openSUSE_Leap_15.1/repodata/repomd.xml' denied. Please see the above error message for a hint. Warning: Skipping repository 'Packman Repository' because of the above error. Some of the repositories have not been refreshed because of an error. Loading repository data... Warning: Repository 'Update Repository (Debug)' appears to be outdated. Consider using a different mirror or server. Warning: Repository 'Main Update Repository' appears to be outdated. Consider using a different mirror or server. Reading installed packages... Nothing to do. +--+ Who knows? try reboot >> Seems to be still stuck in Leap 15.1 Forget it for now, may have to download full ISO for proper upgrade? That takes way too much time. 08********08 20Apr2021 rumble.com https://rumble.com/vf8nu7-mike-lindells--latest-d 08********08 19Apr2021 simply restructure laptop directories by delete all and copy backup! otherwise far too much work I will lose some ThinkPad-only [files, direcories] rm -f option to avoid questions about write-protected files etc - just delete! $ rm -rf "/home/bill/LMDE2/" $ rm -rf "/home/bill/HOWELL_BASE/" $ rm -rf "/home/bill/PROJECTS/" $ rm -rf "/home/bill/SWAPPER/" $ rm -rf "/home/bill/Website - raw/" $ d_backup="" $ cp -rup "/run/media/bill/WD_3.6Tb/210417 PROJECTS monthly_backup/." "/home/bill/PROJECTS/" $ cp -rup "/run/media/bill/WD_3.6Tb/210417 webRawe monthly_backup/." "/home/bill/Website - raw/" $ cp -rup "/run/media/bill/WD_3.6Tb/210417 LMDE2 monthly_backup/." "/home/bill/LMDE2/" 14:39 cp PROJECTS *********** 04Mar2020 Problems with "backup computer [to,from] TravelUSB.sh" 1. Permission denied : +-----+ sync --exclude-from="/home/bill/PROJECTS/bin/backup computer [to,from] TravelUSB excludes.txt" "/run/media/bill/SAMSUNG_G4/SWAPPER/Website/Cool stuff/" "/home/bill/SWAPPER/Website/Cool stuff" >"/mnt/ramdisk/backup computer [to,from] TravelUSB log.txt" /home/bill/PROJECTS/bin/standard header.sh: line 26: /mnt/ramdisk/backup computer [to,from] TravelUSB log.txt: Permission denied cat: '/mnt/ramdisk/backup computer [to,from] TravelUSB log.txt': No such file or directory +-----+ >>properly mount ramdisk 2. skipping directory . +-----+ rsync --exclude-from="/home/bill/PROJECTS/bin/backup computer [to,from] TravelUSB excludes.txt" "/run/media/bill/SAMSUNG_G4/PROJECTS/References - stuff/" "/home/bill/PROJECTS/References - stuff" >"/mnt/ramdisk/backup computer [to,from] TravelUSB log.txt" skipping directory . +-----+ >> Oops - caused by moving script code so options undefined... *********** 02Mar2020 update error message I can't get internet (again!!) Update error : Download (curl) error for 'http://packman.inode.at/suse/openSUSE_Leap_15.1/repodata/repomd.xml': Error code: Connection failed Error message: Could not resolve host: packman.inode.at *********** 04Jan2020 search "Suse Linux and how do I unmount a USB drive?" https://unix.stackexchange.com/questions/45820/how-to-umount-a-usb-drive I want to know how to umount my USB drive via command line. I am using Ubuntu 12.04 LTS 32-bit. mount usb-drive edited Aug 19 '12 at 10:15 student asked Aug 19 '12 at 8:05 Pranit Bauva Suppose your usb drive is mounted to /media/usb then it would be sufficient to do sudo umount /media/usb Suppose the your usb is /dev/sdb1 then you could also do sudo umount /dev/sdb1 You may also have a look at the anwers of one of my questions, how to umount all attached usb devices with a single command: https://unix.stackexchange.com/questions/43594/umount-all-attached-usb-disks-with-a-single-command edited Apr 13 '17 at 12:36 Community♦ answered Aug 19 '12 at 8:39 student The command sudo fdisk -l can be helpful if you don't know where a drive is mounted. – Brian Z Mar 13 '15 at 4:12 I tried : $ sudo fdisk -l [sudo] password for root: +-----+ Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Disk model: Samsung SSD 850 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x7f5a948c Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 960540669 960538622 458G 83 Linux /dev/sda2 960540670 976771071 16230402 7.8G 5 Extended /dev/sda5 960540672 976771071 16230400 7.8G 82 Linux swap / Solaris Disk /dev/sdb: 28.7 GiB, 30752000000 bytes, 60062500 sectors Disk model: Ultra Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x9c3c0ebe Device Boot Start End Sectors Size Id Type /dev/sdb1 32 60062499 60062468 28.7G 83 Linux Disk /dev/sdc: 7.5 GiB, 8004829184 bytes, 15634432 sectors Disk model: USB Flash Drive Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xc3072e18 Device Boot Start End Sectors Size Id Type /dev/sdc1 32 15634431 15634400 7.5G 83 Linux Disk /dev/sdd: 60.1 GiB, 64541949952 bytes, 126058496 sectors Disk model: USB Flash Disk Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/sdd1 63 126058495 126058433 60.1G c W95 FAT32 (LBA) +-----+ >> CRAZY!! This doesn't show the device name!!! would have to use gparted $ sudo umount /run/media/bill/Midas/ >> OK, this worked. I don't know what happens if files are open... # enddoc