Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

when I change the partition table in Linux (busybox) and exit fdisk I'm still able to mount the old partitions, until I perform a reboot

for example

a)  system is setup and has a /dev/sda1  and /dev/sda2 
b)  enter fdisk, delete both partition 1 and 2 
c)  save and exit 
d)  attempt to mount /dev/sda1, this succeeds when I think it should fail

I would assume d) would fail since the partition has been deleted? what am I missing?

share|improve this question
    
how about running "sync"? –  mtm Aug 17 '12 at 16:21
add comment

1 Answer 1

up vote 1 down vote accepted

The OS must be "forced" to re-read the partition table once changes have been done. A reboot does this and hence you see fdisk changes after a reboot.

I've used the following command before to re-read partition table and I didn't have to reboot,

# partprobe
  • partprobe is part of parted package
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.