On Tue, 2005-05-24 at 01:50 +0200, Tim Blechmann wrote:
> hi all,
> 
> i've installed a gentoo system on a jfs root partition a few days ago
> ...
> 
> basically it works fine, except for one aspect ... if the partition is
> marked as not clean, the computer refuses to boot ... i have to boot
> from a live cd to run jfs_fsck ...
> 
> my partitions are:
> /dev/hda1 /boot ext2
> /dev/hda2 swap
> /dev/hda3 / jfs
> 
> if the partition is not cleanly umounted, it will post this, when trying
> to mount the partition:
> 
> >> Mounting filesystems...
> Started device management daemon v1.3.5 for /dev
> >> Determining root device...
> >> Mounting root...
> mount: Mounting /dev/hda3 on /newroot failed: Invalid argument
> >> Could not mount specified ROOT, try again
> >> The root block device is unspecified or not detected.
> Please specify a device to boot, or "shell" for a shell...
> 
> is there any way to mount a dirty partition readonly on / to run
> jfs_fsck without the use of a livecd?

Add the ro parameter to the kernel command line when booting.  If using
grub, this should be added to the "kernel" line of menu.lst.  If using
lilo, you should add append="ro" to lilo.conf.  You can also add it
manually from the boot menus.

After fsck replays the journal, the root partition will be remounted
read-write.

> thanks in advance ... tim
> 
-- 
David Kleikamp
IBM Linux Technology Center



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to