pivot_root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello,
I need help on the pivot_root( ) system call:
a final part of my linuxrc.cc is:  

res = mount ( drv.c_str(), "/mnt/populate/", "reiserfs", 0,
NULL );
if ( res == -1 ) perror ( "mount real root" );
pivot_root ( "/mnt/populate", "/mnt/populate/initrd" );
return 0;

where /mnt/populate is a ReiserFS partition.

I get a kernel panic.  Please help.

thanx
weichong


_____________________________________________________________________
Net:WxS (M) Sdn. Bhd. at http://www.netwxs.com/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux