I guess this question is already answered but could not find the solution. I have a USB hard disk connected to a remote linux machine and I want to mount that hard disk. What would happen if I mount it with a different filesystem? e.g what would happen if the USB hard disk is ext3 and I mount it as a ntfs? would I loose all my data?
Asked
Active
Viewed 49 times
-1
-
1Usually, you can't; file systems have structures that have to be accessed to mount them (eg, for ext[2-4], the superblock). If the FS code can't read those structures, it knows the FS is not that type of FS, and will normally refuse to mount it. – MadHatter Mar 07 '14 at 11:02
1 Answers
1
What would happen is the error message "bad superblock" (or something like it). A filesystem has some "magic" data it puts at specific parts of the block device (different for each filesystem) and if it's not there, the mount program says "sorry, this isn't the filesystem you told me it was" and refuses to mount it.
On Windows, if it's a filesystem the OS doesn't recognize, it generally offers you the option to format the device, but that requires your interaction. On Linux/BSD/etc., the mount program will just fail.

Bandrami
- 893
- 4
- 9