NTFS disk not recognized

NTFS disk not recognized

Postby Tater » Wed Aug 06, 2014 2:36 am

Hi,

First off, great job on the software. It's been a treat being able to use the pi as a server.

I have a problem that I need some help with. I'm somewhat new to linux so perhaps it's my lack of experience that's the problem.

I have two usb disks connected to the raspberry pi.
One is formatted as ext4 and is up and running with no problems on the Pi.
The 2nd disk is formated as NTFS and i can't get the Pi to recognize it.
If I format it as ext4, the Pi is able to recognize it but not when its formatted as NTFS.

I have other windows computers in the house and would like to keep it formatted as NTFS for compatibility.

What do I need to do differently for the NTFS drive to work?

Thanks,
Tater
Tater
 
Posts: 3
Joined: Thu Jul 17, 2014 1:26 am

Re: NTFS disk not recognized

Postby Jocko » Wed Aug 06, 2014 7:24 am

Hi Tater,

only ext3/4 (or FAT32) USB partition are mounted as internal disk (listed in the disks setup menu).

If you use NTFS as fs, the related disk should be listed in the USB disks menu and a global share is created.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NTFS disk not recognized

Postby Tater » Thu Aug 07, 2014 2:30 am

Hi Jocko,

Thanks for your help but I'm not sure I understand.

Under Disk Setup ->Setup in the "manage disks and volumes" section, there are two disks listed.
"Single" with 2.3GB I assume to be the SD card.
"USB-A" with 465GB is my Ext4 disk.
The NTFS disk is not listed.

Under Disk Setup->USB Disks at the top under "USB storage" there is nothing listed.
The NTFS disk is not there. Should it be?

Both disks are connected to the same powered hub.

Tater
Tater
 
Posts: 3
Joined: Thu Jul 17, 2014 1:26 am

Re: NTFS disk not recognized

Postby Jocko » Thu Aug 07, 2014 8:12 am

Hi Tater

Tater wrote:Under Disk Setup ->Setup in the "manage disks and volumes" section, there are two disks listed.
"Single" with 2.3GB I assume to be the SD card.
"USB-A" with 465GB is my Ext4 disk.
The NTFS disk is not listed.
That is ok
Tater wrote:Under Disk Setup->USB Disks at the top under "USB storage" there is nothing listed.
The NTFS disk is not there. Should it be?
Yes, it should. You must enable the debug mode to trace the plugin event:
a/ unplug your USB hub
b/ Use this url:http://yournasname/.status/nas-status.php and start the debug mode.
c/ plug in again your hub
d/ check option 'Get a full Log and export it

Now you can stop the debug mode and post here the Log sections:
# Mount table
# syslog file

And if you can open a shell console, post the outputs:
Code: Select all
 ls /sys/class/block/sd*
and
Code: Select all
fdisk -l
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NTFS disk not recognized

Postby Tater » Wed Aug 13, 2014 2:33 am

Hi Jocko,

Sorry for the late reply but it's been busy lately.

Here is the debug file output for
# Mount table
# Mount table:
rootfs on / type rootfs (rw)
/dev/root on / type ext4 (rw,relatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=85060k,nr_inodes=21265,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
/dev/mmcblk0p7 on / type ext3 (rw,relatime,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mmcblk0p6 on /rw_fs type ext3 (rw,noatime,data=ordered)
tmpfs on /rw_fs/tmp/usr/var type tmpfs (rw,relatime,size=5000k)
/dev/mmcblk0p4 on /share/1000 type ext3 (rw,relatime,data=ordered)
/dev/sda1 on /share/2000 type ext4 (rw,noatime,data=ordered)
/dev/root on /lacie-boot type ext4 (rw,relatime,data=ordered)


and for # syslog file
# syslog file:
Nov 16 12:01:11 PiServer syslog.info syslogd started: BusyBox v1.21.0
Nov 16 12:01:11 PiServer local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/.status ; USER=root ; COMMAND=/etc/nas_status.sh --start-debug
Nov 16 12:01:11 PiServer syslog.info syslogd exiting
Nov 16 12:01:11 PiServer syslog.info syslogd started: BusyBox v1.21.0
Nov 16 12:01:11 PiServer local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/.status ; USER=root ; COMMAND=/bin/ps -ef
Nov 16 12:01:26 PiServer local0.warn API[2011/11/16 12:01:26] nasapi.inc(36)[887]: nasapi: lock time = 0
Nov 16 12:01:26 PiServer local0.warn API[2011/11/16 12:01:26] nasapi.inc(46)[887]: calling mrvlUdevdAttached sdb1
Nov 16 12:01:26 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/cat /etc/platform
Nov 16 12:01:26 PiServer local0.warn API[2011/11/16 12:01:26] udevfunc_attached.finc(34)[887]: Request to attach sdb1 for rspb2
Nov 16 12:01:26 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/vol_id -t /dev/sdb1
Nov 16 12:01:26 PiServer local0.warn API[2011/11/16 12:01:26] udevfunc_attached.finc(58)[887]: partition type is ntfs
Nov 16 12:01:26 PiServer local0.warn API[2011/11/16 12:01:26] exthddfunc_mountExtHdd.finc(36)[887]: Request to mount sdb1
Nov 16 12:01:26 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/vol_id -l /dev/sdb1
Nov 16 12:01:26 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/fdisk -l /dev/sdb
Nov 16 12:01:26 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/fdisk -l /dev/sdb
Nov 16 12:01:26 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mkdir -m 777 -p /mnt/HP250_1
Nov 16 12:01:26 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mount -t ntfs -o ro,nls=utf8,umask=222 /dev/sdb1 /mnt/HP250_1
Nov 16 12:01:26 PiServer local0.warn API[2011/11/16 12:01:26] exthddfunc_mountExtHdd.finc(147)[887]: failed to mount sdb1 at /mnt/HP250_1
Nov 16 12:01:26 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/mv_reg_bit_set 0x10108 6 1
Nov 16 12:01:31 PiServer local2.notice sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/mv_reg_bit_set 0x10108 6 0
Nov 16 12:01:31 PiServer local0.warn API[2011/11/16 12:01:31] nasapi.inc(649)[887]: mrvlUdevdAttached sdb1 Return Code: 1
Nov 16 12:01:53 PiServer local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/.status ; USER=root ; COMMAND=/bin/hostname
Nov 16 12:01:53 PiServer local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/.status ; USER=root ; COMMAND=/usr/bin/cut -d . -f 1
Nov 16 12:01:53 PiServer local2.notice sudo: nobody : TTY=unknown ; PWD=/usr/htdocs/.status ; USER=root ; COMMAND=/etc/nas_status.sh --all


Also, from from a shell console the output for
Code: Select all
 ls /sys/class/block/sd*

root@PiServer:/ # ls /sys/class/block/sd*
/sys/class/block/sda:
alignment_offset discard_alignment holders removable stat
bdi events inflight ro subsystem
capability events_async power sda1 uevent
dev events_poll_msecs queue size
device ext_range range slaves

/sys/class/block/sda1:
alignment_offset discard_alignment inflight power size stat uevent
dev holders partition ro start subsystem

/sys/class/block/sdb:
alignment_offset discard_alignment holders removable stat
bdi events inflight ro subsystem
capability events_async power sdb1 uevent
dev events_poll_msecs queue size
device ext_range range slaves

/sys/class/block/sdb1:
alignment_offset discard_alignment inflight power size stat uevent
dev holders partition ro start subsystem


and for
Code: Select all
fdisk -l

root@PiServer:/ # fdisk -l

Disk /dev/mmcblk0: 7969 MB, 7969177600 bytes
255 heads, 63 sectors/track, 968 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 12 96358+ c Win95 FAT32 (LBA)
/dev/mmcblk0p2 13 136 996030 5 Extended
/dev/mmcblk0p3 137 168 257040 82 Linux swap
/dev/mmcblk0p4 169 480 2506140 83 Linux
/dev/mmcblk0p5 13 21 72261 83 Linux
/dev/mmcblk0p6 22 69 385528+ 83 Linux
/dev/mmcblk0p7 70 102 265041 83 Linux
/dev/mmcblk0p8 103 136 273073+ 83 Linux

Disk /dev/sda: 499.4 GB, 499405291520 bytes
255 heads, 63 sectors/track, 60715 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 60716 487699456 83 Linux

Disk /dev/sdb: 250.0 GB, 250059348992 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 30402 244198368+ 7 HPFS/NTFS


not sure if this is normal but the begining of the debug file had this warning:
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.


Let me know if there is any other information you need.
Thank you again for your help.
Tater
Tater
 
Posts: 3
Joined: Thu Jul 17, 2014 1:26 am

Re: NTFS disk not recognized

Postby Jocko » Wed Aug 13, 2014 8:54 am

Hi Tater,

Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
It is not clear for me what is the related disk.

So first, I think that you will get also this warning with this command from a shell console
Code: Select all
gdisk /dev/sda
(enter q to exit) repeat with sdb. You should read this warning from one of both output.

I found this from Internet
When you convert your disk from MBR to GPT, You may see this warning which prevent you from converting:

Warning! Secondary partition table overlaps the last partition by 33 blocks!

It is because GPT needs to store a backup copy in the last 33 sectors of the disk. So you need to resize your last partition to make at least 33 sectors free space. I have tried, and 1 MiB is free space is enough. (1 MiB unallocated space)

It runs right up to the very last sector of the disk, which is not allowed since the GPT stores a backup copy in the last 33 sectors of the disk. If there isn’t anything important on the partition, you should be able to just delete it in gdisk.
Do you try to convert a disk from MBR to GPT ?
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NTFS disk not recognized

Postby Jocko » Wed Aug 13, 2014 9:11 am

Another explanation to detect what is wrong.

On each disk, you have a primary partition
Code: Select all
gdisk /dev/sdb
Enter 'r' and 'o' then you get this output
Code: Select all
Disk size is 3987456 sectors (1.9 GiB)
MBR disk identifier: 0x00000000
MBR partitions:

Number  Boot  Start Sector   End Sector   Status      Code
   1                     1      3987455   primary     0xEE
=> Note 3987455 In my example
Now print the partition => Enter 'p' if you are still in the gdisk interface and the output is
Code: Select all
Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         3987422   1.9 GiB     8300  Linux filesystem
So the last sector of my partition is 3987422.

=>3987422 + 33 = 3987455 :thumbup As this disk contains a GPT table is ok

But in a 2d example, with a not GPT table I have:
Code: Select all
gdisk /dev/sda

a Primary table
Code: Select all
Number  Boot  Start Sector   End Sector   Status      Code
   1                     1   3907029167   primary     0xEE
and in my partition table
Code: Select all
   8         5735268      3907024064   1.8 TiB     8300  Linux filesystem
The last used sector is 3907024064 and then I have only 3 free sectors. So if I try to convert my MBR table to a GPT table I would get an error.

So I assume that with your used partition utility (GPT, GPART,...) on a disk, the primary table is set as a GPT table but without enough free sectors at the end
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Raspberry Pi 1, 2, 3 and 4

Who is online

Users browsing this forum: No registered users and 3 guests