Forum

Full Version: New harddrive not showing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

Can anyone please help.

Just received a new USB 2 750gb external hard drive to replace my current 60gb HD that the PI is booting from.

I first tried to just plug in both HD into the PI (both had Y power cables so expected power to be no issue) but the PI just crashed.

Removed both HD and plugged both into my lubuntu netbook and did a simple dd of=/dev/ ...... if ... etc and cloned the 60 to the 750. All went ok. The netbook after a reboot sees the same files on both.

Plugged in the 750 to the PI but no boot up. As I'm headless I changed the /boot/ back to root=/dev/mmcblk0p2 PI now starts but no files found or anything.

As I've got a spare OS on a 2Gb different card I tried that - boots as normal but the PI can't seem to find the new HD.

Any ideas ?????

xbian@Raspberry ~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 1854296 1325284 529012 72% /
/dev/mmcblk0p2 1854296 1325284 529012 72% /
tmpfs 48020 252 47768 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 10240 0 10240 0% /dev
tmpfs 96020 0 96020 0% /run/shm
/dev/mmcblk0p1 34662 10973 23689 32% /boot
xbian@Raspberry ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
xbian@Raspberry ~ $ sudo fdisk -l

Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes
4 heads, 16 sectors/track, 60032 cylinders, total 3842048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f06a6

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 71679 34816 c W95 FAT32 (LBA)
/dev/mmcblk0p2 71680 3842047 1885184 83 Linux
xbian@Raspberry ~ $

Thanks.

Rich

Think I've fixed it. Completely deleted all partitions on the netbook and reformatted to EXT4. Now the PI at least sees it. Just going to do dd copy again and see what happens.

Thanks for reading.

xbian@Raspberry ~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 1854296 1325584 528712 72% /
/dev/mmcblk0p2 1854296 1325584 528712 72% /
tmpfs 48020 264 47756 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 10240 0 10240 0% /dev
tmpfs 96020 0 96020 0% /run/shm
/dev/sda1 721075720 236004 684211116 1% /media/usb0
/dev/mmcblk0p1 34662 10973 23689 32% /boot
xbian@Raspberry ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 14cd:6116 Super Top M6116 SATA Bridge

xbian@Raspberry ~ $ sudo fdisk -l

Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes
4 heads, 16 sectors/track, 60032 cylinders, total 3842048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f06a6

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 71679 34816 c W95 FAT32 (LBA)
/dev/mmcblk0p2 71680 3842047 1885184 83 Linux

Disk /dev/sda: 750.2 GB, 750156373504 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149167 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00017dca

Device Boot Start End Blocks Id System
/dev/sda1 63 1465144064 732572001 83 Linux

Rich
Another update - seems that the PI just doesn't like the "Sonnics" branded external hard drives from amazon.

Bus 001 Device 004: ID 14cd:6116 Super Top M6116 SATA Bridge

Removed the hard drive and put inside another caddy (different chipset) and now the 750 Gb shows perfectly.

Managed to clone my old 60gb onto it and its booting as normal.

Only problem now is I can't get it to use the full 750 space. Last time a sudo resize2fs /dev/sda1 worked but not now ?

xbian@Raspberry ~ $ sudo resize2fs /dev/sda1
resize2fs 1.42.5 (29-Jul-2012)
Filesystem at /dev/sda1 is mounted on /; on-line resizing required
old_desc_blocks = 4, new_desc_blocks = 44
resize2fs: Permission denied to resize filesystem

Any ideas ?

xbian@Raspberry ~ $ sudo fdisk -l

Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes
4 heads, 16 sectors/track, 60032 cylinders, total 3842048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f06a6

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 71679 34816 c W95 FAT32 (LBA)
/dev/mmcblk0p2 71680 3842047 1885184 83 Linux

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00017dca

Device Boot Start End Blocks Id System
/dev/sda1 63 1465144064 732572001 83 Linux

xbian@Raspberry ~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 57683772 9120580 48563192 16% /
/dev/sda1 57683772 9120580 48563192 16% /
tmpfs 38284 264 38020 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 10240 0 10240 0% /dev
/dev/sda1 57683772 9120580 48563192 16% /media/usb0
tmpfs 76560 0 76560 0% /run/shm
/dev/mmcblk0p1 34662 10973 23689 32% /boot


Rich
is the fs ext3/4 or ext2?
It was ext4. Got sick of messing so just wiped the whole partition table in lubuntu and dd a new xbian install on top and resized as before. Worked this time.

Rich
Reference URL's