Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Auto mount 4TB USB drive with NTFS/GPT on start with FSTAB

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
1byte
Posts: 59
Joined: 2017-07-16 06:51

Auto mount 4TB USB drive with NTFS/GPT on start with FSTAB

#1 Post by 1byte »

I am trying to get my external 4TB drive I purchased in BestBuy to auto mount when booting up on my headless Stretch 64bit machine.


Searching net, I have found this, that sort of works:
#UUID=0XXXXXXXXXXXXXXXXX /media/external ntfs-3g defaults 0 0
"man fstab" has nice explanation what all the fields mean, which works, but on next restart the system would hang at boot ...but it all looks to be good,
when I remove the drive from fstab, the pc would not hang on reboot ...

.

$ uname -a
Linux OptiPlex3020M-PentiumG3240T 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux

Here is dmesg when I insert the drive with fstab line disabled ..


[144073.974450] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[144073.995394] usb 2-2: New USB device found, idVendor=1058, idProduct=25fa
[144073.995398] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[144073.995400] usb 2-2: Product: easystore 25FA
[144073.995403] usb 2-2: Manufacturer: Western Digital
[144073.995405] usb 2-2: SerialNumber: 57XXXXXXXXXXXXXXXXXXXXXX
[144074.070309] usb-storage 2-2:1.0: USB Mass Storage device detected
[144074.070995] scsi host4: usb-storage 2-2:1.0
[144074.071157] usbcore: registered new interface driver usb-storage
[144074.085435] usbcore: registered new interface driver uas
[144075.102979] scsi 4:0:0:0: Direct-Access WD easystore 25FA 1013 PQ: 0 ANSI: 6
[144075.103359] scsi 4:0:0:1: Enclosure WD SES Device 1013 PQ: 0 ANSI: 6
[144075.135348] sd 4:0:0:0: Attached scsi generic sg1 type 0
[144075.135560] scsi 4:0:0:1: Attached scsi generic sg2 type 13
[144075.137072] sd 4:0:0:0: [sdb] Spinning up disk...
[144075.164119] ses 4:0:0:1: Attached Enclosure device
[144076.158309] .
[144077.182281] .
[144078.206229] .
[144079.230182] .
[144080.254137] .
[144081.278094] .
[144082.302049] .
[144082.302236] ready
[144082.302441] sd 4:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[144082.302637] sd 4:0:0:0: [sdb] 7813969920 512-byte logical blocks: (4.00 TB/3.64 TiB)
[144082.302640] sd 4:0:0:0: [sdb] 4096-byte physical blocks
[144082.302859] sd 4:0:0:0: [sdb] Write Protect is off
[144082.302863] sd 4:0:0:0: [sdb] Mode Sense: 47 00 10 08
[144082.303078] sd 4:0:0:0: [sdb] No Caching mode page found
[144082.303140] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[144082.304145] sd 4:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[144082.500129] sdb: sdb1
[144082.500702] sd 4:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[144082.501234] sd 4:0:0:0: [sdb] Attached SCSI disk

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Auto mount 4TB USB drive with NTFS/GPT on start with FST

#2 Post by debiman »

does it have to be ntfs?
does it have to be one gigantic partition?
does it work normally (no delay etc.) when manually plugging it in, and using it?
where does the boot hang? at which point? mounting the drive? have you tried to wait it out?
would it work to mount any ntfs partition on bootup?

User avatar
Soapm
Posts: 603
Joined: 2012-05-22 04:23
Has thanked: 1 time

Re: Auto mount 4TB USB drive with NTFS/GPT on start with FST

#3 Post by Soapm »

My server couldn’t see a full 4tb drive via usb. I had to hook them directly to the Sata ports to see the full drives.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Auto mount 4TB USB drive with NTFS/GPT on start with FST

#4 Post by debiman »

^ this to answer my questions?
so it is [SOLVED] now?
please mark it so.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Auto mount 4TB USB drive with NTFS/GPT on start with FST

#5 Post by p.H »

Soapm is not the OP.

Edit : From the kernel logs, the USB disk seems to take a very long time to spin up.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Auto mount 4TB USB drive with NTFS/GPT on start with FST

#6 Post by debiman »

p.H wrote:Soapm is not the OP.
oops!

1byte
Posts: 59
Joined: 2017-07-16 06:51

Re: Auto mount 4TB USB drive with NTFS/GPT on start with FST

#7 Post by 1byte »

debiman wrote: does it have to be ntfs?
does it have to be one gigantic partition?
does it work normally (no delay etc.) when manually plugging it in, and using it?
where does the boot hang? at which point? mounting the drive? have you tried to wait it out?
would it work to mount any ntfs partition on bootup?
YES to NTFS, as I need to be able to plug the HDD to Window$ machine :(

It does not have to be one gigantic partition, but I will be attaching another 3 more 4TB HDD to this PC,
so would making smaller partitions make difference?

Have not tried manually "manually plugging it in", will try later ..

Have not tried without the drive, will try later ..

"Loading into the ramdisk ..." it hangs on ..

Post Reply