LinuxQuestions.org
Help answer threads with 0 replies.
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 04-22-2009, 02:05 AM   #1
swatigoel1206
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 0
How to get window data through linux(open suse)


Hello....
I forgot my window password and i also have open suse linux installed in my system. Now I want to get my window data. how can I get data. If anyone knows the please help me.

thanks
swati goel
 
Old 04-22-2009, 03:15 AM   #2
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
See if your windows partition is mounted somewhere on Suse. Look under the /mnt and /media directories to see if you can find the Windwos files and then you can copy the files over to Suse or burn them to make a backup.

If it's not mounted anywhere, you can create a mount point and mount it yourself. Log in as root and do this:
mkdir /mnt/windows
mount /dev/hda1 /mnt/windows

Just make sure that /dev/hda1 is really the Windows partition, and if not - then change accordingly for your system.
And welcome to LQ!
 
Old 04-23-2009, 01:36 AM   #3
swatigoel1206
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks...

Thanks for ur reply...
but when i use this command mkdir /mnt/windows permission denied error comes...
now what should I do?
 
Old 04-23-2009, 10:31 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
when i use this command mkdir /mnt/windows permission denied error comes...
This error generally occurs when you are not logged in as root. Do 'su' or 'su -' before running commands suggested by Udi.
 
Old 04-23-2009, 11:24 AM   #5
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Smile

Quote:
Originally Posted by swatigoel1206 View Post
Hello....
I forgot my window password and i also have open suse linux installed in my system. Now I want to get my window data. how can I get data. If anyone knows the please help me.

thanks
swati goel
Hi Swati,

First use fdisk -l to check whether windows partitions are accessible or not.
You can also check /etc/grub.conf file to check if any password check is there, or if you can just remove the password string at all. You will find that under 'others' section in the same file.
Otherwise you can create a directory and mount the windows partitions, as told by UDI as well, i.e, mount /dev/hda1 /mnt/<ur directory>
But make sure that all these things can be done by root only, so keep this mind.

Cheers,
Kapil
 
Old 04-23-2009, 11:58 AM   #6
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Some of these commands require root access. E.g open a terminal and use the su command to switch to root.

Mons
 
Old 04-30-2009, 08:05 AM   #7
swatigoel1206
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
@ Udi

I have mounted as suggested by you. Now there is windows option in /mnt but it is not accessable. There is an error that you dont have permission to access content of folders.

Plz tell me what to do.?
 
Old 04-30-2009, 10:39 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
You could log in as root to access the files. Do you want to get the data to save it?
I assume you have no entry in /etc/fstab file for windows to have the windows accessible on re-boot but if you forgot your password for windows, I imagine you will want to save files and re-install??

Last edited by yancek; 04-30-2009 at 10:42 AM.
 
Old 05-01-2009, 01:42 AM   #9
swatigoel1206
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
@ Yancek

yes...I want to save and recover data And after that i have to re-install windows.
 
Old 05-01-2009, 05:42 AM   #10
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
You have successfully created a directory under /mnt - and mounted Windows to it. Now I guess you are trying to read from it as a regular user and you can't access /mnt/windows... Log in as root again and run this command:

chmod a+r /mnt/windows

This will grant read permissions on /mnt/windows to everyone. I hope than now you can copy the data over (you can use the GUI for that - and even burn the data to a CD).

Note that after you re-install Windows, it will overwrite the MBR (that's the Master Boot Record) and you won't be able to boot Linux any more because the GRUB menu won't show up. So make sure your backed up data is on some external medium like CD or USB stick (don't leave it on the Linux partition because Windows can't read Linux and you won't have access to your backups).
 
Old 05-02-2009, 02:13 AM   #11
swatigoel1206
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
@ Udi

Thnaks Udi..
I have change mode to read access. Now windows was accessable but it was empty...so again i mounted using mount /dev/sda/ /mnt/windows.

Now there are some files in windows folder not all the drives...
So please tell me what should i do now..

anyways..Thanks for ur corporation..
 
Old 05-02-2009, 03:58 AM   #12
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 35
Have a look at this document: gentoo-wiki.com/wiki/Mounting_Windows_Partitions

It will give you a good general idea of what you are doing here - or what you need to do It's not really specific to Gentoo but rather a good explanation of mounting windows partitions and the common options of doing so.

If you have more than one windows drive (read: partition), you will have to mount each one of them individually in order to show up under linux.

Last edited by General Failure; 05-02-2009 at 04:07 AM.
 
Old 05-02-2009, 03:29 PM   #13
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
swatigoel1206 - in your mount command you have to specify the drive and partition that your Windows files are on. If you have more than 1 Windows drive then you'll need to know on which drive and which partition your files are on exactly.

/dev/sda represents the first hard disk, and /dev/sda1 represents the first partition on the first hard disk. Most computers have 1 hard disk in them - so the Windows drives are not really additional hard disks, just additional partitions. Your other Windows drive can be /dev/sda5 for example (sda5 is the first LOGICAL partition which is what drive D: typically is - but it is not a universal rule so you have to check what the case is for your computer). If you really do have 2 hard disks in your computer then the Windows drive can be on sdb somewhere (on /dev/sdb1 or /dev/sdb2 or so on...).

If you don't know the partition layout of your disk, you can log in as root and run this command:
fdisk -l /dev/sda

If you need help with reading the output of the above command - post the output here and we'll tell you.
 
Old 05-03-2009, 01:28 AM   #14
swatigoel1206
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
@Udi..

Thanks...
 
Old 05-03-2009, 02:07 AM   #15
swatigoel1206
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
@Udi..

I got partitions of windows..when i was mounted, contents of that partition exist in windows, I was copying them in pen drive. but these are not pasted in pen drive..
I m not getting why it is so.
I have open suse 11 installed in another system. In that windows partitions are mounted with drives name like C D E...
but in open suse 10.2 in which i m currently using partitions are not mounted with drive name but with content of drives..
 
  


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
LXer: Open-Xchange Open Data Cloud: Microformats and Semantics LXer Syndicated Linux News 0 03-21-2009 01:40 AM
I have problem in choosing a data base working with open source linux rm22 Linux - Software 6 02-14-2008 04:53 PM
Javascript - what to use rather than window.close() then window.open() davee Programming 2 04-11-2005 09:28 AM
open linux box (x-server) from window over lan rionando Linux - Networking 1 04-26-2002 05:11 AM


All times are GMT -5. The time now is 04:23 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