Talk:NetBSD from an USB Memory Stick

From NetBSD Wiki

Jump to: navigation, search
  1. fdisk -i /dev/rsd0d

Update the bootcode from /usr/mdec/mbr? [n] y We haven't written the MBR back to disk yet. This is your last chance. Should we write new partition table? [n] y

  1. fdisk -u /dev/rsd0d

Disk: /dev/rsd0d NetBSD disklabel disk geometry: cylinders: 975, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 1998846 BIOS disk geometry: cylinders: 976, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 1998846 Do you want to change our idea of what BIOS thinks? [n] Partition table: 0: NetBSD (sysid 169)

   start 32, size 1998814 (976 MB, Cyls 0-975/63/31), Active

1: <UNUSED> 2: <UNUSED> 3: <UNUSED> Bootselector disabled. Which partition do you want to change?: [none] 0 The data for partition 0 is: NetBSD (sysid 169)

   start 32, size 1998814 (976 MB, Cyls 0-975/63/31), Active

sysid: [0..255 default: 169] 169 start: [0..976cyl default: 32, 0cyl, 0MB] size: [0..976cyl default: 1998814, 976cyl, 976MB] bootmenu: [] Partition table: 0: NetBSD (sysid 169)

   start 32, size 1998814 (976 MB, Cyls 0-975/63/31), Active

1: <UNUSED> 2: <UNUSED> 3: <UNUSED> Bootselector disabled. Which partition do you want to change?: [none] We haven't written the MBR back to disk yet. This is your last chance. Partition table: 0: NetBSD (sysid 169)

   start 32, size 1998814 (976 MB, Cyls 0-975/63/31), Active

1: <UNUSED> 2: <UNUSED> 3: <UNUSED> Bootselector disabled. Should we write new partition table? [n] y

  1. fdisk -a /dev/rsd0d

Disk: /dev/rsd0d NetBSD disklabel disk geometry: cylinders: 975, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 1998846 BIOS disk geometry: cylinders: 976, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 1998846 Partition table: 0: NetBSD (sysid 169)

   start 32, size 1998814 (976 MB, Cyls 0-975/63/31), Active

1: <UNUSED> 2: <UNUSED> 3: <UNUSED> Bootselector disabled. Do you want to change the active partition? [n] y Choosing 4 will make no partition active. active partition: [0..4 default: 0] 0 Are you happy with this choice? [n] y We haven't written the MBR back to disk yet. This is your last chance. Should we write new partition table? [n] y

  1. disklabel -i -I sd0

partition> a Filesystem type [?] [4.2BSD]: Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: Partition size ('$' for all remaining) [975.999c, 1998846s, 975.999M]: $ partition> d Filesystem type [?] [unused]: Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: Partition size ('$' for all remaining) [975.999c, 1998846s, 975.999M]: partition> W Label disk [n]? y disklabel: partitions a and e overlap Label written partition> Q

  1. newfs /dev/rsd0a

/dev/rsd0a: 976.0MB (1998846 sectors) block size 8192, fragment size 1024

       using 22 cylinder groups of 44.37MB, 5679 blks, 11008 inodes.

super-block backups (for fsck -b #) at:wtfs: write error for sector 32: Read-only file system

Personal tools