mount disk with data

rmxs

Verified User
Joined
Jan 14, 2007
Messages
133
Hello,
I have a 2nd disk on my box,was mounted on my box but after restart is unmounted.

2nd disk was /home2

Code:
[root@server ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14         274     2096482+  82  Linux swap / Solaris
/dev/sda3             275       60801   486183127+  83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121601   976760001   83  Linux


the disk lives now at /dev/sdb1 and have data on it.
How can i mount it safe again to /home2 (directory exist) and add it to /etc/fstab without data lost?


Thanks
 
Last edited:
ok fixed mount /dev/sdb1 /home2 do the trick

but how can i add it to /etc/fstab ??
 
Back
Top