This is a discussion on Create a new ext3 file system if a disk was added to the sys within the Linux software forums, part of the Linux Getting Started category; Hi! I had added a new disk. Current disk is has 3 partition root swap backup Now I want to ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi!
I had added a new disk. Current disk is has 3 partition root swap backup Now I want to add new ext3 disk and call it as /home and move current /home directories to this new /home. How do I format disk. I am afraid that my data will be lost if /home is formatted Please gimme some guidline... thamks
__________________
There's no place like 127.0.0.1 |
| Sponsored Links | ||
|
|
|
||||
|
First backup the data. Do not run any one of the command w/o backup.
If your new disk name is /dev/hdb, type the command fdisk /dev/hdb to create a new parition Code:
fdisk /dev/hdb Format /dev/hdb1 (assuming that you created only 1 partion) Code:
mkfs.ext3 /dev/hdb1 Code:
mkdir /tmp/newhome Code:
mount /dev/hdb1 /tmp/newhome cd /tmp/newhome cp -avr /home . Code:
umount /tmp/newhome Open /etc/fstab and append/modify following: Code:
vi /etc/fstab Code:
/dev/hdb1 /home ext3 defaults,errors=remount-ro 0 Goto /home directory Code:
cd /home rm –rf * http://www.cyberciti.biz/faqs/2006/0...filesystem.php http://www.cyberciti.biz/faqs/2006/0...ention-and.php |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File System Error During Boot | svoltmer | Ubuntu / Debian | 3 | 02-21-2008 02:50 PM |
| HP-UX Create system recovery boot tape | stewwalker | HP-UX | 4 | 01-16-2008 06:21 AM |
| Difference between ext2 and ext3 Linux file system | nixcraft | Getting started tutorials | 0 | 05-18-2007 02:43 AM |
| Command to Check Linux File System | lacloai | Getting started tutorials | 3 | 05-14-2007 06:45 PM |
| how to create multiple file in a single command | selvam | Shell scripting | 3 | 07-26-2006 02:01 AM |