I have been attempting to convert my drives filesystem over to EXT4, purely because it will always be plugged into the Raspberry Pi thus it is just much better to go through ext4.
I am having a problem, however - regardless of what I do, blkid always reports the drive as a "ntfs" drive, which is not what I want.
I have been through fdisk, deleted the only partition on the drive, created a new linux partition (which works), wrote the changes to disk and reboot - however, upon reboot and mount the drive is constantly working (i.e the disk is spinning and head is moving) regardless of the fact that nothing is actually happening
There is obviously something wrong here, the drive has an LED that indicates the drive is busy and that is constantly flickering now I have tried to set up an ext4 filesystem, once I format back to ntfs or fat, it is fine.
Any help would be appreciated!
edit:
Should probably state I have a Raspberry Pi Model B and a Samsung M3 portable HDD. HDD is plugged into a powered USB Hub.
edit2:
The process I have been taking:
- Start by checking
blkid, make sure the device has been recognized and check the filesystem (at this point, it has always been ntfs) - Type
sudo fdisk /dev/sda, delete any existing partitions - Create a brand new, primary partition, onto the HDD. Make it span the full drive.
- Write the changes to the harddrive, reboot the Pi
- Next, I run
sudo mkfs.ext4 /dev/sda1to format the new partition withext4 - Once again, I reboot.
- Finally, I mount the partition using
sudo mount /dev/sda1 /media/usbhdd
And this where I am now, the External Harddrive is constantly working (identified by the LED blinking, and the drive itself vibrating)
After all of this, here are the results:
/proc/partitions
major minor #blocks name
179 0 7565312 mmcblk0
179 1 57344 mmcblk0p1
179 2 7503872 mmcblk0p2
8 0 976762584 sda
8 1 976761560 sda1
sudo fdisk /dev/sda partition print
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 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: 0x2acf4408
Device Boot Start End Blocks Id System
/dev/sda1 2048 1953525167 976761560 83 Linux
It might also be worth noting that, at this point, blkid does not display the drive at all.
sudo mkfs.ext4 /dev/sdashould work – Milliways Feb 23 '15 at 22:56mkfs -t ext4. I assume that is what you mean? – Jake Ball Feb 23 '15 at 22:58mkfs.ext4, although they probably boil down to the same. I did this just a couple of days ago. I usepartedto create partitions (the man pages have a lot of info on tools, some of which are old). Your fdisk shows/dev/sda1p1. What doessudo parted printshow? – Milliways Feb 23 '15 at 23:06sudo fdisk /dev/sdato add a primary partition which is labelled as/dev/sda1. – Jake Ball Feb 23 '15 at 23:45blkid. I can mount the drive, but back to the issue where the drive is constantly in use despite the Pi being idle (which I wasn't having when it was formatted as NTFS). – Jake Ball Feb 24 '15 at 00:06