My external disk doesn't like the Lunar iso...

 
Post new topic   Reply to topic    Lunar-Linux Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
struddel



Joined: 04 Apr 2008
Posts: 1

PostPosted: Fri Apr 04, 2008 2:04 am    Post subject: My external disk doesn't like the Lunar iso... Reply with quote

Hi all,

I wanted to install Lunar Linux but I got a problem.

I have a cd-burner but no CD, so I tried another way to install Lunar-Linux.

I wanted to mount the iso on a disk but I missed a key and I've done :

Code:
cat lunar.iso > /dev/sda2


and sda2 is my ... external USB disk ...

I can no more mount it, i get this issue :

Code:
struddnux:/home/struddel# mount /mnt/data/
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


sda2 is usually mounted in /mnt/data by fstab and since I've made this mistake, i can't mount it Confused

I've finally tried a chroot install and it worked for Lunar but how can I get my files back on my external USB disk ?

It's a vfat disk and dmesg | tail says :

Code:
struddnux:/home/struddel# dmesg | tail
sd 3:0:0:0: [sda] 320173056 512-byte hardware sectors (163929 MB)
sd 3:0:0:0: [sda] Write Protect is off
sd 3:0:0:0: [sda] Mode Sense: 27 00 00 00
sd 3:0:0:0: [sda] Assuming drive cache: write through
sda: sda2
sd 3:0:0:0: [sda] Attached SCSI disk
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda2.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda2.


For now, I have a beautiful iso on my disk instead of my docs :
Code:

struddnux:/home/struddel# mount -o loop /dev/sda2 /mnt/data/ && cd /mnt/data/ && ls
bin  boot  dev   etc  home  isolinux  kernels  lib  media  mnt  proc  README  root  sbin  srv  sys  tmp   usr  var


Thanks for help ... I really need you ...
Back to top
View user's profile Send private message
engelsman



Joined: 21 Aug 2005
Posts: 131
Location: Netherlands

PostPosted: Sat Apr 05, 2008 8:38 am    Post subject: recovering an external disk :-( Reply with quote

I could be wrong, and I frequently am, but unless you have a backup of your external USB disk I think that you are going to be out of luck to recover everything. The cat lunar.iso > /dev/sda2 will probably have overwritten the administrative records that point to the file system as well as some of the data blocks for the files themselves.

You might be able to recover some of the files if they are outside the overwritten area using the foremost or magicrescue modules in the moonbase. This is only a suggestion: I've never used them and maybe there are better tools available. Good luck.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Lunar-Linux Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group