Mein Stick ist dabei so aufgeteilt:
- Code: Alles auswählen
/dev/sda1 /boot ext3 256MB
/dev/sda2 swap swap 256MB
/dev/sda3 / ext3 Rest
Kleine Anleitung, ich boote dazu mit der Debian-Netinstall-CD in den Rettungsmodus:
1) Den nagelneuen Stick platt machen
- Code: Alles auswählen
umount /dev/sda1
fdisk /dev/sda
Command (m for help): d
Selected partition 1
Command (m for help): p
Disk /dev/sda: 4007 MB, 4007657472 bytes
86 heads, 22 sectors/track, 4137 cylinders
Units = cylinders of 1892 * 512 = 968704 bytes
Device Boot Start End Blocks Id System
Die Partitionen erstellen:
- Code: Alles auswählen
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-4137, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-4137, default 4137): +256M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (266-4137, default 266):
Using default value 266
Last cylinder or +size or +sizeM or +sizeK (266-4137, default 4137): +256M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (531-4137, default 531):
Using default value 531
Last cylinder or +size or +sizeM or +sizeK (531-4137, default 4137):
Using default value 4137
/dev/sda1 bootbar machen:
- Code: Alles auswählen
Command (m for help): a
Partition number (1-4): 1
Command (m for help): p
Disk /dev/sda: 4007 MB, 4007657472 bytes
86 heads, 22 sectors/track, 4137 cylinders
Units = cylinders of 1892 * 512 = 968704 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 265 250679 83 Linux
/dev/sda2 266 530 250690 83 Linux
/dev/sda3 531 4137 3412222 83 Linux
und sda2 als swap kennzeichnen:
- Code: Alles auswählen
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap / Solaris)
Command (m for help): p
Disk /dev/sda: 4007 MB, 4007657472 bytes
86 heads, 22 sectors/track, 4137 cylinders
Units = cylinders of 1892 * 512 = 968704 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 265 250679 83 Linux
/dev/sda2 266 530 250690 82 Linux swap / Solaris
/dev/sda3 531 4137 3412222 83 Linux
und alles speichern:
- Code: Alles auswählen
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
jetzt formatieren:
- Code: Alles auswählen
mkfs.ext3 /dev/sda1
mkfs.ext3 /dev/sda3
mkswap /dev/sda2
Dann einbinden:
- Code: Alles auswählen
mount /dev/sda3 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
und dann das Tarfile darauf entpacken.
- Code: Alles auswählen
tar xvpjf DebvisionCR2-USB.tar.bz2 -C /mnt/
Grub einrichten und schon kann es losgehen. Dabei hat sich bei mir folgender Weg bewährt:
- Code: Alles auswählen
umount /dev/sda1
chroot /mnt
rm /etc/mtab
mount -a
grub-install /dev/sda1
Jetzt in der /boot/grub/menu.lst hda in sda ändern und dann weiter nochmal mit Grub:
- Code: Alles auswählen
grub
grub> root=(hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/menu
.lst"... succeeded
Done.
grub>

