LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-20-2011, 01:13 AM   #1
mposwal
Member
 
Registered: Nov 2010
Posts: 35

Rep: Reputation: 0
window partition data into linux partition


i have two partitions in my system. in which window(XP) partition get corrupted.i want to get data of my win partition into my linux partition.win partition restart again and again when i log in.linux partition work properly. please help give any method available.
 
Old 03-20-2011, 01:39 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
You should be able to just mount the Windows partition in linux. Then copy any data you need from the Windows partition onto your linux partition.
What distro are you using?
Depending on what distro you are using, the windows partition may already be mounted under /media, or it may be listed under the places menu.
If not, then you should be able to mount the Windows prtition like this as root, or using sudo:
Code:
mkdir /mnt/windows
mount /dev/sda1 -t ntfs-3g /mnt/windows
This assumes that /dev/sda1 is your Windows partition. Windows would then be mounted under /mnt/windows.
See this for mounting Windows partitions on Ubuntu: https://help.ubuntu.com/community/Mo...dowsPartitions

Last edited by tommcd; 03-20-2011 at 01:48 AM.
 
Old 03-20-2011, 10:54 AM   #3
mposwal
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tommcd View Post
You should be able to just mount the Windows partition in linux. Then copy any data you need from the Windows partition onto your linux partition.
What distro are you using?
Depending on what distro you are using, the windows partition may already be mounted under /media, or it may be listed under the places menu.
If not, then you should be able to mount the Windows prtition like this as root, or using sudo:
Code:
mkdir /mnt/windows
mount /dev/sda1 -t ntfs-3g /mnt/windows
This assumes that /dev/sda1 is your Windows partition. Windows would then be mounted under /mnt/windows.
See this for mounting Windows partitions on Ubuntu: https://help.ubuntu.com/community/Mo...dowsPartitions
I have these partition.i have using linux 2.6.18-92.el5 version. i have run above command but it show mount: invalid option -- 3 error
what should i do now.

Device Boot Start End Blocks Id System
/dev/sda1 * 1 853333 30719986 7 HPFS/NTFS
/dev/sda2 853334 856177 102384 83 Linux
/dev/sda3 856178 1425066 20480004 83 Linux
 
Old 03-21-2011, 03:20 PM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
Quote:
Originally Posted by mposwal View Post
I have these partition.i have using linux 2.6.18-92.el5 version. i have run above command but it show mount: invalid option -- 3 error
what should i do now.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 853333 30719986 7 HPFS/NTFS
/dev/sda2 853334 856177 102384 83 Linux
/dev/sda3 856178 1425066 20480004 83 Linux
So what distro is this?
The 2.6.18 kernel is rather old. From some quick googling I have done, it seems that the 2.6.18-92.el5 kernel was from Red Hat or CentOS: https://rhn.redhat.com/errata/RHBA-2008-0314.html
If you scroll down that page, under IA-32 your kernel is listed.

I do not know if the ntfs-3g package was included with linux distros of that vintage. The ntfs-3g package was not included with early versions of Ubuntu, for example.
I am not familiar with Red Hat or CentOS. I have only very limited experience with Fedora.
Anyway, do you have the ntfs-3g package installed? If so, you should be able to mount Windows with no problem. Recent versions of just about any linux distro (Ubuntu, Fedora, Slackware, etc.) ship with ntfs-3g out of the box to make mounting Windows partitions easy.
On Slackware 13.1 for example, I can just open a terminal, su - to root, and run:
Code:
root@desktop:~# mkdir /mnt/windows       
root@desktop:~# mount /dev/sda1/ /mnt/windows/
And my Windows XP partition on /dev/sda1 mounts just fine. This is without even installing any extra software to mount Windows partitions.
If you either install ntfs-3g, or better yet, upgrade to a newer version of linux, you should be able mount Windows partitions just fine

Last edited by tommcd; 03-21-2011 at 03:26 PM.
 
  


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
Don't have permission to read DATA partition; partition no longer visible Robert Buckmaster Linux - Newbie 3 10-30-2010 11:41 PM
If i deleted a partition using fdisk , will that delete the data on this partition? wmasry Linux - Newbie 8 12-15-2009 06:41 AM
Gparted: Joining 2 partition ext3 within one partition (data saved) Davno Linux - Software 1 12-11-2009 04:24 PM
Data Transfer From Redhat Linux Partition to Fat32 Partition saraturtle Linux - General 20 04-04-2007 05:20 PM
Linux partition in Window? tradewind Red Hat 4 10-02-2004 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 PM.

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