Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev doesn't see my new partition
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
ravloony
n00b
n00b


Joined: 04 Feb 2005
Posts: 54
Location: France

PostPosted: Mon Mar 28, 2005 11:06 am    Post subject: udev doesn't see my new partition Reply with quote

I just repartitioned my second hard disk in view of putting lfs on it. However, I only have /dev/hdb and /dev/hdb1.
/dev/hdb2 and /dev/hdb3 don't exist. Should I make them with mknod, or what? I am loath to reboot, but maybe that's what needs to be done?

Thanks in advance
rav
_________________
No sig yet, sig ebuild up soon :-)
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Mon Mar 28, 2005 11:19 am    Post subject: Re: udev doesn't see my new partition Reply with quote

ravloony wrote:
I just repartitioned my second hard disk in view of putting lfs on it. However, I only have /dev/hdb and /dev/hdb1.
/dev/hdb2 and /dev/hdb3 don't exist. Should I make them with mknod, or what? I am loath to reboot, but maybe that's what needs to be done?

anything about partitioning changes in kernel log (`dmesg`)? if not, you can use some other partition editting tool and "save" current partition table, so kernel will re-read it...
_________________
cd /local/pub && more beer > /dev/mouth

Česká dokumentace
Back to top
View user's profile Send private message
ravloony
n00b
n00b


Joined: 04 Feb 2005
Posts: 54
Location: France

PostPosted: Mon Mar 28, 2005 11:30 am    Post subject: Reply with quote

ok, I did 'fdisk /dev/hdb'

It failed with:
Code:

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.

There is nothing in dmesg
Does that mean I have to reboot?
Oh btw, this is my disk setup on /dev/hdb:
Code:

Disk /dev/hdb: 40.0 GB, 40027029504 bytes
16 heads, 63 sectors/track, 77557 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1       38752    19530976+   7  HPFS/NTFS
/dev/hdb2   *       38753       38946       97776   83  Linux
/dev/hdb3           38947       74792    18066384   83  Linux
/dev/hdb4           74793       77557     1393560   82  Linux swap / Solaris

thanks
rav
_________________
No sig yet, sig ebuild up soon :-)
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Mon Mar 28, 2005 12:03 pm    Post subject: Reply with quote

ravloony wrote:
ok, I did 'fdisk /dev/hdb'

It failed with:
Code:

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.

There is nothing in dmesg

yeah, this is beacause the block device is "being used", which could mean (IMHO) variety of things. Do you have something mounted from that disk? If so, unmount first.

Quote:
Does that mean I have to reboot?

if other methods don't work, then you'll have.
_________________
cd /local/pub && more beer > /dev/mouth

Česká dokumentace
Back to top
View user's profile Send private message
ravloony
n00b
n00b


Joined: 04 Feb 2005
Posts: 54
Location: France

PostPosted: Mon Mar 28, 2005 12:30 pm    Post subject: Reply with quote

Quote:

yeah, this is beacause the block device is "being used", which could mean (IMHO) variety of things. Do you have something mounted from that disk? If so, unmount first.


jkt, you were right. I had completely forgotten to umount /dev/hdb1. Woops! Oh well, that solved it anyway.
Thanks for your help
rav
_________________
No sig yet, sig ebuild up soon :-)
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Mon Mar 28, 2005 12:52 pm    Post subject: Reply with quote

ok. Could you please add "[SOLVED]" to the thread title?
_________________
cd /local/pub && more beer > /dev/mouth

Česká dokumentace
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