Transferring .dat file contents as Changes file on new drive

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Transferring .dat file contents as Changes file on new drive

Post#1 by jimwg » 03 May 2016, 12:14

Greetings!

I have Porteus 3.1 with a 5gig .dat file installed on a FAT32 8gig flash drive. I wish to reformat the drive to ext4 and so do away with the .dat container file scheme. Is there a way I can extract or transplant the .dat file's contents to the new flash (as a new Changes file?) if I briefly transfer the .dat file to another linux drive for safekeeping during the process?

Thanks for any hints!

Jim in NYC

donald
Full of knowledge
Full of knowledge
Posts: 1161
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Transferring .dat file contents as Changes file on new d

Post#2 by donald » 03 May 2016, 13:42

Hi Jim
Boot into always fresh mode so the save.dat is not in use.
"mloop" the save.dat file to get access to the files
Example:

Code: Select all

root@localhost:~# mloop /mnt/sda2/temp/porteussave.dat
using /dev/loop15

Please wait while i gather some info ....

#################################
Your data file has been mounted at:
/mnt/loop

You can unmount it by typing uloop

Here is a list of the files:
....snip....
copy the content to the new location.(changes folder) on the physical device.

"uloop" the save.dat file

Code: Select all

root@localhost:~# uloop /mnt/sda2/temp/porteussave.dat
/mnt/loop has been unmounted
adjust the changes= path in porteus.cfg

NOTE:
because i do not use save.dat files, i can't say for sure that this will work.
(please make a Backup)

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Transferring .dat file contents as Changes file on new d

Post#3 by jimwg » 08 May 2016, 20:50

Thanks for tip! Will report soon.

Jim in NYC

Post Reply