Help changing /etc/vfstab - can't boot


 
Thread Tools Search this Thread
Operating Systems Solaris Help changing /etc/vfstab - can't boot
# 1  
Old 12-08-2006
Help changing /etc/vfstab - can't boot

I have Solaris 10 Express that I installed on a PC with two drives. It was on drive 1 (with the boot drive being drive 0). Linux was in a different parition and my boot options where managed by grub.

The Solaris parition's /etc/vfstab referenced the root, user, etc.. disks as c0d1sX. But since I remove the original boot drive, the new disk has become d0. So naturally when I attempt to boot Solaris it craps out.

I can boot single user, but / gets mounted read-only and therefore I cannot change /etc/vfstab.

The CDROM drive doesn't work, so I'm left with few options.

Is it possible to get the root filesystem mounted rw so I can edit the /etc/vfstab?

If so, how?

Thanks.
# 2  
Old 12-08-2006
boot from CD in single use mode, then manually mount c0d0sX to /mnt, and edit /mnt/etc/vfstab
# 3  
Old 12-09-2006
Quote:
Originally Posted by reborg
boot from CD in single use mode, then manually mount c0d0sX to /mnt, and edit /mnt/etc/vfstab
Quote:
Originally Posted by lyonsd
The CDROM drive doesn't work
Any other alternatives?
# 4  
Old 12-09-2006
see if you can remount root:

Code:
mount -o rw,remount /dev/dsk/c0d0sX /

then edit vfstab directly.
# 5  
Old 12-10-2006
If you have another system you can plug the harddisk to it and mount it with -o rw and edit your vfstab.
# 6  
Old 12-11-2006
I'll try the "remount" option first. Thanks.

I do have a system that'll boot Linux and FreeBSD. But under Linux I can't mount the Solaris partitions writable.

And I haven't figured out how to mount them at all under FreeBSD. It doesn't seem to like the type "ufs".
# 7  
Old 03-20-2009
MySQL

yeah ...it works great...was stuck with d read only filesystem since long...just a tip ...incase someone is stuck with similar situation and "mount -o rw,remount" works for you...still u may be stuck in editing vfstab if /var is a separate filesystem.this happens as /var is not mounted and vi creates a temporary file in /var/tmp.try copying the backed up copy of vfstab u should hv taken earlier b4 playing with vfstab.. yeah.great post by the way...keep up the gud work!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Changing boot order doesn't work

Hey i am running both ubuntu 10.10 and windows 7, trying to make the default boot be windows 7 instead of ubuntu but it doesn't want to work. Ive tried changing default in the grub file it didnt work, then i installed startup-manager and set windows 7 as the OS and it still boots into ubuntu. Thx... (3 Replies)
Discussion started by: Era555
3 Replies

2. Homework & Coursework Questions

Changing Drive to be /Boot

Posted in wrong area, post can be deleted, my appologies. (0 Replies)
Discussion started by: derbarbarian
0 Replies

3. UNIX for Dummies Questions & Answers

Setting up a vfstab

Hi Guys i need your help quite urgently I am setting up a vfstab but need some help, here is the file systems 0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> drmlc-00 Part Tag Flag Cylinders Size Blocks Mounted/used by 0 root wm 0 - ... (1 Reply)
Discussion started by: brian112
1 Replies

4. UNIX for Advanced & Expert Users

Changing Ubuntu 10.4 Boot Loader Option

Hi, I am using Ubuntu 10.4 and I want to change the boot loader option to boot Windows 7 by default. Every time I update Ubuntu some extra lines appears at the boot menu. I want to remove them also. Please help me (1 Reply)
Discussion started by: dearanik
1 Replies

5. UNIX for Dummies Questions & Answers

/etc/vfstab vs /etc/mnttab

what is the difference between the /etc/vfstab and /etc/mnttab? when i check both files, the content is almost the same. can you enlighten me? what i know is /etc/vfstab is used for hard mounts. (4 Replies)
Discussion started by: hrist
4 Replies

6. Solaris

etc/vfstab

Hi Everyone, How to find the wrong entry in etc/vfstab or wrong mount point in etc/vfstab ? Thanks & Regards Padmaja. (4 Replies)
Discussion started by: padmaja
4 Replies

7. Shell Programming and Scripting

question about vfstab

Hi all, I have been trying to figure out a way to mount swap on /tmp at a stage early than the default script that does it... If anyone knows how it can be done pls pls help me!!!!! I have been struggling a lot for it Secondly, continuing with the same issue... I wanted to know if the... (4 Replies)
Discussion started by: wrapster
4 Replies

8. Solaris

mount in vfstab

In the end of /etc/vfstab file : /dev/md/dsk/d30 /dev/md/dsk/d30 /odb0 ufs no no - /dev/md/dsk/d40 /dev/md/dsk/d40 /odb1 ufs no no - After boot filesystems /odb0 and /odb1 don't mount. Also they don't mount after comand mount -a But if i'm enter... (1 Reply)
Discussion started by: jess_t03
1 Replies

9. UNIX for Dummies Questions & Answers

/etc/vfstab

If i wish to make a mount permanent, is it /etc/vfstab that i have to the entry add to? If so does anybody know the syntax, ie. is it tab or space delimited ? etc etc any help would be greatly appreciated (3 Replies)
Discussion started by: hcclnoodles
3 Replies

10. UNIX for Dummies Questions & Answers

Changing boot device on a Sun box

I need to change the boot slice on a Sun box, more specifically the alias of "disk". When I do a printenv from the ok prompt, it lists "boot-device disk net", but when it boots, it is looking at the wrong slice on "disk" (3 Replies)
Discussion started by: 98_1LE
3 Replies
Login or Register to Ask a Question