Cloned OS onto 3TB storage instead of USB stick

Help with issues regarding installation of Debian

Re: Cloned OS onto 3TB storage instead of USB stick

Postby I messed up bad » 2017-07-02 05:25

ok so i did this

(parted) sudo mount -o loop,ro,offset=798718175232 '/media/white1/Seagate Expansion Drive/shaneBKP/shane.img' /mnt

and heres what i got... which i assume is just a list of commands, implying that its not happy with my input?


align-check TYPE N check partition N for TYPE(min|opt) alignment
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
align-check TYPE N check partition N for TYPE(min|opt) alignment
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
align-check TYPE N check partition N for TYPE(min|opt) alignment
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
align-check TYPE N check partition N for TYPE(min|opt) alignment
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
align-check TYPE N check partition N for TYPE(min|opt) alignment
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
align-check TYPE N check partition N for TYPE(min|opt) alignment
help [COMMAND] print general help, or help on COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table, available devices, free space, all found partitions, or a particular partition
quit exit program
rescue START END rescue a lost partition near START and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition NUMBER
unit UNIT set the default unit to UNIT
version display the version number and copyright information of GNU Parted
(parted)




extra info... here was the output from parted earlier... note that file system doesnt have anything under it? testdisk chose to write the partition as FAT12 which is a mystery unto itself but thats what i'm working with now... trying to see if the image has a useful 3TB approx partition with filesystem present


Model: (file)
Disk /media/white1/Seagate Expansion Drive/shaneBKP/shane.img: 3000590401536B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 798718175232B 2909225037311B 2110506862080B primary
I messed up bad
 
Posts: 26
Joined: 2017-06-05 04:49

Re: Cloned OS onto 3TB storage instead of USB stick

Postby orythem27 » 2017-07-02 05:47

I messed up bad wrote:ok so i did this
(parted) sudo mount -o loop,ro,offset=798718175232 '/media/white1/Seagate Expansion Drive/shaneBKP/shane.img' /mnt

The command "sudo mount -o ...." is meant to be executed from the operating system shell, not in "parted".

It seems that you are still far from reasonably comfortable under Linux. Since you are recovering important data, spare some time on Linux basics would certainly greatly reduce the risk of another human error.
User avatar
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Cloned OS onto 3TB storage instead of USB stick

Postby I messed up bad » 2017-07-02 07:34

mate, i will never be reasonably comfortable under linux. it's not possible to do anything without following a guide, and even completing the instructions usually involves googling one or two unforeseen minor dramas.
I messed up bad
 
Posts: 26
Joined: 2017-06-05 04:49

Re: Cloned OS onto 3TB storage instead of USB stick

Postby I messed up bad » 2017-07-02 07:39

ok i got

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

so, my next step is probably to make this image again (since i suspect it was damaged in a semi-unrelated HDD drama)....
I messed up bad
 
Posts: 26
Joined: 2017-06-05 04:49

Re: Cloned OS onto 3TB storage instead of USB stick

Postby dasein » 2017-07-02 09:02

Although having another go-around won't hurt you any (all you'll lose is time), remember that this was always a bit of a "hail mary." Some/most/all of the data may be unrecoverable.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Cloned OS onto 3TB storage instead of USB stick

Postby I messed up bad » 2017-07-02 09:38

indeed. although photorec churned up plenty of files when i let it go for about five minutes so as a last resort i can produce a mess of files, which is a WHOLE heck of a lot better than nothing.
I messed up bad
 
Posts: 26
Joined: 2017-06-05 04:49

Re: Cloned OS onto 3TB storage instead of USB stick

Postby vmclark » 2017-07-02 14:20

Just to throw this into the mix. When testdist, photorec had completely failed, Recuva save most of my loss. It needs to be launched from Windows.
vmclark
 
Posts: 154
Joined: 2008-07-30 15:16

Re: Cloned OS onto 3TB storage instead of USB stick

Postby I messed up bad » 2017-07-03 05:16

Thanks but it can it work from img files?

I was looking to try some windows software but many of them just show the physical drives with no other options.

Also, the windows forum i asked was about as useful as a one-legged men in an arse-kicking contest.
I messed up bad
 
Posts: 26
Joined: 2017-06-05 04:49

Re: Cloned OS onto 3TB storage instead of USB stick

Postby v&n » 2017-07-03 17:20

I am most curious about what the print command from (parted) prompt showed you. Can you copy-paste it here?

I'm wondering whether parted could recognize any known partition types (we're expecting 'ntfs', but let's see what parted sees). If it could, why can't mount command then?
v&n
 
Posts: 595
Joined: 2015-02-04 02:57

Re: Cloned OS onto 3TB storage instead of USB stick

Postby I messed up bad » 2017-07-05 22:06

I messed up bad wrote:

extra info... here was the output from parted earlier... note that file system doesnt have anything under it? testdisk chose to write the partition as FAT12 which is a mystery unto itself but thats what i'm working with now... trying to see if the image has a useful 3TB approx partition with filesystem present


Model: (file)
Disk /media/white1/Seagate Expansion Drive/shaneBKP/shane.img: 3000590401536B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 798718175232B 2909225037311B 2110506862080B primary


Didnt display properly but fyi this is AFTER testdisk wrote the partition as fat12, in addition to seeing those small mac hfs areas... i think we can agree this us unexpected amd strange and at this point i want to start afresh
I messed up bad
 
Posts: 26
Joined: 2017-06-05 04:49

Re: Cloned OS onto 3TB storage instead of USB stick

Postby I messed up bad » 2017-09-09 21:21

Well i got the same results.. Fat12 on intel search and mac hfs on efi gpt search. Ive consulted cgrenier on remaining options before proceeding to photorec contingency.

One option i can think is using windows so i can use the latest version of testdisk.. see what cgrenier says.
I messed up bad
 
Posts: 26
Joined: 2017-06-05 04:49

Previous

Return to Installation

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable