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 |
Open /etc/fstab as root.
It probably has a section similar to this: Code:
/dev/sda1 / ext3 noauto,noatime 1 2 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. |
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. |
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 |
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. |
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. |
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
|
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. |
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 |
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. |
All times are GMT -5. The time now is 08:14 AM. |