LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-25-2003, 02:46 PM   #1
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
help with mount points


ok so i have a win XP and suse 8.2 dual boot.
now i wanted to transfer some of my windows HD space to linux...so i used partition magic to unallocate space from the XP partition and then i used suse's partitioner to allocate that space as an EXT 3 format at the mount point /usr. now i know i messed up somewhere here...'cause apparently all my executables are not working incuding the console terminal.
is there neway i can fix this?i might as well add that my X is not working either so i am using only the console now.
thanks
 
Old 10-25-2003, 02:53 PM   #2
MrSmee
Member
 
Registered: Sep 2003
Location: Plano, TX
Distribution: Slack
Posts: 84

Rep: Reputation: 15
Sound like when you reallocated that partition to /usr you didn't move all of the files associated with it?? I'm not sure, but that would be my first guess.
 
Old 10-25-2003, 03:03 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
"is there neway i can fix this?"

First of all quit using /usr as a mount point and comment out the /usr line in /etc/fstab.

When you designate a directory as a mount point you 'hide' all of the files on that directory. The directories and files are still in their original spot on the disk but Linux will look for them on the partition that the /usr points to.

The way to make /usr a mountpoint is this:
mkdir /newusr
mount your new partition on /newusr
cp /usr/* /newusr -R
umount /newusr
rm /usr/* -R
rmdir /usr
mv /newusr /usr
set up /usr as a mount point in /etc/fstab
boot

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-25-2003, 03:25 PM   #4
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
sorry to hack in, but my question is related to the same issue:

Lets suppose I already have a /usr partition or folder on my / directory..

Now suppose I create a new partition and mount this on an existing /usr partition...What will happen:

1. /usr files will be intact and the additional files of new partition will also become visible in that folder?

or

2. existing files in /usr folder will disappear and only the newly created partition's files will be there in the /usr folder?

or

Any third possibility?

Please clarify...Thanx

Regards,

amit
 
Old 10-25-2003, 04:46 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
"Now suppose I create a new partition and mount this on an existing /usr partition...What will happen:"

2. is correct

"2. existing files in /usr folder will disappear and only the newly created partition's files will be there in the /usr folder?"

The files that disappear will reappear when you umount the partition.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-25-2003, 11:03 PM   #6
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
ok i havent really tried this yet but i had a question.....since i put the mount point as /usr and since that is where all the command line editors binaries are....could someone tell me how i will edit the file(/etc/fstab). i mean would i be able to use vi or pico or emacs?
i am sorry if this is not a question worth asking but i am just a bit anxious until i cant actually get on my machine and change things.
thanks
 
Old 10-25-2003, 11:15 PM   #7
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
you could use anyone of those. I am kind of used to using vi. If you have knoppix, you could edit it with a graphical editor. Knoppix makes a really good rescue disk.
 
Old 10-26-2003, 01:33 AM   #8
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
ok...i see that this thing is not mounting at /usr...infact it is not mounting at all...so can i create a new directory in "/" and then set that as the mount point
also how do i share resources between these two mount points?like how do i install some stuff on this new partition and still have all the executables in it accessible?
i would love to join up these two partitions but partition magic does not let me do that and i do not want to lose the data on my linux partition.
plz help
 
Old 10-26-2003, 11:52 AM   #9
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
"since i put the mount point as /usr and since that is where all the command line editors binaries are....could someone tell me how i will edit the file(/etc/fstab)."

Maybe it would be easier for you to boot a rescue CD and rearrange your partitions from the rescue system. Which brings me to a blatent plug for LifeBoat:

http://users.rcn.com/srstites/LifeBo...home.page.html

___________________________________
Steve Stites
 
Old 10-26-2003, 11:58 AM   #10
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
welll as it turns out....the the free partition is not mouning at /usr...infact it is not being mounted at all so could you tell me someplace where i could mount it?
thanks for allthe help
 
Old 10-26-2003, 12:07 PM   #11
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
"could you tell me someplace where i could mount it?"

Create a new directory and mount it there:
mkdir /horses
mount /dev/hdxx /horses

"also how do i share resources between these two mount points?like how do i install some stuff on this new partition and still have all the executables in it accessible?"

First copy everything over:
cp /usr/* /horses -R

Then umount /horses:
umount /horses

Then make /usr a mount point in /etc/fstab

Then do some renames:
mv /usr /oldusr
mv /horses /usr

Then boot

If everything works OK then delete /oldusr

If everything does not work OK then boot a rescue CD and straighten the mess out.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 10-26-2003 at 12:15 PM.
 
Old 10-26-2003, 12:26 PM   #12
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
thanks a lot for the help....but i had a question.I do not want to mount the drive on /usr...all i want to be able to do is share the disk sapce between these two partitions of the hard drive...like install somethign in the second partition which i will mount at some other place and then be able to access everythign from there like there was no second partition.
i hope you understand what i am saying...i know i can get kinda messy on my writing.
well thanx newayz
Rishabh
 
Old 10-26-2003, 01:32 PM   #13
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,536

Rep: Reputation: 178Reputation: 178
"all i want to be able to do is share the disk sapce between these two partitions of the hard drive"

If I understand you correctly you want Linux to treat two separate partitions as if they are one large partition. I don't think Linux can do that.

You might be able to come up with a good partition/mountpoint plan if you take the following ideas into account:

A mountpoint does not have to be on a / directory. For example you could make a mountpoint at /home/user/data or /opt/kde3.

You can find out how big a file tree is by using the du command, for example:
du -s -h /usr
du -s -h /opt/kde3
du -s -h /home/user
du -s -h /


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
two mount points for same hardware? cadkins Linux - Newbie 4 04-15-2004 09:54 PM
need help with mount points! rmanocha Linux - Hardware 2 10-26-2003 03:23 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM
Mount Points? Mr_Floppy4 Linux - General 2 10-14-2002 10:03 PM
mount points... Jeffrey Linux - General 6 02-24-2001 12:09 PM


All times are GMT -5. The time now is 01:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration