LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-02-2007, 03:24 PM   #1
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
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.
 
Old 08-02-2007, 06:02 PM   #2
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
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?
 
Old 08-02-2007, 11:01 PM   #3
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Original Poster
Rep: Reputation: 62
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?
 
Old 08-02-2007, 11:13 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
"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 ???.
 
Old 08-06-2007, 07:37 PM   #5
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Original Poster
Rep: Reputation: 62
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble mounting a newly created partition tauceti38 Linux - Hardware 6 03-16-2005 04:40 AM
permissions for newly created files dialbat Linux - General 2 10-04-2004 03:58 PM
Accessing newly created partitions cragwolf Slackware 5 09-13-2004 09:19 PM
Problem in creating filesystem for newly created partition. appas Linux - Software 2 08-21-2004 04:39 AM
Linux can't see newly created partition Dswissmiss Linux - Software 5 05-17-2004 09:05 AM


All times are GMT -5. The time now is 01:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration