lkml.org 
[lkml]   [1998]   [Jun]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromMatthew Wilcox <>
Subjectremounting on different directory
DateThu, 4 Jun 1998 12:28:21 +0100 (BST)
Currently,
mount("/dev/hda1", "/mnt/cutie", "adfs", MS_MGC_VAL | MS_REMOUNT, NULL);
returns EINVAL since my /dev/hda1 is mounted on /mnt/robbie.  Is there
a good reason why I shouldn't attempt to play with mount to persuade it
to move /dev/hda1 from /mnt/robbie to /mnt/cutie?

My motivation: There are a lot of people who'd like to try ARMLinux
but are put off by having to repartition their hard discs.  Rather than
bolt a pseudo-unix filesystem on top of Acorn's ADFS, like UMSDOS does,
I think it would be better to create a large file under ADFS which can
then be mounted via the loopback device.  But once you run through the
initrd process, you'll end up with /dev/hda1 mounted on /initrd/adfs and
not be able to free the initrd memory.  You can't unmount /initrd/adfs
since the loopback device is on it.  All I want to do is move it to
/adfs and then I can get rid of the /initrd.

So does anyone have either a better way of solving this, or objections
to this extension of the mount functionality?

-- 
Set Alias$Case Set Alias$[ |||| |MSet Alias$Otherwise Set Alias$[ \ Matthew
"" |MSet Alias$When If %0=%%0 Then Set Alias$[ "" ||MIf %0=%%0    \ Wilcox
Then Set Alias$Otherwise Set Alias$[ |||||||||||||||| ||MIf       \
%0=%%0 Then Set Alias$When Set Alias$[ ||||||||||||||||
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.997 / U:0.660 seconds]
©2003-2008 Jasper Spaans