LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-26-2012, 04:01 PM   #1
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Rep: Reputation: Disabled
accessing windows files on the same partition as the linux


Hi everyone,

Back to Linux after 6 years. Don't remember a thing. Before formatting the whole computer, decided to intall the double-boot ubuntu version.

Before the installation I had 3 partitions: c - a system and programs partition, d - a system partition and e - all my files and work partition (and the only place on my comupter with enough space).

During the installation partition E was selected automatically for Linux. After the installation I can see in the media directory what originally was partitions C: and D: but no access to E (again - all my files and the outlook.pst file which I tried importing into Evolution).

So I tried mounting the drive:

Code:
mount /dev/sda2 /media/point
and received:
Code:
mount: only root can do that
then I tried:
Code:
sudo mount /dev/sda2 /media/point
and received this:
Code:
mount is denied because the NTFS volume in already exclusively opened. The volume may be already mounted, or another software may use it which could be identified for example by the help of the 'fuser' command.
Since I copy-pasted the code (with the necessary modifications), I have no idea what that means.

So how can I access these files?

Thanks a bunch,

Libby
 
Old 05-26-2012, 04:13 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
From your description, it sounds like you replaced the 3rd partition when you installed Linux.

Run "sudo fdisk -l /dev/sda" to list the partitions. The partition on /dev/sda2 is the second partition.

You can examine an individual filesystem with the "file" command: "sudu -s /dev/sda2"
The message you posted did indicate that it was an NTFS partition.

It also sounds like /dev/sda2 is already mounted. Look at "mount | grep sda2". It should say something like "/dev/sda2 on ...". After the "on" is the directory where it is mounted. If fuse is used, you may have read and write access, depending on the mount options.

Also look in the /etc/fstab file. The line that starts with /dev/sda2 allows automounting at boot. It may have an entry like "/dev/disk/by-id/ata-WDC_WD3200BEKT-00F3T0_WD-WXC0A8966517-part2" however. If you run
"ls -l /dev/disk/by-id/* | grep sda2" you can see the links that point to /dev/sda2 which is the second partition on the first hard drive.

Last edited by jschiwal; 05-26-2012 at 04:17 PM.
 
Old 05-26-2012, 04:15 PM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,447

Rep: Reputation: Disabled
It sounds like you're looking for the third partition (formerly "E:"), but you try to mount the second partition (/dev/sda2). That partition is already mounted; as you say, you can see it in the /media directory.

If you installed Linux to the partition that was "E:" in Windows (probably /dev/sda3 or /dev/sda5, depending on the partition layout), that partition is now the root file system in Linux ("/").

Since Linux can't be installed to a Windows-formatted NTFS partition, the installer would have informed you that the partition would have to be formatted.

Last edited by Ser Olmy; 05-26-2012 at 04:16 PM.
 
Old 05-26-2012, 04:26 PM   #4
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Unhappy

Hi again,

So first, NO, I was not prompted that the whole volume would be deleted. Also, the whole procedure took a couple of seconds, and it's supposed to be a 250GB partition. Could it be THAT fast?

Second, I chose sda2 because according to its size - that should be E:. The two others are sda1 (c) and sda3 (which looks like d).

Third: I'm a terrible newbie. So I wrote in the terminal "sudu -s /dev/sda2" and received "permission denied". Didn't know what to do with the other commands.

What should I do next?

L.
 
Old 05-26-2012, 04:33 PM   #5
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
GREAT NEWS - nothing deleted!

Pheeewww, just rebooted and checked it in windows. Everything on the original E: in intact, and ubuntu was installed into a new folder on E.
 
Old 05-26-2012, 04:36 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,447

Rep: Reputation: Disabled
That's pretty cool, I didn't know the Ubuntu installer could do that. How does that new folder look from within Windows? Can you see the Linux system files or just an image file?

While you're there, take a look in Disk Management (Computer Management > Storage > Disk Management on Vista/7) and see which partition number E: really is.

Last edited by Ser Olmy; 05-26-2012 at 04:45 PM.
 
Old 05-26-2012, 04:44 PM   #7
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
I think that an image file? 3 folders: disks (that contains grub), install (with a file that has a very long name) and winboot with 5 files. That's it.
 
Old 05-26-2012, 06:52 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,270

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Sounds like you did a wubi install which just installs Ubuntu as a program inside a windows partition. So you are able to boot Ubuntu? Are you using the Grub bootloader now for Ubuntu and windows? If so, if you delete the Ubuntu "program" you will be unable to boot windows. If you decide to remove Ubuntu at some point, you will need to do a little research on repairing the mbr for windows.
 
Old 05-27-2012, 02:28 AM   #9
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
It is a Wubi installation and it has an uninstall function in the Ubuntu folder through windows so I'm not worried about that.

But the problem is - if Ubuntu sits in E:/Ubuntu, how can I access E:/docs if Ubuntu refuses to mount the E: partition?

Can anyone help me with that?

Thanks!
 
Old 05-27-2012, 02:39 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Have you run the suggested commands. You can mount the partition as you could any other. I suspect it already is.
 
Old 05-27-2012, 02:45 AM   #11
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
I tried:

I wrote "sudu -s /dev/sda2" and received "permission denied".

And I didn't know how to write the other commands. Sorry for being such a nag, but can you write me down exactly what I have to write in the terminal so I can copy-paste it? :-/
 
Old 05-27-2012, 02:55 AM   #12
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
This is what came up when I wrote sudo fdisk -l /dev/sda
Code:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc042474d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   100665343    50331648    7  HPFS/NTFS/exFAT
/dev/sda2       100665344   620924927   260129792    7  HPFS/NTFS/exFAT
/dev/sda3       620928315   625121279     2096482+   c  W95 FAT32 (LBA)
If I understand correctly, sda2 is the large partition (around 250GB)
 
Old 05-27-2012, 02:57 AM   #13
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
And I thought it was gibberish but maybe I got it all wrong. When I wrote mount | grep sda2 this is what I got:
[qoute]/dev/sda2 on /host type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
[/QUOTE]

---------- Post added 05-27-12 at 08:57 AM ----------

And I thought it was gibberish but maybe I got it all wrong. When I wrote mount | grep sda2 this is what I got:
[qoute]/dev/sda2 on /host type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
[/QUOTE]
 
Old 05-27-2012, 03:49 AM   #14
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The filesystem is mounted on /host.
 
Old 05-27-2012, 04:15 AM   #15
libbybai
LQ Newbie
 
Registered: May 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Talking

OMG, you're right!

THANK YOU!
 
  


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
Problems Accessing Files on ext3 Partition from Windows America's Sweetheart Linux - Desktop 6 08-21-2008 01:58 PM
Accessing files from Windows Partition ditto1958 Linux - Newbie 6 08-18-2008 09:10 AM
Accessing files on the Windows Partition from Linux sci0x Linux - Software 6 03-21-2004 02:34 PM
Accessing files on my Windows partition darktalon96 Linux - Newbie 4 01-09-2004 10:23 AM
accessing windows partition from linux partition dave bean Linux - Newbie 19 10-15-2003 04:39 AM


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