LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 07-29-2010, 04:01 AM   #1
alegre
LQ Newbie
 
Registered: Jul 2010
Posts: 10

Rep: Reputation: 0
How can I share files between Debian and Vista, both on same computer?


Hi there!

I am running Debian (on one partion) and Vista (in a different partion) of same disk (same dell xps m1330 notebook.

My question is quite simple:

Is there a practical way to transfer files from Vista to Debian and viceversa?.

Many thanks for your support.
 
Old 07-29-2010, 05:40 AM   #2
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 40
Debian can read the NTFS file system directly (I'm not used to Vista, but I think it's still using NTFS?) but historically it's been a bit flakey. That normally puts me off as a corruption could bring down the whole NTFS partition.

When using a duel boot Debian/Windows machine I used to have an extra FAT32 partition for changing files between them. The partion can be mounted on both OSs.

However, if available a remote file systems that both can use, like Samba or simple FTP would be best. Assuming that's available to you.

Last edited by redgoblin; 07-29-2010 at 05:41 AM. Reason: syntax
 
Old 07-29-2010, 05:44 AM   #3
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
There are at least two ways I can think of.

1. Create a partition on the hard drive and format it fat32. Both systems can read and write to fat32. Move your shared files to that partition.

2. Most USB sticks are formatted fat32. They are cheap enough. Buy one, plug it in, and pot the shared files there. You could even use a CD -R/W disk to exchange files.

It is possible to load ntfs-g3 driver in Debian. That would give you access from Deb to Vista. Windows in general is much more limited in the supported file systems. The only common one is fat32. ( solution 1 ).

Third method. Install vbox on Deb. Run Vista in Vbox. You can the use windoze file sharing between the two systems. I do this with Mandriva host, and XP guest. You need a fairly fast system with lots of ram to make it work well though. At lest 2 gig of ram, 3 would be better.

Hope this helps.

Last edited by camorri; 07-29-2010 at 05:47 AM.
 
Old 07-29-2010, 08:18 AM   #4
jkzfixme
Member
 
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Blog Entries: 21

Rep: Reputation: 52
http://sourceforge.net/projects/ext2read/

Will let you read ext file systems in winblows, and as others state you can read ntfs in Debian

Regards,
JKZfixme
 
Old 07-30-2010, 04:23 AM   #5
alegre
LQ Newbie
 
Registered: Jul 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks to all you guys.
I will try reading NTFS from Debian, as seems to be the most elegant and practical solution.
 
Old 08-01-2010, 04:14 PM   #6
Scarletdown
Member
 
Registered: Sep 2004
Posts: 39

Rep: Reputation: 19
Quote:
Originally Posted by jkzfixme View Post
http://sourceforge.net/projects/ext2read/

Will let you read ext file systems in winblows, and as others state you can read ntfs in Debian
http://ext2.yeah.net is another very useful addon for Windows. It will also allow you to mount your ext3 partitions and access them as normal via Windows Explorer.
 
Old 08-02-2010, 03:04 AM   #7
alegre
LQ Newbie
 
Registered: Jul 2010
Posts: 10

Original Poster
Rep: Reputation: 0
ntfs-3g is working fine!. However, I do not know how can I configure an init file (or similar) to automaticall launch the "mount" command when starting the computer. Now I have to launch it from the terminal manually on every power up.

Cheers.
 
Old 08-02-2010, 05:44 AM   #8
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Quote:
Now I have to launch it from the terminal manually on every power up.
I'm not familiar with Debain, most distros had init scripts, and you can start a program there. Look for a rc.local file. On my system, the path is /etc/rc.d/rc.local I can add any program I need there. At the bottom I would add the same command that I run in a terminal.

Once the ntfs-g3 is loaded, then you can edit /etc/fstab and add an entry for mounting the partition. There should be information in 'man mount' to show how to set the fstab file up for a new partition. Basically you need a mount point. That is an empty directory. Then add the line. Once added, and ntfs-g3 is added to rc.local then it will be accessible after a boot.
 
Old 08-02-2010, 06:20 AM   #9
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 647

Rep: Reputation: 42
Quote:
I do not know how can I configure an init file (or similar) to automaticall launch the "mount" command when starting the computer
First you have to have a mount point, assume you have that setup already.

Second add something like this to your /etc/fstab

Code:
# /dev/sda1     /mnt/vista      ntfs-3g defaults        0        0                                                                 
UUID=D040D82240D81158   /mnt/vista      ntfs-3g defaults        0       0
of course you need to use your info. Just how to get your UUID I don't know but google should yield the method.
 
Old 08-02-2010, 07:31 AM   #10
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.0 + 14.1
Posts: 4,834

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
To get the uuid's that are assigned, the following command should work.

Quote:
ls -l /dev/disk/by-uuid
 
Old 08-03-2010, 02:32 AM   #11
alegre
LQ Newbie
 
Registered: Jul 2010
Posts: 10

Original Poster
Rep: Reputation: 0
thanks to all you guys for your support:
Well, the command I have to launch is clear to me. However, when opening fstab for edition, the systems says it is a readonly file, insufficient privilegies.
 
Old 08-03-2010, 03:41 AM   #12
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 175

Rep: Reputation: 31
Quote:
Originally Posted by alegre View Post
thanks to all you guys for your support:
Well, the command I have to launch is clear to me. However, when opening fstab for edition, the systems says it is a readonly file, insufficient privilegies.
Only the root user can edit fstab. You must become root, or run the editor using sudo.
 
Old 08-03-2010, 05:02 AM   #13
FangsOfFreedom
LQ Newbie
 
Registered: Feb 2007
Posts: 3

Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by jkzfixme View Post
http://sourceforge.net/projects/ext2read/

Will let you read ext file systems in winblows, and as others state you can read ntfs in Debian

Regards,
JKZfixme
The problem with that solution is you'll open a door into Linux from a system prone to viral attacks. Which you don't want to. I used to do that actually but I now prefer using ntfs-3G from Linux.
 
Old 08-03-2010, 05:37 AM   #14
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
Quote:
Originally Posted by FangsOfFreedom View Post
The problem with that solution is you'll open a door into Linux from a system prone to viral attacks. Which you don't want to. I used to do that actually but I now prefer using ntfs-3G from Linux.
You can mount a partition read-only, you can as well set a small partition to share files, outside your main system (which you should be doing regardless if you dual-boot or not anyway).

Besides that, a viral attack could easily disintegrate your partition table and write some random bits into the partition trashing it completely without knowing anything about the fs inside that block device.

What I mean is that from a security point of view you gain very little from not using an ext2 partition from Windows, because windows viruses won't work under linux (so, infection is not really an issue), but they can virtually delete your info regardless if the partition is mounted or not. So it's all the same.

So, use whatever fs works for you to share your files. You could as well setup a network share if you have a spare computer, or use a pendrive, or store them into "the cloud" whatever that means for you... Bear in mind that fat32 is limited to a maximum 4gb minus 1 byte per file, which could be circumvented splitting the files with some tool (rar, split, 7zip, whatever else).
 
  


Reply

Tags
debian, file, share, vista


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
How to share files/folders between VBox Mint and Vista host? jgolab Linux - Newbie 4 09-08-2009 08:43 AM
cant delete files from samba share from vista machine get permission error Elnegro8 Linux - Server 3 02-20-2009 07:17 AM
How to share files between my linux virtual machine and window vista host? huy_china Linux - Newbie 8 10-07-2008 04:42 PM
Why can't i access my debian share from my XP computer? dbramer1134 Linux - Software 2 10-31-2006 01:29 PM
How to build a network/share files with and XP Computer??? aktiwers Linux - Networking 1 06-03-2004 07:14 AM


All times are GMT -5. The time now is 01:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration