Re-read partition table?

Asked by Alec Wright on 2007-11-03

Hi. Is there a command to re-read the partition table of a pen drive?
Cheers

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Try fdisk -l

HTH

Revision history for this message
Alec Wright (alecjw) said :
#2

That only prints out the partition table. I want the kernel to recognise it too. ie fdisk -l says /dev/sdb1's there, but ls /dev/sdb* only says /dev/sdb.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Yes /dev/sdb is the drive

You can't see the internal drive partition under /dev/sdb*

Please tell us what are you trying to do...?

What partition type on your pen drive are you trying to read...?

Thank you

Revision history for this message
Jan-Philipp Litza (jplitza) said :
#4

It's odd to partition a pen drive, but nevertheless, the command you looking for is `partprobe`
elart.it: The kernel keeps an internal list of partitions on which it operates. This list is once built at startup and not modified later on without explicit instruction. When you change the partition table of a drive while running, the kernel doesn't notice that change - until you use partprobe.

Can you help with this problem?

Provide an answer of your own, or ask Alec Wright for more information if necessary.

To post a message you must log in.