LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2004, 09:32 AM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
mount points, /home partitions, /etc/fstab's and booting


Code:
# /etc/fstab: filesystem table.
#
# filesystem  mountpoint  type  options  dump  pass
/dev/hda5  /  ext3  defaults,errors=remount-ro  0  1

proc  /proc  proc  defaults  0  0
/dev/fd0  /floppy  vfat  defaults,user,noauto,showexec,umask=022  0  0
usbdevfs  /proc/bus/usb  usbdevfs  defaults  0  0
sysfs  /sys  sysfs  defaults  0  0
/dev/cdrom /cdrom  iso9660  defaults,ro,user,noexec,noauto  0  0
/dev/cdrom1 /cdrom1  iso9660  defaults,ro,user,noexec,noauto  0  0
/dev/dvd /dvd  iso9660  defaults,ro,user,noexec,noauto  0  0
/dev/cdaudio /cdaudio  iso9660  defaults,ro,user,noexec,noauto  0  0
/dev/cdrom1 /mnt/auto/cdrom1  auto   users,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hda2 /mnt/hda2 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda3 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda6 /mnt/hda6 reiserfs noauto,users,exec 0 0
As you can see, I have a root partition at /dev/hda5 and previously hda1 was windows, hda2 /boot, hda3 /swap and hda6 /home.

Knoppix has created an fstab as above, but how do I change it so that I have my previous naming convention, plus when I boot into the system, I'm booting into the /home partition at /dev/hda6 and not a /home directory at the /root partition of /dev/hda5 ?

regards

John
 
Old 11-15-2004, 11:52 AM   #2
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Shouldnt it be in the bootloader.conf? I think u can specify which partition to boot from in grub or lilo (whichever one u r using). I may be wrong though.
 
Old 11-15-2004, 12:39 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Do you want to mount it at /home or /home/bigjohn?
/dev/hda6 /home/bigjohn reiserfs defaults 0 0
 
Old 11-15-2004, 12:54 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Perhaps something like this might work?
Code:
/dev/hda5 / ext3 defaults 0 1
/dev/hda6 /home/bigjohn reiserfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/hda2 /boot ext3 defaults 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=0 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /mnt/auto/cdrom1 auto users,noauto,exec,ro 0 0
/dev/hda1 /mnt/windows ntfs umask=0 0 0
You may find, that if you mount /dev/hda6 as your home folder, that you might not be able to log in as yourself due to permissions issues. The problem is that if the partition was made on a different system it may have allocated a different uid number to your username and group. If so, log in as root and
chown -R $USERNAME:$GROUP /home/$USERNAME
so if your username is bigjohn and your group is users that would be
chown -R bigjohn:users /home/bigjohn
 
Old 11-16-2004, 11:14 AM   #5
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Original Poster
Rep: Reputation: 45
Well I sort of decided this morning, that rather than stick with the knoppix I'll re-install the gentoo - but as you may appreciate, that can take a while.

Just for info, though that /etc/fstab that I posted is basically the one auto generated by knoppix on install to hard drive.

It's always been the case that for about the last 18 months I've run the system with a seperate /home partition, and as you can see, knoppix has picked up it's presence, but for reason's that I don't follow, it just decided to make it an excessible partition while making the /home a directory in the /root partition as opposed to configuring it as the /home partition.

weird!

thanks very much for the replies, much appreciated.

regards

John
 
  


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
mount points for partitions cch2cch Linux - Newbie 1 08-03-2005 01:55 PM
what partitions(mount points) can you reuse in a multiple boot linux system? scottk88 Linux - General 5 08-01-2005 12:49 PM
mount / , /home , /home/usr on different partitions alekoos Slackware 14 05-03-2004 12:39 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 06:48 AM
Mount points - Partitions - etc... Vaugerant Linux - Newbie 7 02-06-2001 03:44 AM


All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration