lkml.org 
[lkml]   [2003]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Can't mount USB partition as root
On Dec-30 2003, Tue, 10:10 +0100
Karel Kulhavý <clock@twibright.com> wrote:

> On Mon, Dec 29, 2003 at 06:49:51PM +0100, Tomas Szepe wrote:
> > On Dec-29 2003, Mon, 18:33 +0100
> > Karel Kulhavý <clock@twibright.com> wrote:
> >
> > > > You'll need to load the usb modules using initrd ramdisk, then switch root
> > > > to the usb device to continue booting the system.
> > >
> > > This is the problem #2. I am not able to remount /. "device or resource busy".
> > > How do I remount the "/"?
> >
> > /sbin/mount -o remount,rw /
>
> bash-2.05b# mount
> /dev/hda4 on / type xfs (rw)
> none on /dev type devfs (rw)
> none on /proc type proc (rw)
> none on /dev/pts type devpts (rw)
> /dev/hda1 on /boot type ext2 (rw,noatime)
> none on /dev/shm type tmpfs (rw)
> bash-2.05b# mount -o remount,rw /dev/sda1 /
> bash-2.05b# mount
> /dev/hda4 on / type xfs (rw)
> ^^^^^^^^^
> none on /dev type devfs (rw)
> none on /proc type proc (rw)
> none on /dev/pts type devpts (rw)
> /dev/hda1 on /boot type ext2 (rw,noatime)
> none on /dev/shm type tmpfs (rw)
>
> bash-2.05b# mount --version
> mount: mount-2.12
> bash-2.05b# cat /proc/version
> Linux version 2.6.0 (root@oberon) (gcc version 3.3.2 20031022 (Gentoo Linux
> 3.3.2-r3, propolice)) #4 Mon Dec 29 12:20:39 MET 2003
>
> When doing find / after that, the IDE disk goes crazy, not the USB one.
> So that mount doesn't lie and nothing is really remounted (and no
> error message issued). Is this how things are supposed to work?

As others have said, you need to either

a) patch your kernel to wait for the usb disk to be detected.
(Your only choice w/o an initrd.)

b) modify your initrd to mount the usb disk and pivot_root(2).

--
Tomas Szepe <szepe@pinerecords.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [from the cache]
©2003-2011 Jasper Spaans