There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Accessing Vista file system through Ubuntu

Reply  
Thread Tools
DaveSS's Avatar
Member with 451 posts.
 
Join Date: Jun 2002
01-Jul-2008, 10:52 AM #1
Accessing Vista file system through Ubuntu
Hi folks,

I have a dual boot ubuntu 8 and vista ultimate on separate partitions.

I have sharing activated on Vista.

I can see the filesystem on Ubuntu, when I access it and enter in vista password nothing. With ubuntu password it tells me it is unable to mount the volume.

Any ideas on this one?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
01-Jul-2008, 11:07 AM #2
Hi DaveSS,

From the Linux OS, issue the following command (as a regular user):
ubuntu@ubuntu:~$ sudo fdisk -l
and confirm that the Vista system partition is (which it should be) an NTFS partition.

Then, issue the following command (again as a regular user):
ubuntu@ubuntu:~$ sudo mkdir /tmp/vista

The sudo command executes the following commands as the root account (sysadmin) user in each of the above examples.

Next, you will have to mount the NTFS partition as follows:
ubuntu@ubuntu:~$ sudo mount -v -t ntfs /dev/xxxx /tmp/vista
where the xxxx in /dev/xxxx is replaced by the device name associated with the NTFS partition (output from the fdisk -l command example above).

Then, in ubuntu, you would (as root):
ubuntu@ubuntu:~$ sudo cd /tmp/vista
which would take you to the C:\ directory on the Vista partition, and then you could issue the command:
ubuntu@ubuntu:~$ sudo ls
to get a Linux directory listing of C:\.

You can get into the root account on Ubuntu by issuing the command:
ubuntu@ubuntu:~$ sudo -i
which will give you a root account prompt:
root@ubuntu:~#
and then you do not have to issue sudo on every command because you are root.

Issue the command:
root@ubuntu:~# umount /dev/xxxx
from the /root directory (not from /tmp/vista) after you are done accessing the Vista drive, and then
root@ubuntu:~# exit
to kick you back into the regular ubuntu user account.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DaveSS's Avatar
Member with 451 posts.
 
Join Date: Jun 2002
01-Jul-2008, 11:42 PM #3
Thanks for the detailed post. Am not having much luck though.

Here's what I have:

Device Boot Start End Blocks Id System
/dev/sda1 1 61 488281 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 730 9730 72289280 7 HPFS/NTFS
/dev/sda3 62 729 5365710 83 Linux


sudo mount -v -t ntfs /dev/sda2/tmp/vista

Results in

Failed to mount '/dev/sda2': Operation not supported
Mount is denied because NTFS is marked to be in use

I tried to mount as root but it still comes back the same
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
02-Jul-2008, 10:19 AM #4
Quote:
Originally Posted by DaveSS View Post
Thanks for the detailed post. Am not having much luck though.

Here's what I have:

Device Boot Start End Blocks Id System
/dev/sda1 1 61 488281 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 730 9730 72289280 7 HPFS/NTFS
/dev/sda3 62 729 5365710 83 Linux


sudo mount -v -t ntfs /dev/sda2/tmp/vista

Results in

Failed to mount '/dev/sda2': Operation not supported
Mount is denied because NTFS is marked to be in use

I tried to mount as root but it still comes back the same
Hi DaveSS,

Try:
ubuntu@ubuntu:~$ sudo mount -v -t ntfs /dev/sda2 /tmp/vista
_______________________________________________^
i.e. there is a space between /dev/sda2 and /tmp/vista

or try:

ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# sudo mount -v -t ntfs /dev/sda2 /tmp/vista

Make sure you do not issue the mount or the umount command from the /tmp/vista directory, i.e. just issue the cd command before the mount or umount command.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DaveSS's Avatar
Member with 451 posts.
 
Join Date: Jun 2002
02-Jul-2008, 04:16 PM #5
Thanks again, still no luck. Am getting the following. Vista is shutdown, yet this still goes on for both sudo and root commands??

$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda2': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.

Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:

mount -t ntfs-3g /dev/sda2 /tmp/vista -o force

Or add the option to the relevant row in the /etc/fstab file:

/dev/sda2 /tmp/vista ntfs-3g force 0 0

If I go for choice 2 here my NTFS filesytem rthat I cannot get into dissapears altogether until I reboot.

Last edited by DaveSS; 02-Jul-2008 at 04:29 PM..
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
03-Jul-2008, 10:07 AM #6
Hi DaveSS,

If you boot up into Linux, what is the output of the simple no-parameter mount command:
$ mount

Is the NTFS auto mounted already?

What are the contents of the /etc/fstab file when you boot up into Linux?

-- Tom
DaveSS's Avatar
Member with 451 posts.
 
Join Date: Jun 2002
03-Jul-2008, 10:45 AM #7
Ok somethings happening.

I used the mount -t ntfs-3g /dev/sda2 /tmp/vista -o force command as Root and am able to access the drive.

Yet two things:

If I create a folder in the windows partition, desktop, then its not appearing when I boot into windows.

Secondly, when I go back into Ubuntu I have to go through the whole root mount -t ntfs-3g /dev/sda2 /tmp/vista -o force command line process again.
DaveSS's Avatar
Member with 451 posts.
 
Join Date: Jun 2002
03-Jul-2008, 12:13 PM #8
Right update. Same situation with going through all the command lines as Root to access Vista via forced mount.

But I discovered why the folder I created was not showing up in Vista. In the second attempt Vista was in Hibernation. I shut down again fully. And now the files are showing.

Still having to do that force mount thing as Root which is a pain. But it's one tick off the problem box and nearly there.

As a side note, as I mounted from the cmd line I cannot unmount the Vista system.

So the main issue now is to do this with out all this root into cmd force mount? Any ideas>?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
03-Jul-2008, 05:15 PM #9
Hi DaveSS,

To unmount, issue the following command as root (admin in Linux):
# umount /dev/xxxx
where xxxx is the device name of the NTFS partition that was mounted.

Make sure you are not located in /tmp/vista, as the device will then be detected as busy. Better to first, cd /, or cd /root, then issue the umount command.

Note: umount is the command to "unmount" the drive.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DaveSS's Avatar
Member with 451 posts.
 
Join Date: Jun 2002
04-Jul-2008, 12:32 PM #10
With that I am getting

/dev/sda2 is not in the fstab (and you are not root)

So it unmounts as root no problems

So you think the fstab needs to be changed to avoid all the command lines?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
04-Jul-2008, 12:54 PM #11
Hi DaveSS,

It depends on whether you want to expose your Windows disk to the Internet when you are connected via Linux or not.

You certainly can install an entry in your fstab to automount Windows every time you boot Linux.

How good is your security? You don't surf as root or Admin do you?

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
DaveSS's Avatar
Member with 451 posts.
 
Join Date: Jun 2002
04-Jul-2008, 10:10 PM #12
Hi Tom,

Actually that's a good point. No I don't surf as root. But the primary reason I have the dual boot is that I am planning on using the Ubuntu partiton for internet when travelling. And the Vista for general work like photoshop etc.

I prefer unbuntu's security over vista and it boots much faster.

I would switch but windows still had too much in productivity over linux for me. And since Ubuntu 8.04 the fonts have gone a bit strange making ooo writer look bad, and as I work on writer a lot. Then I have to stick with it on windows.

So yep you are right I should not be editing in the fstab file due to this

Thank you very much for all your help on this by the way. Its been a big relief!

Dave
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:28 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.