Welcome. An unfortunate introduction to Linux.
Whilst getting an understanding of backups is exemplary, I see several problems:
- as per your second command, the "-x" option is to
extract an already existing tar archive. Your first command should have used "-c" (create) instead.
- it is usually unnecessary (and often dangerous) to use device nodes directly - use mountpoint(s) for safety.
- tar archives are files - you need to specify the filename each time.
Perhaps something like the following would do what you wanted - note the order of parameters
Code:
tar -cf /mnt/boot_backup/boot_backup.tar /boot
As for your problem, I'm surprised that first command did anything at all, but it looks like it opened then closed the device node, and effectively emptied it. From the Centos liveDVD, run these to get some idea of what's what.
Code:
df -hT
ls /run/boot
On that second command, substitute as appropriate to get th on-disk boot partition listed.