LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   window partition data into linux partition (https://www.linuxquestions.org/questions/linux-newbie-8/window-partition-data-into-linux-partition-869716/)

mposwal 03-20-2011 01:13 AM

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.

tommcd 03-20-2011 01:39 AM

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

mposwal 03-20-2011 10:54 AM

Quote:

Originally Posted by tommcd (Post 4296721)
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

tommcd 03-21-2011 03:20 PM

Quote:

Originally Posted by mposwal (Post 4297053)
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


All times are GMT -5. The time now is 08:25 AM.