Can I format 2nd hard drive and erase all data?
How to do it?
My box with 2 x 80G hard drive.
The 2nd HD, Disk /dev/hdb, I want to be a backup drive.
but with "lost+found" diretory, nearly 30 Giga bytes size.
Althought I use rm -rf lost+found to del the lost+found diretory,
got a "cannot remove" error message.
What's best method to erase all files on 2nd hard drive?
Thanks.
How to do it?
My box with 2 x 80G hard drive.
The 2nd HD, Disk /dev/hdb, I want to be a backup drive.
but with "lost+found" diretory, nearly 30 Giga bytes size.
Althought I use rm -rf lost+found to del the lost+found diretory,
got a "cannot remove" error message.
What's best method to erase all files on 2nd hard drive?
Thanks.
Code:
[/backup]# rm -rf lost+found
rm: cannot remove `lost+found/#327681/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe': Operation not permitted
rm: cannot remove `lost+found/#327681/local/cpanel/cgi-sys/FormMail.cgi': Operation not permitted
rm: cannot remove `lost+found/#327681/local/cpanel/cgi-sys/formmail.cgi': Operation not permitted
rm: cannot remove `lost+found/#327681/local/cpanel/cgi-sys/FormMail.pl': Operation not permitted
rm: cannot remove `lost+found/#327681/local/cpanel/cgi-sys/formmail.pl': Operation not permitted
rm: cannot lstat `lost+found/#1802243/p007kk/mail/.gnupg/public_html/shopos/includes/languages/english/modules/payment': Input/output error
Code:
[/backup]# ls -l
total 96
drwx--x--x 4 root root 4096 Jun 2 00:20 ./
drwxr-xr-x 28 root root 4096 Jun 4 19:14 ../
drwx--x--x 3 root root 4096 Jun 2 04:00 cpbackup/
drwx------ 256 root root 77824 Jun 1 13:33 lost+found/
Code:
[/backup/lost+found]# ls -l
drwxr-xr-x 6 root root 4096 Dec 18 2004 #8553605/
drwxr-xr-x 3 root root 4096 Aug 2 2003 #8568893/
drwxr-xr-x 4 root root 4096 Dec 30 2003 #8634407/
drwxr-xr-x 3 root root 4096 Dec 1 2004 #868366/
drwx------ 2 root root 4096 May 22 02:15 #868747/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #8765456/
drwx------ 3 root root 4096 May 19 06:14 #8765492/
drwxr-xr-x 2 root root 4096 Mar 25 01:45 #8798792/
drwxr-xr-x 2 root root 4096 Feb 4 2003 #8814607/
drwxr-xr-x 7 root root 4096 Jul 24 2005 #8847367/
drwxr-xr-x 3 root root 4096 Nov 14 2003 #884751/
drwxr-xr-x 3 root root 4096 Oct 31 2002 #8863898/
drwxr-xr-x 3 root root 4096 May 22 06:14 #8865117/
drwxr-xr-x 4 32140 644 4096 Feb 14 09:52 #8897330/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #8912902/
drwxr-xr-x 3 root root 4096 Nov 14 2003 #8978440/
drwxr-xr-x 2 root root 4096 Dec 23 2004 #901152/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #9125905/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #9125912/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #9158671/
drwx------ 2 root root 4096 Jun 23 2004 #9160299/
drwx------ 2 exxzwant exxverstar 4096 Nov 21 2003 #9290507/
drwx------ 2 exxzwant exxverstar 4096 Nov 21 2003 #9290510/
drwxr-x--- 3 exxzwant mail 4096 May 9 2004 #9290513/
drwxr-xr-x 2 root root 4096 Feb 24 2005 #9306118/
drwxr-xr-x 2 root root 4096 Jan 9 2003 #9322504/
drwxr-xr-x 3 root root 4096 Nov 14 2003 #9322534/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #9322536/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #9355267/
drwx------ 3 root root 4096 Dec 6 2004 #9373851/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #9388035/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #9388054/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #9404419/
drwx------ 2 root root 4096 Jan 29 2003 #9453587/
drwxrwx--- 2 operator mail 4096 Nov 14 2003 #98316/
drwxr-xr-x 6 root root 4096 Nov 14 2003 #999439/
drwxr-xr-x 2 root root 4096 Nov 14 2003 #999441/
?--------- ? ? ? ? ? C\t\203\335
# /sbin/fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 268 2048287+ 82 Linux swap
/dev/hda3 269 399 1052257+ 83 Linux
/dev/hda4 400 9729 74943225 5 Extended
/dev/hda5 400 9729 74943193+ 83 Linux
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 270 2064352+ 82 Linux swap
/dev/hdb3 271 9729 75979417+ 83 Linux
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 268 2048287+ 82 Linux swap
/dev/hda3 269 399 1052257+ 83 Linux
/dev/hda4 400 9729 74943225 5 Extended
/dev/hda5 400 9729 74943193+ 83 Linux
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 270 2064352+ 82 Linux swap
/dev/hdb3 271 9729 75979417+ 83 Linux
WHM 10.8.0 cPanel 10.8.2-R119
RedHat Enterprise 4 i686 - WHM X v3.1.0