Archiv > Development

Ssd Richtig Partitionieren Mit Mld

<< < (8/10) > >>

clausmuus:
ich brauche leider noch nen Test...
Bitte füge an gleicher Stelle dies ein:

--- Code: ---echo 0
ls -l /dev/$disk*
sleep 5
echo 1
ls -l /dev/$disk*
sleep 5
echo 2
ls -l /dev/$disk*
sleep 5
echo 3
ls -l /dev/$disk*
sleep 5
echo 4
ls -l /dev/$disk*

--- End code ---
 

monchi80:
Damit läuft die Installation durch:

--- Code: ---==start installation==

==partitioning disk sda==
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 30720.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): No partition is defined yet!

Command (m for help): 1: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 2: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 3: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 4: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (1-30720, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-30720, default 30720):
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (2-30720, default 2): Using default value 2
Last cylinder or +size or +sizeM or +sizeK (2-30720, default 30720):
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (957-30720, default 957): Using default value 957
Last cylinder or +size or +sizeM or +sizeK (957-30720, default 30720): Using default value 30720

Command (m for help): Partition number (1-4):
Command (m for help): Partition number (1-4):
Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table

Disk /dev/sda: 32.2 GB, 32212254720 bytes
64 heads, 32 sectors/track, 30720 cylinders, total 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1   *        2048     1957887      977920  83 Linux
/dev/sda2         1957888    62914559    30478336  83 Linux
0
brw-rw----    1 root     root        8,   0 Dec 16 17:39 /dev/sda
brw-rw----    1 root     root        8,   1 Dec 16 17:42 /dev/sda1
brw-rw----    1 root     root        8,   2 Dec 16 17:42 /dev/sda2
1
brw-rw----    1 root     root        8,   0 Dec 16 17:39 /dev/sda
brw-rw----    1 root     root        8,   1 Dec 16 17:42 /dev/sda1
brw-rw----    1 root     root        8,   2 Dec 16 17:42 /dev/sda2
2
brw-rw----    1 root     root        8,   0 Dec 16 17:39 /dev/sda
brw-rw----    1 root     root        8,   1 Dec 16 17:42 /dev/sda1
brw-rw----    1 root     root        8,   2 Dec 16 17:42 /dev/sda2
3
brw-rw----    1 root     root        8,   0 Dec 16 17:39 /dev/sda
brw-rw----    1 root     root        8,   1 Dec 16 17:42 /dev/sda1
brw-rw----    1 root     root        8,   2 Dec 16 17:42 /dev/sda2
4
brw-rw----    1 root     root        8,   0 Dec 16 17:39 /dev/sda
brw-rw----    1 root     root        8,   1 Dec 16 17:42 /dev/sda1
brw-rw----    1 root     root        8,   2 Dec 16 17:42 /dev/sda2
------ done ------

==format disk sda1==
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
61184 inodes, 244480 blocks
12224 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=251658240
8 block groups
32768 blocks per group, 32768 fragments per group
7648 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376

Writing inode tables: 0/81/82/83/84/85/86/87/8done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
------ done ------

==format disk sda2==
meta-data=/dev/sda2              isize=256    agcount=4, agsize=1904896 blks
         =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=7619584, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=3720, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
------ done ------

==install system on sda1==
------ done ------

==write bootblock on sda==
/mnt/sda1/mld/boot/isolinux is device /dev/sda1
------ done ------


--- End code ---

Ich habs dann nochmal mit


--- Code: ---ls -l /dev/$disk*
sleep 5
ls -l /dev/$disk*


--- End code ---

dann klappt es wieder nicht:

--- Code: ---==start installation==

==partitioning disk sda==
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 30720.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): No partition is defined yet!

Command (m for help): 1: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 2: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 3: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 4: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (1-30720, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-30720, default 30720):
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (2-30720, default 2): Using default value 2
Last cylinder or +size or +sizeM or +sizeK (2-30720, default 30720):
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (957-30720, default 957): Using default value 957
Last cylinder or +size or +sizeM or +sizeK (957-30720, default 30720): Using default value 30720

Command (m for help): Partition number (1-4):
Command (m for help): Partition number (1-4):
Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table

Disk /dev/sda: 32.2 GB, 32212254720 bytes
64 heads, 32 sectors/track, 30720 cylinders, total 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1   *        2048     1957887      977920  83 Linux
/dev/sda2         1957888    62914559    30478336  83 Linux
brw-rw----    1 root     root        8,   0 Dec 16 17:47 /dev/sda
brw-rw----    1 root     root        8,   0 Dec 16 17:47 /dev/sda
------ done ------

==format disk sda1==
mke2fs 1.41.14 (22-Dec-2010)
Could not stat /dev/sda1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

====== failed ======


--- End code ---

clausmuus:
Bitte teste es noch einmal mit der langen Variante und schaue ob die Test Ausgaben genau so aussehen. Ich würde eigentlich erwarten das beim ersten ls -l ... nicht gleich alle Devices existieren. Ich brauche dies um zu sehen ob das Problem eventuell dadurch lösbar ist, das auf die Devices getestet wird.

Claus

monchi80:
Ich habe es jetzt noch ein paar Mal probiert. Mal zeigt das Log schon bei echo 0 alle Devices und mal zeigt es bei echo 4 noch kein einziges an.
Es läuft also nicht zuverlässig.


--- Code: ---==start installation==

==partitioning disk sda==
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 30720.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): No partition is defined yet!

Command (m for help): 1: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 2: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 3: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): No partition is defined yet!

Command (m for help): 4: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (1-30720, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-30720, default 30720):
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (2-30720, default 2): Using default value 2
Last cylinder or +size or +sizeM or +sizeK (2-30720, default 30720):
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (957-30720, default 957): Using default value 957
Last cylinder or +size or +sizeM or +sizeK (957-30720, default 30720): Using default value 30720

Command (m for help): Partition number (1-4):
Command (m for help): Partition number (1-4):
Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table

Disk /dev/sda: 32.2 GB, 32212254720 bytes
64 heads, 32 sectors/track, 30720 cylinders, total 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1   *        2048     1957887      977920  83 Linux
/dev/sda2         1957888    62914559    30478336  83 Linux
0
brw-rw----    1 root     root        8,   0 Dec 16 21:39 /dev/sda
1
brw-rw----    1 root     root        8,   0 Dec 16 21:39 /dev/sda
brw-rw----    1 root     root        8,   2 Dec 16 21:43 /dev/sda2
2
brw-rw----    1 root     root        8,   0 Dec 16 21:39 /dev/sda
3
ls: /dev/sda1: No such file or directory
brw-rw----    1 root     root        8,   0 Dec 16 21:39 /dev/sda
4
brw-rw----    1 root     root        8,   0 Dec 16 21:39 /dev/sda
------ done ------

==format disk sda1==
mke2fs 1.41.14 (22-Dec-2010)
Could not stat /dev/sda1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

====== failed ======


--- End code ---

clausmuus:
OK, versuchen wir's mal auf die radikale weise ;)

--- Code: ---while [ ! -e /dev/${disk}1 -o ! -e /dev/${disk}2 ]; do
  echo -n "."
  sleep 1
done

--- End code ---

Wenn's schief geht, bleibt die Installation an dieser Stelle hängen. Ehrlich gesagt hege ich jedoch nicht all zu große Hoffnungen das es funktioniert. Es muss noch nen anderen Weg geben das erstellen der Devices anzustoßen. Ich lass mir Morgen mal andere Tests einfallen...

Claus

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version