Skip to content
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

It's pretty important to note that OUTPUT=ISO with file:// will wipe everything on that device #2496

Closed
JeffVeit opened this issue Sep 20, 2020 · 2 comments
Labels
not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question

Comments

@JeffVeit
Copy link

Relax-and-Recover (ReaR) Issue Template

Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):

  • ReaR version ("/usr/sbin/rear -V"):

Relax-and-Recover 2.5 / Git

  • OS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"):

OS_VENDOR=Ubuntu
OS_VERSION=20.04

  • ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):

OUTPUT=ISO
OUTPUT_URL=file:///media/garth/Elements/rear/mouse/

  • Hardware (PC or PowerNV BareMetal or ARM) or virtual machine (KVM guest or PoverVM LPAR):

PC.

  • System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device):

Intel 64.

  • Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot):

UEFI

  • Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):

Local disk - USB interface. Portable backup device.

  • Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,SIZE,MOUNTPOINT" or "lsblk" as makeshift):

I don't think this is relevant to the issue.

  • Description of the issue (ideally so that others can reproduce it):

Plugged a Western Digital Elements portable hard drive into my system. Configured rear to output an ISO to it, into a subdirectory, specially for the purpose. Ran rear mkrescue. rear deleted all the directories and files on the device when it output, leaving only the rear subdirectory.

This is not ideal.

A very prominent note that this combination will delete everything on the disk would be a good idea.

  • Workaround, if any:

Nope. Some years of backups are gone.

  • Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files):

To paste verbatim text like command output or file content,
include it between a leading and a closing line of three backticks like

```
verbatim content
```
@JeffVeit
Copy link
Author

I'm wrong: this is either a rights problem across multiple computers, or a feature of WD Elements. Nothing to see here; nothing was deleted. I just couldn't see it. Nothing to do with rear at all.

Apologies for the incorrect report.

@jsmeix jsmeix added not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question labels Sep 21, 2020
@jsmeix
Copy link
Member

jsmeix commented Sep 21, 2020

@JeffVeit
FYI:

When you intend to use a separated disk only for ReaR via the USB config variables
cf. the OUTPUT=USB section in usr/share/rear/conf/default.conf
https://github.com/rear/rear/blob/master/usr/share/rear/conf/default.conf#L776
then the ReaR documentation tells about using the rear format workflow
once as precondition setup step to prepare the whole disk for ReaR, cf.
http://relax-and-recover.org/documentation/getting-started

The rear format workflow will destroy all previous data on the disk.
But in this case there is a user dialog that tells about it and asks
for confirmation (unless you had specified the -y/--yes option), cf.
https://github.com/rear/rear/blob/master/usr/share/rear/format/USB/default/200_check_usb_layout.sh#L64
and

# usr/sbin/rear format -- --help
Use 'rear format [ -- OPTIONS ] DEVICE' like 'rear -v format -- --efi /dev/sdX'
Valid format workflow options are: -e/--efi -f/--force -y/--yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not ReaR / invalid The root cause is not in the ReaR code or ReaR is misused. support / question
Projects
None yet
Development

No branches or pull requests

2 participants