Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Cloned OS onto 3TB storage instead of USB stick

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
I messed up bad
Posts: 26
Joined: 2017-06-05 04:49

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

#46 Post by I messed up bad »

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

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

#47 Post by orythem27 »

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.

I messed up bad
Posts: 26
Joined: 2017-06-05 04:49

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

#48 Post by I messed up bad »

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

#49 Post by I messed up bad »

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)....

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

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

#50 Post by dasein »

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.

I messed up bad
Posts: 26
Joined: 2017-06-05 04:49

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

#51 Post by I messed up bad »

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.

vmclark
Posts: 187
Joined: 2008-07-30 15:16
Has thanked: 1 time

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

#52 Post by vmclark »

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.

I messed up bad
Posts: 26
Joined: 2017-06-05 04:49

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

#53 Post by I messed up bad »

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.

v&n
Posts: 624
Joined: 2015-02-04 02:57

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

#54 Post by v&n »

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?

I messed up bad
Posts: 26
Joined: 2017-06-05 04:49

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

#55 Post by I messed up bad »

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

#56 Post by I messed up bad »

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.

Post Reply