[SOLVED] accessing windows files on the same partition as the linux
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
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? :-/
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]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.