User avatar
solar3000
Posts: 1051
Joined: Sat May 18, 2013 12:14 am

mount drive with no partitions

Sat Apr 09, 2016 1:31 am

I just formatted a 4TB drive with no partition.
Its mounted as /dev/sdc
No partitions.
How is this possible? I can read and write files to it.
Antikythera

W. H. Heydt
Posts: 12783
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: mount drive with no partitions

Sat Apr 09, 2016 2:18 am

You created a partition when you formatted it. Look at it with "gparted" to see what kind of partition you have.

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: mount drive with no partitions

Sat Apr 09, 2016 2:51 am

solar3000 wrote:I just formatted a 4TB drive with no partition.
Its mounted as /dev/sdc
No partitions.
How is this possible? I can read and write files to it.
Note that if the drive does not mount for some reason then the mount point will revert to the SD card.

I had that situation when my 4TB drive failed. I did not notice it until I almost filled the SD card.
The only clue I had is that the total drive space was showing the size of the SD card instead of the HD.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
rpdom
Posts: 17274
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: mount drive with no partitions

Sat Apr 09, 2016 3:57 am

It is possible to format a "raw" drive with no partitions (sometimes referred to as "floppy mode" as that is how floppy disks were formatted). Then you would mount /dev/sdX instead of /dev/sdXn. You would gain a small amount of extra free space this way, but it would confuse the kernel a little when it checks the disk and finds no partition table.

Return to “General discussion”