LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-21-2009, 02:57 PM   #1
khirodpatra
LQ Newbie
 
Registered: Nov 2009
Distribution: debian,ubuntu,redhat
Posts: 10

Rep: Reputation: 0
How To-:Rename The New Partition


Hi

At the time of installation UBUNTU 9.04 ,I just create 4 partition from 80GB hdd

i.e

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6079 48829536 83 Linux
/dev/sda2 6080 9729 29318625 5 Extended
/dev/sda5 6080 7903 14651248+ 83 Linux
/dev/sda6 7904 9362 11719386 83 Linux
/dev/sda7 9363 9729 2947896 82 Linux swap / Solaris


/dev/sda5 is mounted automatically after boot as lost+found in /boot
/dev/sda6 is mounted automatically after boot as lost+found in /home

I need to do all the below task please Help me out

1)Rename lost+found
2)I need to mount both the partition to be mount from /mnt after login to the system automatically.

Regards
Khirod Patra
 
Old 11-21-2009, 07:20 PM   #2
mdever44
LQ Newbie
 
Registered: Nov 2009
Distribution: Gentoo
Posts: 20

Rep: Reputation: 1
Open /etc/fstab as root.
It probably has a section similar to this:
Code:
/dev/sda1               /                        ext3            noauto,noatime          1 2
/dev/sda5               /boot/lost+found         ext3            noatime,user            0 0
/dev/sda6               /home/lost+found         ext3            noatime,user            0 0
/dev/sda7               none                     swap            sw                      0 0
Change "/boot/lost+found" to "/mnt/mountpoint1" and change "/home/lost+found" to "/mnt/mountpoint2".
Make the directories /mnt/mountpoint1 and /mnt/mountpoint2
That should fix it; mounting sda5 to /mnt/mountpoint1 and /dev/sda6 to /mnt/mountpoint2.
If it doesn't have a the lines for /dev/sda5 and /dev/sda6; you can try adding them. Just make sure you have the right filesystem types for them in the 3rd column.

Last edited by mdever44; 11-21-2009 at 07:22 PM.
 
Old 11-21-2009, 07:46 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Why are those two mounted at "lost+found"? Is that something that Ubuntu set up?

Regardless, you can rename any directory** using mv. e.g.

mv /boot/lost+found /boot/newname

**Note that a partition can be mounted to any directory (which is also called a "mountpoint".) To be precise, you rename the mountpoint, not the partition.
 
Old 11-23-2009, 12:18 PM   #4
khirodpatra
LQ Newbie
 
Registered: Nov 2009
Distribution: debian,ubuntu,redhat
Posts: 10

Original Poster
Rep: Reputation: 0
fstab file on my machine is given below,but there is no option like
/boot/lost+found,then what to do please help


/etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=07089549-feea-46e9-b7eb-6e5ee7c68e0d / ext3 relatime,errors=remount-ro 0 1
# /boot was on /dev/sda6 during installation
UUID=a8fb0d64-6d87-4335-9e42-025d06d9c562 /boot ext3 relatime 0 2
# /home was on /dev/sda5 during installation
UUID=f79bea7d-099c-4615-9a23-cdc51b7b6d83 /home ext3 relatime 0 2
# swap was on /dev/sda7 during installation
UUID=56d1eefd-3268-44c1-8722-8f649b5710c7 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0


Regards
Khirod Patra
 
Old 11-23-2009, 12:41 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Interesting notes about how certain directories were on sda5, sda6, and sda7 during installation. Does that make sense to you? Normally, those extra partitions would not even be created.

If there is no entry in fstab, then partitions will not be automatically mounted unless there are specific commands in one of the startup scripts. First--with the machine running--isue the "mount" command to confirm that those partitions are being mounted. If they are, then you need to look in your startup scripts to see where the command is.
 
Old 11-23-2009, 12:49 PM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Khirod,

Do this:

a) md5sum check your live CD if it is healthy; if it is good, then--

b) Run installation again. Most installer CD's are well done before they are offered to public. It cannot be the installer. Run install again for you may have done something somewhere. If possible repartition you drive if there is no risk of losing important data-files or documents.

Good luck.

Check back how it goes.
 
Old 11-23-2009, 12:52 PM   #7
khirodpatra
LQ Newbie
 
Registered: Nov 2009
Distribution: debian,ubuntu,redhat
Posts: 10

Original Poster
Rep: Reputation: 0
I am sure both the directory lost+found is mounted in /boot and /home after boot the machine automatically.I just change the permission of lost+found to 777 ,and it allow me create files,directories etc. I try to unmount it through the command sudo umount -l /dev/sda5 ,Then after it does not allow me open lost+found directory,but the directory was there(/home) visible
 
Old 11-23-2009, 01:07 PM   #8
khirodpatra
LQ Newbie
 
Registered: Nov 2009
Distribution: debian,ubuntu,redhat
Posts: 10

Original Poster
Rep: Reputation: 0
I have tested in different machine also but same thing again.At the time of installation I choose manual partition
.There is option for to choose

1)type of partition like ext3,ext4,swap...etc.
2)mount from(/,/home,/boot)..
3) another two radio option begin/end(I do not know about this,and by default it is beginning..)

there was a error message If I choose same mount option for two partition.
 
Old 11-23-2009, 01:24 PM   #9
khirodpatra
LQ Newbie
 
Registered: Nov 2009
Distribution: debian,ubuntu,redhat
Posts: 10

Original Poster
Rep: Reputation: 0
This is my /etc/mtab file

/dev/sda1 / ext3 rw,relatime,errors=remount-ro 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,nosuid,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
lrm /lib/modules/2.6.28-11-generic/volatile tmpfs rw,mode=755 0 0
/dev/sda6 /boot ext3 rw,relatime 0 0
/dev/sda5 /home ext3 rw,relatime 0 0
securityfs /sys/kernel/security securityfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/khirod/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=khirod 0 0


Please let me know for any other information.Please help me out
 
Old 11-23-2009, 02:18 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OK:
sda5 is mounted at /home
sda6 is mounted at /boot

nothing is mounted at <path>/lost+found

If you un-mount sda5, then everything on it becomes unaccessible---the /home directory (mount point) is still there, but it will show as empty.
 
  


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
rename partition varun_saa Fedora 2 05-28-2006 08:46 AM
How can I rename the LABEL on my partition xkape Linux - General 3 01-18-2006 02:49 PM
How to rename a partition akjmicro Linux - General 3 12-30-2005 01:59 PM
Rename a partition? xmdms Linux - Enterprise 2 01-16-2005 01:08 PM
Rename Partition def1014 Linux - General 3 08-06-2002 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:08 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
Open Source Consulting | Domain Registration