Quote:
Originally Posted by jggimi
1) Review your /var/log/messages* files -- this is your kernel message history -- and search for error messages with timestamps that match the time of this most recent crash or hang.
|
Yesterday i had a problem and my pc was stuck on the boot kernel messages(PC stucked and shut it down with the power button) so i reinstalled openbsd so there is no history.I think there could be some solution to fix it without reinstalling but had no patience so i did it the "noob way".
Anyway i was thinking a lot my issue yesterday and i thought something practical(if it works).I decided to create two parttions:
1)msdos ,40gigabytes as an intermediary partition from and to OpenBSD between the other OSes.
2)4.2BSD ,with the rest of the capacity of the drive.
So this is what i did:
added
i and
k partitions which now look like this:
Code:
$ sudo disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: 001-9VT156
duid: ba0c2bddc8cd4a44
flags:
bytes/sector: 4096
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 30400
total sectors: 488378646
boundstart: 0
boundend: 488378646
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 488378646 0 unused
i: 10490382 63 MSDOS
k: 477885552 10490448 4.2BSD 8192 65536 1
then formatted using these commands:
Code:
newfs_msdos /dev/rsd0i
and
When trying to mount :
Code:
mount -t msdos /dev/sd0i /usr/usbdevices
and
Code:
mount /dev/sd0k /usr/usbdevices
Both mount successfully.
Now what i want to ask is:
1)I need to mount both partitions everytime i attach the disk or the one i need everytime?
2)Also how i set in which partition a file will be saved?I mean if i cd to disk i see no directories or anything.It's completely empty.