Subject: sparc classic... can't mount r/w
To: None <port-sparc@netbsd.org>
From: Adam Bozanich <abozan01@ccsf.edu>
List: port-sparc
Date: 06/14/2003 13:24:52
I have installed netbsd on a sun Sparc Station Classic.

The only problem is... I CAN'T FREAK'N MOUNT THE ROOT DIRECTORY READ/WRITE
TO CHANGE A FILE INT /etc!!!!

here's what I get when I boot into the system:

# /sbin/mount -u -w /
mount_ffs: /dev/sd0a on /: specified device does not match mounted device

to start, here's a bit of dmesg:

#############################################################

mainbus0 (root): SUNW,SPARCclassic
sd0 at scsibus0 target 1 lun 0: <SEAGATE, ST34371N, 0338> SCSI2 0/direct
fixed
sd0: 4148 MB, 5168 cyl, 10 head, 164 sec, 512 bytes/sect x 8496960 sectors
sd0: sync (100.0ns offset 15), 8-bit (10.000MB/s) transfers, tagged
queueing
sd1 at scsibus0 target 2 lun 0: <MICROP, 1528-15MD1066701, DD24> SCSI1
0/directd
sd1: 1280 MB, 2100 cyl, 15 head, 83 sec, 512 bytes/sect x 2621688 sectors
sd1: async, 8-bit transfers

root on sd0c dumps on sd0b
WARNING: clock gained 3 days -- CHECK AND RESET THE DATE!
root file system type: ffs

#######################################################

Here's fstab:

/dev/sd0a / ffs rw 1 1
/dev/sd0b none swap sw 0 0
/dev/sd0g /usr ffs rw 1 2

Here's what 'mount' gives me right now:

# mount
root_device on / type ffs (read-only, local)
/dev/sd0g on /usr type ffs (local)

# mount -u -w /dev/sd0a /mnt
mount_ffs: /dev/sd0a on /mnt: specified device does not match mounted
device
# mount /dev/sd0a /mnt
# vi /mnt/etc/rc.conf
ex/vi: Error: /var/tmp/vi.recover: Read-only file system
ex/vi: Modifications not recoverable if the session fails
ex/vi: Error: /mnt/etc/rc.conf: Read-only file system
ex/vi: Error: Unable to create temporary file: Read-only file system
# mount
root_device on / type ffs (read-only, local)
/dev/sd0g on /usr type ffs (local)
/dev/sd0a on /mnt type ffs (local)

Ok, so I figure I should boot up the install system (which is on an
external scsi-disk) and change it from there:

ok probe-scsi
Target 1
  Unit 0   Disk     SEAGATE ST34371N        0338JD253561
                    Copyright (c) 1996 Seagate
                    All rights reserved
Target 2
  Unit 0   Disk     MICROP  1528-15MD1066701DD241578-15MD1066701DD24

ok boot /iommu/sbus/espdma@4,8400000/esp@4,8800000/sd@2,0:b

# mount -u -w /dev/sd0a /mnt
mount_ffs: /dev/sd0a on /mnt: specified device does not match mounted
device
# mount /dev/sd0a /mnt
/dev/sd0a: file system not clean (fs_clean=8); please fsck(8)
/dev/sd0a: lost blocks 0 files 0
# vi /mnt/etc/rc.conf
ex/vi: Error: /var/tmp/vi.recover: Read-only file system
ex/vi: Modifications not recoverable if the session fails
ex/vi: Error: /mnt/etc/rc.conf: Read-only file system
ex/vi: Error: Unable to create temporary file: Read-only file system

Since then (this project has been on hold for a month or so because of
this hang-up) I've tried mounting part of that external hd onto /var/tmp
so that I could use vi, and I've also tried installing the system with
both the new and old procedures, as well as choosing different
combinations of sets
(currently everything's on there :(

Can anybody help me out here?  I would really like to get this system up
an running so I can play ;)

Any help would be greatly appreciated

-Adam