Adding external HDD to Raspberry Pi

Adding external HDD to Raspberry Pi

Gabor Szabo gabor at szabgab.com
Sun Dec 14 19:30:43 IST 2014


So finally I install the Raspberry Pi I bought a few weeks ago and wanted
to add an external HDD.
I plugged in the external hard drive and /var/log/syslog printed the
following:


Dec 14 17:02:55 pi kernel: [  759.981949] usb 1-1.3: new high-speed USB
device number 8 using dwc_otg

Dec 14 17:02:55 pi kernel: [  760.163364] usb 1-1.3: New USB device found,
idVendor=1058, idProduct=0820

Dec 14 17:02:55 pi kernel: [  760.163398] usb 1-1.3: New USB device
strings: Mfr=1, Product=2, SerialNumber=5

Dec 14 17:02:55 pi kernel: [  760.163414] usb 1-1.3: Product: My Passport
0820

Dec 14 17:02:55 pi kernel: [  760.163429] usb 1-1.3: Manufacturer: Western
Digital

Dec 14 17:02:55 pi kernel: [  760.163444] usb 1-1.3: SerialNumber:
57583431413432454363833

Dec 14 17:02:55 pi kernel: [  760.169522] usb-storage 1-1.3:1.0: USB Mass
Storage device detected

Dec 14 17:02:55 pi kernel: [  760.181935] scsi0 : usb-storage 1-1.3:1.0

Dec 14 17:02:56 pi kernel: [  761.183065] scsi 0:0:0:0: Direct-Access
WD       My Passport 0820 1012 PQ: 0 ANSI: 6

Dec 14 17:02:56 pi kernel: [  761.187365] scsi 0:0:0:1: Enclosure
WD       SES Device       1012 PQ: 0 ANSI: 6

Dec 14 17:02:56 pi kernel: [  761.189473] sd 0:0:0:0: [sda] Spinning up
disk...

Dec 14 17:02:56 pi kernel: [  761.277106] sd 0:0:0:0: Attached scsi generic
sg0 type 0

Dec 14 17:02:56 pi kernel: [  761.278094] scsi 0:0:0:1: Attached scsi
generic sg1 type 13


But then when I try to run


$ sudo fdisk /dev/sda

I get

fdisk: unable to open /dev/sda: No such device or address

$ ls -l /dev/sda

brw-rw---T 1 root floppy 8, 0 Dec 14 17:21 /dev/sda

$ sudo fdisk -l

only lists the sdcard


The external disk is brand new and it has NTFS on it. I have not handled
disk in linux for a long time, but a I recall I am supposed to use fdisk to
partition it and then use mkfs.ext4 to format.


So what am I missing here?


Gabor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20141214/4d4e37ea/attachment.html>


More information about the Linux-il mailing list