LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2005, 01:43 PM   #1
Lefneer311
LQ Newbie
 
Registered: Nov 2005
Location: Seaside, Oregon
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
Question Trying to save data using Ubuntu Distro


This is my first post here, and I'm far from being a basic linux user... I'm a

I'm trying to recover some data from an NTFS formatted partition on a piece of junk hard drive.

I've tried using Windows in all of it's many flavors... all two of em. BartPE wasn't able to get the job done either, which is based off of windows anyway... but it has saved a few junk drives in the past.

Then I tried a LiveCD version of SUSE 9.3 Pro. I was able to find and view the data, but not able to move it. I have a demo machine for displaying Ubuntu's version of linux, and have been trying to find my way through the file system to possibly find and retrieve this data. I'm having ZERO luck with that though. Can't seem to find my way around. {LAME}ness.

The problem I've been having with the drive in windows based machines, is as soon as I connect the drive through any interface the system will blue screen. Every windows machine does the same thing, whether it is connected through an external USB or through and internal IDE. They all come up with an error that points towards the partitions filing system, and an error that occurs while loading the generic NTFS based driver. I'm going to go bald young I think... this guy really needs his data and it's stressing the shiza out of me =(.

I'm down to asking for help guys, I've been brought to my knees and humbled by a friggin hard drive. Help.
 
Old 11-26-2005, 02:54 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
> I was able to find and view the data, but not able to move it.

A little mysterious statement. Once you are able to view it you can copy it (why move?) And that's it. You are the winner.
 
Old 11-26-2005, 03:22 PM   #3
Lefneer311
LQ Newbie
 
Registered: Nov 2005
Location: Seaside, Oregon
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
If I could've copied it I would have... wouldn't let me transfer any data period unless it was through my flash drive. I couldn't move or copy anything from any of the hard drives. And that was when I was using SUSE 9.3 Live. I figured that was a SUSE Live issue. So I moved on to a version of linux that I could install.

Here I am with Ubuntu, and I can't find the data through it.
 
Old 11-26-2005, 03:32 PM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
what kind of data is it? i agree it seems a little weird that you could see/view it but not move/copy it. what are you using to view it? are all your filesystems NTFS? <ugh> what is it saying? are you getting some sort of permissions error? how big is your flash drive? could you get it on there and then back it up a little at a time to CD or something? even if it took a while at least you would have your data. or is it too much? do you have any network/web storage where you could transfer it?

once you get the data, i say wipe those windows drives clean and install linux on there, with linux filesystems. or else reinstall windoze if you have to, but use fat32.
 
Old 11-26-2005, 03:53 PM   #5
Lefneer311
LQ Newbie
 
Registered: Nov 2005
Location: Seaside, Oregon
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
It's his personal data for his book management software etc. Not a problem to get after I can find it using Ubuntu. Here's the deal, I WAS using SUSE 9.3 and that's when I WAS able to view/browse the data. However, it didn't let me manipulate the data in ANY way whatsoever.

To view it I was using the general file management system in SUSE 9.3 Live. If it would've let me xfer data to my jump I would have. No matter how many loads it would've been, it would've saved me a lot of time. So the answer is still with SUSE 9.3 LIVE I am unable to accomplish what I'm trying to do.

However, please not that I am NOT using SUSE 9.3 anymore because of the non xferable data issue. I'm am trying to find the data using Ubuntu now. However, the filing system is very alien to me here, and I do not know where to find my hard drives etc.

Through device management software in Ubuntu I was able to find the hard drive, so I've confirmed that the system is recognizing it. But I am unable to find the drive through a browser of any kind so that I might be able to manipulate the data.

Any ideas where it might be?
 
Old 11-26-2005, 03:57 PM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Whilst using a live version you won't be able to copy to the / filesystem as it's all held on the cd/RAM.

You should be able to copy to a redundant (data disk) that isn't doing anything, if not you need to tell us the error message,

the likely reason the drive was shown in SUSE live is because live cds need to have lots more hardware supported, for use in fixing machines etc. The ubuntu system may not support NTFS or just doesn't mount it at boot.

look in /mnt see if there is anything there

sudo fdisk -l
this will show your drives the system can see

if it says no such file

locate fdisk

then ./path_to_fdisk -l

this will show a list of your partitions.
if it shows your NTFS partition create a directory where the drive will be mounted

sudo mkdir /mnt/ntfs

sudo mount /<hd? # from fdisk> /mnt/ntfs

then go to /mnt/ntfs and you should see the files

that should work, although i dont use ubuntu, which i believe uses sudo with no su out of the box (dont like that) if it fails, post which bit didnt work

Last edited by ethics; 11-26-2005 at 03:59 PM.
 
Old 11-26-2005, 03:58 PM   #7
Lefneer311
LQ Newbie
 
Registered: Nov 2005
Location: Seaside, Oregon
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
One more thing about the live version of SUSE, the message I was recieving was along the lines of access denied =( I was able to view the data there though and confirm that it was intact. I was unable to move it or copy it or even delete it. Was simply unable to. It would say something along the lines of "can't access it". And I got the same error no matter what hard drive I was trying to manipulate data on. The only drive that I could manipulate anything on was my jump drive, period.

Once again, I've moved from SUSE 9.3 and the thread was about finding information using Ubuntu. Please post if you have information about where the data would be, or even where the hard drive would be listed under a file manager.

If you have another version of linux that you think may work that is free, feel free to suggest that as well.
 
Old 11-26-2005, 04:00 PM   #8
Lefneer311
LQ Newbie
 
Registered: Nov 2005
Location: Seaside, Oregon
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Ethics, I'll try that immediately
 
Old 11-26-2005, 05:11 PM   #9
Lefneer311
LQ Newbie
 
Registered: Nov 2005
Location: Seaside, Oregon
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
ok, I've made the directory, and have been fiddling with the "mount" command. I think I may have mounted it properly, but now it says I do not have the right permissions to view the folder. I can get into /mnt and see that there is a folder named /mnt/ntfs but when I try to access it, it gives me an access denied message based on insufficient priveleges.
 
Old 11-26-2005, 05:28 PM   #10
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Windows/DOS filesystems (NTFS,FAT*) can't handle proper Unix like permissions, so something called umask must be used, which means all files assume a default set of permissions when mounted.

unmount with
sudo umount /mnt/ntfs

remount with
sudo mount /dev/<hda? whatever NTFS is> /mnt/ntfs umask=000

that should work.

of course you can always do it as root i believe (sudo cd /mnt/ntfs?)

Do not write to any of your ntfs files though even if it allows you, bad support for it in Linux, when it's time to reformat, assusming it isn't a windows system partition, reformat as fat
 
Old 11-26-2005, 05:45 PM   #11
Lefneer311
LQ Newbie
 
Registered: Nov 2005
Location: Seaside, Oregon
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
I think we're getting close hehe. When I go to mount with a umask value of 000 it tells me the proper usage of "mount" =P I have unmounted the partition though. So all we gotta do is get it mounted with the proper permissions.

Thanks again, any ideas on how to get this last part done?


hard drive name is hdg2 by the way.

sudo mount /dev/hdg2 /mnt/ntfs umask=000 is what I put in, and it responds with the little tutorial of how to use the command "mount". If I don't put in the umask=000 it will mount the drive, but I can't access it =P

almost finished! w00w00!!
 
Old 11-26-2005, 06:18 PM   #12
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
sudo mount -t ntfs -o umask=000 /dev/hdg2 /mnt/ntfs ? (ignore the ? )

Sorry that was my fault, i've only ever mounted it via /etc/fstab whereby adding a line will make it mount at every boot of the system.

Did a bit of testing with the above ,seemed to work for me.

Hope it works
 
Old 11-26-2005, 06:28 PM   #13
Lefneer311
LQ Newbie
 
Registered: Nov 2005
Location: Seaside, Oregon
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
/bow to Ethics

I'd like to send you a christmas card =P Thank you SOOO much.

P.S. it worked


Last edited by Lefneer311; 11-26-2005 at 06:55 PM.
 
Old 11-26-2005, 07:14 PM   #14
comptiger5000
Member
 
Registered: May 2005
Distribution: Fedora Core Since version 3
Posts: 193

Rep: Reputation: 30
i am having a similar problem, but with EXT disks

linux crashed, won't boot properly, ubuntu (liveCD) copies some data, but not all, sometimes only part of a file copies.

Does knoppix support LVM?
 
Old 11-26-2005, 09:25 PM   #15
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Quote:
Originally posted by comptiger5000
i am having a similar problem, but with EXT disks

linux crashed, won't boot properly, ubuntu (liveCD) copies some data, but not all, sometimes only part of a file copies.

Does knoppix support LVM?
I guess the answer is yes but you have to install the module to get it working.

Notice that access to other partitions (especially other filesystems) always is set to root only by default. Remember that when accessing other filesystems. You'll likely need to be root before you mount the other filesystems.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am in panic! How can i save my data on hard drive? zigman Linux - Hardware 2 12-02-2005 11:24 AM
*Please* help me save my data (test disk stuff) Dark Carnival Linux - General 1 02-12-2005 06:22 PM
How to save data in Bookmarks ? acrors Red Hat 2 08-19-2004 11:10 PM
ethereal save data to a file mssucks General 0 01-29-2002 03:04 PM
save incoming data to a file mssucks Linux - Newbie 1 12-14-2001 10:54 AM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration