Windows doesn't see an hdd formatted with linux

If none of the more specific forums is the right place to ask

Windows doesn't see an hdd formatted with linux

Postby dafunk » 2017-12-23 10:06

Hi, I don't know if someone can help me (may it's more a windows issue)....but still....I'v formatted 1 Tb hdd with mkfs.ntfs on debian and all goes allright, in debian I can see the hdd and copy/delete files as usual, but when plug on windows (maybe 7,,,it,s not my pc) the disk is not present on computer (where all disk are showed) and he can not access to it (the person that I gave it told me that it's seem showed in the hardware peripheral disk)....I'v reformat the hdd??...at the first time I do the following..

sudo dd if/dev/zero of=/dev/sdb1 (sdb1 is the disk)
mkfs.ntfs /dev/sdb1

something is worng??.....why I can access from linux and not from windows??

Thanks at all!!
dafunk
 
Posts: 37
Joined: 2014-12-04 07:48

Re: Windows doesn't see an hdd formatted with linux

Postby p.H » 2017-12-23 11:12

dafunk wrote:sudo dd if/dev/zero of=/dev/sdb1 (sdb1 is the disk)

No, /dev/sdb1 is a partition, not a disk. The disk is /dev/sdb.
This command took a very long time to complete on a 1-TB disk, and was rather useless. Erasing only the first few megabytes was enough. to delete previous filesystem signature. Or use wipefs.

Does the partition have the proper NTFS type identifier in the partition table ? Linux does not care but Windows may require it.
p.H
 
Posts: 344
Joined: 2017-09-17 07:12

Re: Windows doesn't see an hdd formatted with linux

Postby dafunk » 2017-12-23 13:33

thank you p.H, sorry I'v use sudo dd if/dev/zero of=/dev/sdb....indeed it make a lot for complete the task...what's wipefs??...how can I check if is present an ntfs partition type identifier and can I add it without format the hdd again??...or how can I format with the partition type identifier??
dafunk
 
Posts: 37
Joined: 2014-12-04 07:48

Re: Windows doesn't see an hdd formatted with linux

Postby p.H » 2017-12-23 21:05

Just use your favourite partitioning program (fdisk, parted, gparted...) to display or change the partition type identifier.
p.H
 
Posts: 344
Joined: 2017-09-17 07:12

Re: Windows doesn't see an hdd formatted with linux

Postby p.H » 2017-12-23 21:10

dafunk wrote: I'v use sudo dd if/dev/zero of=/dev/sdb

Then you erased the partition table, not only the partition contents. Did you also format the whole disk /dev/sdb (instead of sdb1) with mkfs.ntfs ?
If so, maybe Windows does not support an NTFS filesystem on an unpartitionned device.
p.H
 
Posts: 344
Joined: 2017-09-17 07:12

Re: Windows doesn't see an hdd formatted with linux

Postby debiman » 2017-12-24 07:51

long story short, install gparted and use that to create a windows-compatible disk.

stop messing about with dd, your command seems to have a typo in it anyway.
User avatar
debiman
 
Posts: 2129
Joined: 2013-03-12 07:18

Re: Windows doesn't see an hdd formatted with linux

Postby Wheelerof4te » 2017-12-24 11:42

As explained here:
viewtopic.php?f=30&t=135555
you should not fiddle with dd command if you don't know what you're doing.
User avatar
Wheelerof4te
 
Posts: 804
Joined: 2015-08-30 20:14


Return to General Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable