Lost /usr!!

hi 2 all ,i’m new here and new in linux world too !!
i managed to add a new hard to my pc ,after format and making partitions ,then i decided to move /usr to new hard drive ,and i copied all /usr to /dev/sdb5 and mount it /usr ,
but when i came back 2 delete my old “/usr” that was gone ,and it goes to /dev/sdb5.i need some free space in my old hard dirve .how can i delete does data !?

Hi
need some more info. please post the output of the following commands (you can open a terminal window on your desktop and do a copy/paste):

mount
df -h
cat /etc/fstab

i managed to add a new hard to my pc ,after format and making partitions ,then i decided to move /usr to new hard drive ,and i copied all /usr to /dev/sdb5 and mount it /usr

Did you copy the contents of /usr to this new hard drive, or did you move them? (a move will delete the original files)

Im wondering if you forgot to remove the original /usr directory before mounting the new drive on /usr?

there are many good people on this forum, we will do our best to help you with your problem!

This is beyond me and my limited skills, but I just wanted to welcome you to the wonderful world of Linux. The local gurus will help you to sort your issue out. Have fun, and happy Xing.

It sounds like what you did is mount the new partition on top of the old mountpoint, hiding all the directories underneath.

Boot up with the install CD to the rescue system and do:

mount /dev/*something* /mnt
cd /mnt
mv usr oldusr
mkdir usr

Where something is your root partition’s device. Then reboot and your old /usr should be in /oldusr

thank you all …
my system is still alive,and i just want to delete old data to free some space in old hard drive ,
this is output of those commands :

salaneh:~ # mount
/dev/sda11 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda12 on /home type ext3 (rw,acl,user_xattr)
/dev/sda1 on /windows/C type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda5 on /windows/D type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda6 on /windows/E type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda7 on /windows/F type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sda8 on /windows/G type fuseblk (rw,noexec,nosuid,nodev,noatime,allow_other,default_permissions,blksize=4096)
/dev/sdb5 on /usr type ext3 (rw)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sr0 on /media/My Disc type iso9660 (ro,nosuid,nodev,noatime,uid=0,utf8)
/dev/sdb6 on /media/BRIDGE type vfat (rw,nosuid,nodev,noatime,flush,uid=0,utf8,shortname=lower)
/dev/sdb1 on /media/WD Passport type ntfs (rw,nosuid,nodev,uid=0,utf8)
salaneh:~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda11            5.0G  4.6G   82M  99% /
udev                 1014M  144K 1014M   1% /dev
/dev/sda12            2.7G  292M  2.3G  12% /home
/dev/sda1              22G   20G  2.3G  90% /windows/C
/dev/sda5              16G   15G  887M  95% /windows/D
/dev/sda6              40G   40G  521M  99% /windows/E
/dev/sda7              41G   40G  466M  99% /windows/F
/dev/sda8              22G   22G  478M  98% /windows/G
/dev/sdb5             9.5G  3.6G  5.5G  40% /usr
/dev/sr0              681M  681M     0 100% /media/My Disc
/dev/sdb6             4.9G  4.0K  4.9G   1% /media/BRIDGE
/dev/sdb1              98G   51G   47G  52% /media/WD Passport
salaneh:~ # cat /etc/fstab
/dev/disk/by-id/scsi-SATA_Maxtor_6V160E0_V39QM58G-part11 /                    ext3       acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_Maxtor_6V160E0_V39QM58G-part12 /home                ext3       acl,user_xattr        1 2
/dev/disk/by-id/scsi-SATA_Maxtor_6V160E0_V39QM58G-part1 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Maxtor_6V160E0_V39QM58G-part5 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Maxtor_6V160E0_V39QM58G-part6 /windows/E           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Maxtor_6V160E0_V39QM58G-part7 /windows/F           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Maxtor_6V160E0_V39QM58G-part8 /windows/G           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_Maxtor_6V160E0_V39QM58G-part10 swap                 swap       defaults              0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/disk/by-id/usb-WDC_WD12_00VE-00KWT0_DEF10D25B29F-0:0-part5 /usr                 ext3       defaults              1 2

i COPIED the contents of /usr to new hard dirve nor move them .
yes i forgot to remove /usr before mounting new hard drive !!

i tried mount **/dev/sda11 /mnt
mv usr oldusr
** that works fine but it said

mv: cannot move `/usr' to `/oldusr': Device or resource busy

?

That’s why you have to do it from a rescue CD, you can’t move /usr while the system is running.

thanks man … i used rescue CD ,in now i have 5GB free space on my old hard Drive :wink: