Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-16-2017, 09:07 AM   #1
Registered: Nov 2004
Distribution: Ubuntu
Posts: 68

Rep: Reputation: 15
WRITE ONLY MEMORY or where did my backup go?


Did my backup go to nowhere?

I built a NAS with OpenMediaVault. Things were going well and I decided to make a backup. The system drive has two partitions, and there are a pair of drives as a raid mirror (three drives total). On the system drive one partition is where OMV runs and the other partition I thought I sent a backup image using fsarchiver by sending the file to /mnt/backup with the command:

fsarchiver savefs /mnt/backup/alpha.fsa /dev/sdb1

When I went to make the second backup I could not find the first.

alpha.fsa didn't get stored on the partition and the next time I used a similar command but preceded it with:

mkdir /backup
mount /dev/sdb1 /backup
fsarchiver savefs /mnt/backup/bravo.fsa /dev/sdb1

bravo.fsa appears on the partition named backup

Thanks for any replies,
Old 02-16-2017, 10:05 AM   #2
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,938

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
You need to mount a device before you can read/write to its file system.
So the second attempt was correct.

It's strongly recommended that you unmount the device (umount command) when you have finished with it.
This will ensure that all writes are flushed to the device.

You can automate this by listing devices in /etc/fstab - there are tutorials on this.
1 members found this post helpful.
Old 02-16-2017, 10:05 AM   #3
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,818
Blog Entries: 13

Rep: Reputation: 4877Reputation: 4877Reputation: 4877Reputation: 4877Reputation: 4877Reputation: 4877Reputation: 4877Reputation: 4877Reputation: 4877Reputation: 4877Reputation: 4877
That appears to be a correct command, the first version you've used. I've not used fsarchiver, however have you looked at their Quick Start Guide?

It might be helpful to cite the version of fsarchiver you are using. Check the ownership of the mounted file system, and determine whether or not you need to use sudo to be able to successfully complete the archive action.
1 members found this post helpful.
Old 02-16-2017, 04:28 PM   #4
Registered: Nov 2004
Distribution: Ubuntu
Posts: 68

Original Poster
Rep: Reputation: 15
Thank you JeremyBoden & rtmistler. I'll remember to UMOUNT too. I'm still surprised the fsarchiver did not provide an error writing to a device that was not mounted.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: dd Utility - Write and Backup Operating System IMG files on Memory Card with Mac OS X LXer Syndicated Linux News 0 02-26-2015 02:33 AM
How do I write script to backup nhrdls Linux - General 6 08-18-2013 06:43 PM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 08:52 AM
how to write a backup script? joseph2020 Ubuntu 12 06-15-2009 01:36 PM
Backup script to write to file? ctroyp Linux - Newbie 13 01-10-2006 06:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration