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

#31 Post by I messed up bad »

Lads im stuck and hopefully get a quick answer whike I have access to the hardware (meanwhile im looking for answer)

Ive made a *.img and need to mount it such that it is selectable by testdisk!

Ive tried using furius iso mount which mounts it, but not such that testdisk lists it as a selectable media

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#32 Post by dilberts_left_nut »

AdrianTM wrote:There's no hacker in my grandma...

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

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

#33 Post by I messed up bad »

Its mounted in a folder in my home

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#34 Post by dilberts_left_nut »

Tried just adding the path to the image.as an argument to testdisk?

https://www.cgsecurity.org/wiki/Media_Image
AdrianTM wrote:There's no hacker in my grandma...

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

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

#35 Post by I messed up bad »

Thanks I found the answer there.

Here goes!

Im not using the beta because I had trouble compiling with:
./configure

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

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

#36 Post by I messed up bad »

Hmmmm so the quick analysis was slow (as I half expected) and as I got ready to tuck the laptop away for a couple of days it seemed to freeze!

So im taking this image home to put my desktop to the task. Maybe I can even manage to install 7.1 there.

Thanks for the fast response

Im gonna have to donate some $ to debian if/when this is over, for all the help so freely given

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

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

#37 Post by I messed up bad »

What luck that when testdisk froze my laptop it seems to have trashed the hard disk where the image was located, because I get home and the whole drive is unallocated and wont mount. Gparted says its unallocated. Fdisk reports a gpt mismatch or similar, might be able to copy that in later... So I run testdisk on the disk containing the image :roll: and I go in and out of some options and it bloody freezes my PC! :shock:

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

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

#38 Post by v&n »

If it was a linux partition, a quick fsck should be able to fix it. Besides this, all I can say is - "bad luck!" :(

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

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

#39 Post by I messed up bad »

I got the disk working again with testdisk and then using chkdsk in Windows, the image is there I dont know if it got.corrupted or not but the results running testdisk on the image are disappointing

Using the Intel option I got a result that made sense and I almost chose to write the suggested partitions except fat12? Nah fat12 cant be remotely right

Using efi gpt search it suggests six or seven primary partitions 1550 sectors each, all mac hfs. Out of 36000 ectors.

Im doing the deeper search

Fwiw these mac hfs partitions were revealed when I was fixing the 4gb disk which contains the image. I cant upload a photo here but I left them as D and kept the large ms data partition. Now when I search the image with efi those same small mac hfs ALLEGED partitions are all that comes up.

The fat 12 result at least made sense in terms of having two partitions, one being very large. but fat12? Come on this isnt 1990

So pending the deep search efi results I will probably try somw windows software

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

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

#40 Post by I messed up bad »

Its worth mentioning that when testdisk finishes wuicjwsearch and displays the partitions it found, before you hit enter to proceed there is an option to hit L for load backup (not to be confused with backupBS which is part of the next step)

Im not game to see what it does, and nowhere can I find any reference to what it does!

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

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

#41 Post by I messed up bad »

I can at least report that photorec has retrieved the most vital file :D 8)

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

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

#42 Post by dilberts_left_nut »

A small win is still a win :)
AdrianTM wrote:There's no hacker in my grandma...

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

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

#43 Post by v&n »

I messed up bad wrote:I can at least report that photorec has retrieved the most vital file :D 8)
Congratulations! Hope it was worth the efforts. :)

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

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

#44 Post by I messed up bad »

guys could i get a bit of quick newb advice?

i will spare the story of whats going on but i'm trying to follow this advice on mounting my img (which testdisk has modified)

no need to navigate here:
https://askubuntu.com/questions/236263/ ... t-mounting

anyway he says this:
----------
sudo mount -o loop,ro,offset=1048576 /path/to/image/file/sda5.img /mnt/partition

Make sure that /mnt/partition exists first.
--------------

how do i make sure that mnt/partition exists? i am ready to execute the command but dont understand this advice.

you guys are gems.

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

#45 Post by orythem27 »

The command means mounting the image to /mnt/partition, which must be an existing directory. You can just mount it to /mnt which already exists.

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.

Post Reply