Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Partition block device missing for SSD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
shazow
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 176
Location: Canada, Ontario

PostPosted: Tue Jul 22, 2014 6:24 pm    Post subject: [SOLVED] Partition block device missing for SSD Reply with quote

tl;dr:
Code:
# fdisk -l /dev/sdc
Disk /dev/sdc: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9725312B-8E99-4A6D-AAC9-7DBE295C1005

Device    Start          End   Size Type
/dev/sdc1  2048         6143     2M BIOS boot partition
/dev/sdc2  6144    500118158 238.5G Linux filesystem

# ls /dev/sdc*
/dev/sdc  /dev/sdc1

/dev/sdc2 is not showing up, even after rebooting, repartitioning, etc. But it used to before I repartitioned too many times.

Versions:
- gentoo-sources 3.14.4
- udev 215

The story:
I bought a new SSD (Crucial MX100 256GB) so I hooked it up and spent some time messing around with partition layouts. Everything was going fine, I used `parted -a optimal /dev/sdc` to setup a {grub, boot, rootfs} partition layout and all the correct block devices showed up. Then I changed my mind about having boot separated out, so I started from scratch and made it just the full rootfs partition (used mkfs.ext4). Then I realized I still needed the ~2mb grub partition, so I messed around with `partitionmanager` and some other tools to try and resize it but I gave up and nuked it and started from scratch again. Except this time, only one block device showed up (/dev/sdc1) for two partitions (grub and boot).

Things I have tried:
- Repartitioning with parted, fdisk, partitionmanager, gparted.
- Making more partitions (still just sdc1).
- Rebooting, shutting down.
- Banging my head on the wall.

I'd love some ideas of more things I can try. :) For now, I'm going to upgrade my kernel to 3.15.x and hope for the best.

---

Solution: Enable GUID Partition Tables in the kernel.


Last edited by shazow on Tue Jul 22, 2014 8:59 pm; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43007
Location: 56N 3W

PostPosted: Tue Jul 22, 2014 7:02 pm    Post subject: Reply with quote

shazow,

You did add GPT support to your kernel, didn't you?

With a GPT disk label, you get a free 'protective' MSDOS disklabel too, which contains exactly one partition. Its of tyre EE but you will need to use an old fdisk (or a hex editor) to see it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
shazow
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 176
Location: Canada, Ontario

PostPosted: Tue Jul 22, 2014 7:15 pm    Post subject: Reply with quote

NeddySeagoon wrote:
You did add GPT support to your kernel, didn't you?

Aha, that could very well be it. Re-compiling the kernel now, will update with results. Thanks!
Back to top
View user's profile Send private message
shazow
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 176
Location: Canada, Ontario

PostPosted: Tue Jul 22, 2014 9:00 pm    Post subject: Reply with quote

Yup that did the trick. Marked thread as SOLVED.

Thank you very much, NeddySeagoon.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum