New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty SD card slot appears as /dev/sdb disk without partition type #2810
Comments
|
@mdbr000 This error exit is new since my recent in particular the last test which is currently online at It tests based on the "Disk layout file syntax" description in None of the values is specified as optional there I will have to thoroughly inspect the code When there are missing mandatory values in disklayout.conf If "rear recover" actually did work for you from your |
|
@jsmeix It sounds like this might be a change/fix that you'll want to make in mainline. For now, I will compile a version that comments out the I am still having issues with recovery, but that is a separate topic. Again, thank you. |
|
@mdbr000 |
|
I did a test with a manually modified i.e. I removed the partition type label is the only entry related to Then I did a "rear -D recover" which worked. Except from var/lib/rear/layout/diskrestore.sh So it works in the special case when there is |
In layout/save/GNU/Linux/200_partition_layout.sh do not error out when there is no partition label type value for a 'disk' entry in disklayout.conf because "rear recover" works in a special case without partition label type value when there is only a 'disk' entry but nothing else for this disk exists in disklayout.conf which can happen when /dev/sdX is an empty SD card slot without medium, see #2810
|
Via |
|
@mdbr000 With our current ReaR upstream GitHub master code because usually a missing partition label type value Here "'rear recover' failure" also means when a disk gets |
|
I was also wondering how I could somehow reproduce I am not a SD card user (I don't have a SD card medium). So I guess the SD card reader in this issue here I played around with an artificial "dangling" block device node and /dev/sdq was just ignored by "rear mkrescue" (as it should). So I manually modified a 'disk' entry in disklayout.conf |
|
The difference with a "dangling" device node is that opening it will report |
|
With "basically useless and misleading" I meant how it behaves With a "normal" disk when e.g. /dev/sda is there In contrast removable media devices behave different because I wonder for what /dev/sdb could be useful without medium? In the end for ReaR this issue means: |
|
FYI and with medium (which got automatically mounted) |
You can ask for its manufacturer and capabilities, for example. With the device node, it is easier to map what devices you have. If the device has a loadable tray, you can also issue commands like open/close the tray and load the medium (this is the case for optical and similar media), which would be difficult without a device node. It seems that the empty DVD drive behaves similarly to the empty SD card reader, but that's probably not so useful for ReaR testing, because I suppose that ReaR ignores CD/DVD drives (would it help to create a symlink |
|
With a /dev/sdq -> /dev/sr0 symlink: Without /dev/sdq -> /dev/sr0 symlink: |
|
@pcahyna |
|
I am trying to create |
|
looking at the output here, |
|
@pcahyna FYI: I have nothing about 'rtsx' in There is no device node for it (neither /dev/sd* nor /dev/mmc*) I assume this is expected because I do not have a SD card. |
|
@jsmeix I have a similar device and it behaves the same way. I decided I will not try further to emulate an empty @mdbr000 can you please send the |
|
I postponed this issue to ReaR 2.8 because |
|
Stale issue message |
|
Because I have no removable media device |
|
Reopening because of |
|
Stale issue message |
|
Stale issue message |
ReaR version ("/usr/sbin/rear -V"):
Relax-and-Recover 2.6 / GitOS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"):
Hardware vendor/product (PC or PowerNV BareMetal or ARM) or VM (KVM guest or PowerVM LPAR):
Dell Precision 7820System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device):
x86_64Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot):
UEFI / GRUBStorage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):
SSDStorage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,LABEL,SIZE,MOUNTPOINT"):
rear -d -v mkbackupfails with the following messages due to /dev/sdbInsert an SD card into /dev/sdb such that it appears populated with a block device. Not a sustainable workaround for scheduled backups. Potential issue for when trying to restore the machine later.
The text was updated successfully, but these errors were encountered: