LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (http://www.linuxquestions.org/questions/puppy-71/)
-   -   Does anyone know if my puppy supports more than 15 partitions? (http://www.linuxquestions.org/questions/puppy-71/does-anyone-know-if-my-puppy-supports-more-than-15-partitions-877356/)

eugen 04-27-2011 04:33 AM

Does anyone know if my puppy supports more than 15 partitions?
 
Does anyone know if my puppy supports more than 15 partitions?

andrewthomas 04-27-2011 09:10 AM

I don't think that the problem is distribution specific, but rather a limitation of BIOS.

Although, theoretically you could have an unlimited number of partitions within an extended partition, as you have found out, this limit is finite.

Karl Godt 05-22-2011 07:38 PM

Quote:

Originally Posted by andrewthomas (Post 4338079)
I don't think that the problem is distribution specific, but rather a limitation of BIOS.

Although, theoretically you could have an unlimited number of partitions within an extended partition, as you have found out, this limit is finite.

The puppy kernel is configured :
/etc/modules/DOTconfig-k2.6.33.2-27MAY2010-LUPU-SMP-TICKLESS:
# CONFIG_DEVTMPFS is not set

which is a feature to let the kernel maintain the files @/dev directory .

Puppy has got a ""static"" /dev directory and the /dev/sda[0-9]* go from 1 to 15 .

You can do 2 things :

1 .: delete all /dev/sd[b-i][0-9]* files you don't need and create a /dev/sda16 with
Code:

mknod /dev/sda16 b 8 16
16 is the minor number .
You can get the needed info by
Code:

ls -l --color=never /dev/sda*
Because /dev/sdb has got 8 16 it has to be deleted for double minors don't work .

2 .: use the blkext 259 minors , which are actually configurable @kernel make menuconfig compiletime under -> kernel hacking .
Code:

cat /proc/devices
shows possible majors for block devices .
I have 12 partitions and 4 1GB swap on a 500GB IDE-HD and so I create a 16th device node for it :
Code:

ls -l /dev/sda16
ls: cannot access /dev/sda16: No such file or directory
mknod /dev/sda16 b 259 0
ls -l /dev/sda16
brw-r--r-- 1 root root 259, 0 2011-05-23 02:16 /dev/sda16
free
              total        used        free      shared      buffers
  Mem:      450132      389516        60616            0        36908
 Swap:      3100392            0      3100392
Total:      3550524      389516      3161008
swapon /dev/sda16
free
              total        used        free      shared      buffers
  Mem:      450132      389956        60176            0        36932
 Swap:      4152608            0      4152608
Total:      4602740      389956      4212784

The CONFIG_DEBUG_BLOCK_EXT_DEVT=y would create devices like "/dev/sda8 259 65334" and "/dev/sda9 259 1902345" without the continuing stepping as in ""legacy major 8 mode"" .

Karl Godt 06-28-2011 04:51 PM

I want to add , that I had put
Code:

echo -n "Updating Device nodes " >/dev/console
STATUS=0
CATPROCPART=`cat /proc/partitions | sed 's#^\ *[[:alpha:]].*##g' | sed '/^$/d'`
echo "$CATPROCPART" | while read MAJ MIN SIZE SDEV ; do
[ -b "$1"/dev/$SDEV ] && rm "$1"/dev/$SDEV
STATUS=$(( $STATUS + $? ))
mknod "$1"/dev/$SDEV b $MAJ $MIN
STATUS=$(( $STATUS + $? ))
echo -n '.' >/dev/console
done
if [ ! -d /initrd -o "`busybox df | grep 'initrd'`" = "" ] ; then
status_func $STATUS
fi

into the Puppy /etc/rc.d/rc.sysinit and/or /sbin/init .
So all devices and partitions the kernel autodetects at boot , will be (re-)created .


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