Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Windows recognizes and gives my fedora partition a drive letter, but it shows it as blank. Is there a way to get windows to read ext3 filesystem? Its a Fedora 10 partition.
I'd take a look at EXT2 IFS for Windows.
Several things to keep in mind with this.
Ext3 is backwards compatible with Ext2, it just doesn't write to the journal
NTFS is case insensitive, this may screw with you depending on what you are moving
Some filenames that are valid in Ext2/3 are invalid in NTFS/VFAT like : and $
Special files will be inaccessible, sockets, soft links, block devices
permissions are not maintained
Will not work with LVM volumes
It will let you read and write to it though ;)
I know that you want to mount your Fedora partition but from experience I have found that the best way to share a partition with Windows is to format as NTFS and use ntfs-3g to access it in Linux.
I tried using the ext2 Windows app mentioned by JensenDied a couple of years ago and ended up having problems accessing data on the USB drive that it was being used with.
See the answers to my similar question on ServerFault.com:
What Windows ext3 driver should I use?
Summary of the best answer I got (and other answers were later deleted, I assume by their authors): Use ntfs-3g to access the NTFS filesystem from Linux. You will have a much smaller chance of filesystem corruption doing it this way than using any of the existing ext2/3 drivers from Windows.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am trying to save some important files from my faulty internal hard drive on my iMac. I am in the Internet Recovery mode and running the terminal. I also have connected an external 1TB storage and I can view the files inside it using the terminal. However, I cannot seem to write anything on the external drive as I get the message
cp: volumes/seagatedrive/backup.dmg: Read-only file system
I have used the chmod 777 command for my seagatedrive to no avail. The message I get there is:
Unable to change file mode on volumes/seagatedrive: Read-only file
system
How can I make my external hard drive (seagatedrive above) writable?
Would appreciate any help.
UPDATE
OP has stated, that his drive is formatted as NTFS. therefore you'll need to setup thirdparty drivers to support write-access on that drive.
An article about that can be found here:
http://www.howtogeek.com/236055/how-to-write-to-ntfs-drives-on-a-mac/
[...]
Mac OS X can read from NTFS drives, but it can’t write to them unless you use one of the below tricks. We highly recommend paying for a third-party NTFS driver if you need to do this as the other solutions don’t work as well and are more work to set up.[...]
Alternatively you should consider using exFAT as drive Format. Using
exFAT has the advantage of compatibility on almost all Platforms.
Since I can't put my thoughts in a comment (not enough rep. yet) here is what you can check.
osx behaves strangely with external drives which aren't formatted in Mac OS Format.
check volume's partition-type
check mount tab (if exists)
make shure that your drive isn't write-protected.
if this all fails you could also check, if root has the proper rights to do these previous things.
if so, there might be a problem with your account or privileges on that account.
if there won't be anyone being able to help you, you should try and ask your question on https://unix.stackexchange.com/
cheers and good luck
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
How do I access an external hard drive through bash-on-Ubuntu-on-windows. It doesn't seem to appear in either /media, /mnt or /dev, which seem the common places that people say to look for them in Ubuntu systems.
Note: the hard drive is HFS+ formatted: I use Paragon's HFS+ for windows and have already done an apt-get install hfsprogs which I think should allow the Linux part to read the HFS+ format. I have also tried with normal USB sticks, no of which seemed to appear anywhere.
The drive does appear in /cygdrive in cygwin, but when I navigate to cygdrive in bash it doesn't appear. Clearly it is not properly mounted there, but is some form of symbolical link that bash cannot see.
I'm not really sure if this is a Linux or a Windows issue, but there doesn't seem to be anything from Microsoft about it, though I realise it is early days for them.
The Ubuntu on Windows on the current build (Build 14393, a.k.a. anniversary update) doesn't support accessing external drive. This feature is on their backlog for future consideration.
Source: https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13355724-unable-to-access-usb-devices-from-bash
Edit: Mounting removable drives are supported since Build 16176. [1][2]
https://blogs.msdn.microsoft.com/wsl/2017/04/18/file-system-improvements-to-the-windows-subsystem-for-linux/
https://stackoverflow.com/a/44001783/643011
https://learn.microsoft.com/en-us/windows/wsl/wsl2-mount-disk
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I would like to dual boot ubuntu 12.04 and OSX Lion. Is there a way that I can access all my music, documents, etc. from my ubuntu partition?
You should be able to read the OSX partition from Ubuntu without any modifications. You might have to mount the partition, although I would expect Ubuntu to automatically mount it read only, so you just have to find the partition in the file browser and open it.
OSX by default uses journaled HFS+ as it's file system. Ubuntus kernel has support for this file system built in. If you want read/write access to the OSX partition, you have to disable journaling in OSX. Here are some guides with more details:
https://help.ubuntu.com/community/hfsplus
http://manpages.ubuntu.com/manpages/intrepid/man7/hfsplus.7.html
Note that I would not recommend disabling journaling, and I do not recommend writing to the OSX system partition from a different OS. If you want to read and write to some files from both OSs, you should create a separate partition for this purpose. Non-journaled HFS+ would work as a file system, FAT 32 should also work.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to write a program to recover recently deleted files on windows 7..
Is there a function in windows API that recover files? If not, how can I begin in that?
EDIT:
Or an open source project for that?
EDIT:
I do not mean Recycle Bin!!
Well the file recovery tools all start by scanning the disk for file headers or for old traces of the file tree.
Looking to do this from scratch you need to understand your target drive and its file system. There is no API so to say, though there are projects that deal with accessing the NTFS file system directly from linux, though it sounds like you are developing in Windows. They are listed at the end of the Wiki link in my post. I have some links that will access the drive directly. From there you can t,ry to detect old files though any means you could derive from the NTFS Journal, Log or other component of the FS.
Assuming you want to use Windows 7 and will be running your program in the OS take a look these links:
Direct Drive Access
Create File
Wikipedia Article on NTFS (The file system Windows 7 uses) Check the external links
What your looking to write is no trivial task, though that's what makes it interesting.
Do you mean files deleted (moved to trash) or removed from the hdd (marked for replacement)? If you're looking for the second option, I'm quite sure Windows do not offer any solution to that.
You will have to analyze the data on the disk manually, i.e. by reading the raw disk content and looking for files which are marked as deleted.
A good start would be reading into the internals of the filesystem(s) you want to support since you will need them. There is no API for that.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
Improve this question
why a usb drive can work in both linux os and windows os without the need for formating the file system?
Typically USB drives are formatted with FAT32 or NTFS, both of which are usable in Linux.
You might also find the Wikipedia article on USB mass storage devices interesting. In particular:
The USB mass storage specification
does not require any particular file
system to be used on conforming
devices. Instead, it provides a simple
interface to read and write sectors of
data—much like the low-level interface
used to access any hard drive—using
the "SCSI transparent command set."
Operating systems may treat the USB
drive like a hard drive, and can
format it with any file system they
like.
Because both OS'es know how to read/parse/work with the format.
Format a USB key in say OSXs HFS+ and then windows will not know which end is up (without third party drivers)