Can I convert a USB-stick to an installer without losing data?

2

2

I would like to use my 64GB USB-drive to install Linux on another computer that has no CD drive. I already have some data on the drive (I already have a backup, but split across multiple locations and I have no other 64GB free at the time for another backup).

I used unetbootin earlier, but would I lose the data if I convert the USB drive into an installer with that?

How could I just add the files needed on the stick so I can install Ubuntu from it?

rubo77

Posted 2013-03-15T11:26:24.030

Reputation: 2 822

3First you should backup the data on the device. This will part of any suggestion anyone makes. – Ramhound – 2013-03-15T11:34:06.937

Why the downvote? Sure, I would backup my data if I had important data on the stick. But that was not my question. – rubo77 – 2013-03-18T09:58:45.947

1AFAIK unetbootin does create an installer (because it just copies files off the live CD and writes a boot sector) and furthermore doesn't wipe out the data – nc4pk – 2013-03-18T11:17:00.687

Answers

4

Unetbootin does not simply write the ISO images to the target drive, which would overwrite existing data. Rather, it extracts the contents from the image, copies them, and writes its own boot sector afterwards. A quick test run confirms that Unetbootin keeps existing files in place.

However, while the software may not blindly remove everything when creating a bootable drive, it isn’t cautious about the contents either. This is not unique to Unetbootin. Altering boot sectors is a dangerous operation in which data may be lost anyway, especially from removable drives, which can often be disorganised at this level.

It can be done, and the software you’ve used earlier is very suitable, but the risk of data loss is inevitable. Make backups.

Marcks Thomas

Posted 2013-03-15T11:26:24.030

Reputation: 5 749