LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Showing newly created partition without reboot/partprobe. (https://www.linuxquestions.org/questions/slackware-14/showing-newly-created-partition-without-reboot-partprobe-574288/)

ErV 08-02-2007 02:24 PM

Showing newly created partition without reboot/partprobe.
 
Hello!
I've edited a partition table on a HDD, how can I make newly created partitions appear in /dev without rebooting or using partprobe?

Thanks.

Road_map 08-02-2007 05:02 PM

Sorry about my questions, but did you create a new file system on the new partition and did you create a mount point for the new partition?

ErV 08-02-2007 10:01 PM

Quote:

Originally Posted by Road_map
Sorry about my questions, but did you create a new file system on the new partition and did you create a mount point for the new partition?

Initially I had a 40gb partition. I've been testing it, so i've modified filesystems on it several times. For example, initially I had HDD device as /dev/hdd and two partitions on it - /dev/hdd3 and /dev/hdd5. Then I've used fdisk, deleted both filesystems on /dev/hdd and created single partition which was /dev/hdd1. Partition didn't appear until reboot (various links I've found so far says that I'll need either reboot the machine or use partprobe).
After that I've deleted all partitions once again, and made a copy from another drive using "dd if=/dev/hdc of=/dev/hdd bs=10M" this created valid filesystem on the drive /dev/hdd (partitions hdd1..hdd5) but new partitions didn't appear until reboot.

So I'm just curios - how can I "tell" a kernel that partition table has changed and corresponding /dev/hd* nodes must be recreated?

syg00 08-02-2007 10:13 PM

"man partprobe" - very first line.
Quote:

partprobe - inform the OS of partition table changes
Seems to cover things. Why would you not want to do this ???.

ErV 08-06-2007 06:37 PM

Quote:

Originally Posted by syg00
"man partprobe" - very first line.Seems to cover things. Why would you not want to do this ???.

Partprobe isn't installed on my system by default, for example, as well as it's manual.

hdparm -z /dev/hdd does what I was looking for.

Problem solved.


All times are GMT -5. The time now is 08:44 PM.