[SOLVED] Use of portable hard drives and USB sticks
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.
I'm thinking I'll convert to Zorin for an operating system on my home computer. Can I back up files (e.g. an Open Office spread sheet) and take that into my office computer, which has a windows OS and open the file using the same Open Office program, except running on windows? In windows, the file extension is .ods - but I don't know if its the same on O/O running on Zorin.
Also, more generally, can you back up linux files and windows files on the same PHD? Is it any more complicated than if both were windows.
I know I won't generally be able to open windows program's files on Zorin or vice versa.
I'm thinking I'll convert to Zorin for an operating system on my home computer. Can I back up files (e.g. an Open Office spread sheet) and take that into my office computer, which has a windows OS and open the file using the same Open Office program, except running on windows? In windows, the file extension is .ods - but I don't know if its the same on O/O running on Zorin.
Files should be treated the same way by Open Office regardless of the operating system it is running on. So, yes.
Quote:
Also, more generally, can you back up linux files and windows files on the same PHD? Is it any more complicated than if both were windows.
Doctor of Philosophy? Portable hard drive perhaps. You can do this as long as you use a file system on that harddrive that both OSs know howto read and write to. For this reason most external hard drives and usb thumb drives etc use a fat file system (although you are free to replace it with something else).
Quote:
I know I won't generally be able to open windows program's files on Zorin or vice versa.
You can "open them", but what you see is likely not what you want.
You can use office documents from linux in windows and vice versa, especially when you are using open office (libre office) software.
Don't know what files you are talking about but as long as it's not system files, its word or excel files, pdf documents, music and video files can be used between linux and windows.
Linux filesystems don't have a lot of support in Windows, but Windows filesystems are supported by Linux (either natively, or with a couple of standard packages). For that reason, any storage devices that will be used on both platforms should be formatted with a Windows filesystem, such as FAT32 or NTFS. Do that, and you shouldn't have any issues (apart from needing to install ntfs-3g or similar, if not already installed).
Yes, generally there is a filesystem that can be used for both windows and linux.
It may be possible to install some windows programs in linux via a few means. Wine (the program based on CodeWeavers Crossover office) is a way that most people consider. You can also buy the Crossover program.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I think it's worth pointing out that FAT file systems only allow file sizes under around 3.5GB -- of course if that doesn't matter to you don't worry about it.
I would also be tempted, if you are going to format a drive with NTFS, to do so under Windows. That's probably just me being silly but I don't 100% trust Linux's NTFS drivers since they're reverse-engineered with no help from Microsoft.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Wikipedia says 4GB for FAT32 but my experience is that after about 3.5GB the file may or may not be saved. https://en.wikipedia.org/wiki/File_Allocation_Table
In the past (and I will admit this was around 5 years ago), when I dual booted Linux and Windows, Windows would always need to run checks on the shared NTFS partition I had because it seemed Linux didn't update the Journal correctly. I'm sure that has been fixed so it's just superstition on my part that I'd rather format NTFS using Windows.
I often use a memory stick to move files between Linux and XP. I use a FAT filesystem as that is how the memory stick is setup by the manuf..
Copy from FAT memory stick to Linux will make a file with the execute bit set, because FAT does not have an execute bit. It would be nice to change this default (but I have not found it yet).
So I often use chmod command to fix this.
>> chmod a-x *.*
Do not do this to a directory as the execute bit on directories allows access to files.
Directories rarely have extensions, which is why I use *.* .
Beware the automatic conversion of text on copy.
I have had binary files corrupted when all the LF were converted to CRLF.
I did not run any conversion program on the files. I can remember only a couple file types where it has done this wrongly and they would not be normally known to Linux.
I takes a while to realize that the file copy corrupted the file, especially as it does it
exactly the same on the next copy. You have to zip a copy and take it back to Linux to compare to the original to detect this.
For this reason some files need to be zip compressed for FAT filesystem transfer.
FAT32 is limited in some versions of windows to only 32GB filesystems (or was it 32MB?). But you can create them in linux without said limits.
Depending on the versions of things you might have to simplify the formats of your files. As in csv (comma seperated values) for tables (spreadsheets), and rtf (rich text format) for documents. Although things tend to be a lot more portable these days. But you still might want a few "options" before you find out the hard way.
And you want to check with your employer(s) first as they're not too forgiving on infection vectors these days. Somehow hosting files on public servers is less frowned upon than using portable storage mediums.
For the record in case someone else searches this thread, I've been opening my Excel files and .csv files with Libra Office calc then saving them in the .ods type. No problems at all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.