[Bug 269662] Re: Creating a new partition
Paul Boddie
paul at boddie.org.uk
Sun Jul 3 15:12:04 UTC 2011
I imagine that the reporter has now moved on from this situation.
However, people in similar situations should see the following page for
ways to refresh the kernel's view of the partition table after adding
partitions:
http://serverfault.com/questions/36038/reread-partition-table-without-
rebooting
Running partprobe on the disk device worked for me:
sudo partprobe /dev/sda
I imagine that the need to do this originates in some behavioural change
in the 2.6.24 kernel or earlier.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/269662
Title:
Creating a new partition
Status in “udev” package in Ubuntu:
Invalid
Bug description:
After creating a new (extend) partition in my hard disk using cfdisk I
tried to format it, using mkfs.ext3.
#mkfs.ext3 /dev/sda7
mke2fs 1.40.8 (13-Mar-2008)
Could not stat /dev/sda7 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
# fdisk -l /dev/sda
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xaf264508
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12 96358+ 83 Linux
/dev/sda2 13 134 979965 82 Linux swap / Solaris
/dev/sda3 135 3781 29294527+ 83 Linux
/dev/sda4 3782 11424 61392397+ 5 Extended
/dev/sda5 3782 7428 29294496 83 Linux
/dev/sda6 7429 10816 27214078+ 83 Linux
/dev/sda7 10817 11424 4883728+ 83 Linux
I'm using Ubuntu 8.04.1 with 2.6.24-19-386.
I also tried to create a new device (sda7).
# ls -la /dev/sda*
brw-rw---- 1 root disk 8, 0 2008-09-13 00:09 /dev/sda
brw-rw---- 1 root disk 8, 1 2008-09-12 20:49 /dev/sda1
brw-rw---- 1 root disk 8, 2 2008-09-12 20:49 /dev/sda2
brw-rw---- 1 root disk 8, 3 2008-09-12 20:49 /dev/sda3
brw-rw---- 1 root disk 8, 4 2008-09-12 20:49 /dev/sda4
brw-rw---- 1 root disk 8, 5 2008-09-12 23:50 /dev/sda5
brw-rw---- 1 root disk 8, 6 2008-09-12 23:51 /dev/sda6
# cd /dev
# mknod -m 664 sda7 b 8 7
# ls -la sda7
brw-rw-r-- 1 root root 8, 7 2008-09-13 00:16 sda7
With mkfs.ext3 the error change but still doesn't work.
# mkfs.ext3 /dev/sda7
mke2fs 1.40.8 (13-Mar-2008)
mkfs.ext3: No such device or address while trying to determine filesystem size
I can use (format) the new partition after a system reboot but I don't
know reboot my machine always. I think this could be a problem with
udev, but I don't know exactly.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/269662/+subscriptions
More information about the foundations-bugs
mailing list