I am trying to understand how my USB drive is setup in Centos 5.5 -- especially since I made a mistake of backing up to it when it was not turned on.
The USB drive is accessed as /media/disk. However, when I did a backup WITHOUT the drive turned on, the data was put into the directory, /media/disk.
Now, when I turn on the USB drive (it is self-mounted in 5.5), the USB drive has been assigned "disk-1" -- understood. What I am missing is the "table" that contains the information pointing to USB drive, disk-1. I would like to reset the table so that "disk" is the USB drive and delete the data that is now on my main drive.
Hopefully I have explained the situation properly.
Todd
I would like to reset the table so that "disk" is the USB drive and delete the data that is now on my main drive.
It's been a while since I paid attention to this, but afaik the directory under media is the volume name of the disc, with the exception you found, if that directory exists. Move it to a new name, so that directory does not initially exist.
When I turn on the USB drive, it comes up with the name disk-1, so I assume that somewhere that has been assigned.
Todd
On 6/1/2011 10:58 AM, Joseph L. Casale wrote:
I would like to reset the table so that "disk" is the USB drive and delete the data that is now on my main drive.
It's been a while since I paid attention to this, but afaik the directory under media is the volume name of the disc, with the exception you found, if that directory exists. Move it to a new name, so that directory does not initially exist. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Todd Cary wrote:
When I turn on the USB drive, it comes up with the name disk-1, so I assume that somewhere that has been assigned.
Todd
On 6/1/2011 10:58 AM, Joseph L. Casale wrote:
I would like to reset the table so that "disk" is the USB drive and delete the data that is now on my main drive.
It's been a while since I paid attention to this, but afaik the directory under media is the volume name of the disc, with the exception you found, if that directory exists. Move it to a new name, so that directory does not initially exist. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Disconnect your USB drive and as root delete /media/.hal-mtab file. That file holds dir names for all USB drives. It will be recreated when you attach new USB drive.
Ljubomir
Thank you...
Todd
On 6/1/2011 1:13 PM, Ljubomir Ljubojevic wrote:
Todd Cary wrote:
When I turn on the USB drive, it comes up with the name disk-1, so I assume that somewhere that has been assigned.
Todd
On 6/1/2011 10:58 AM, Joseph L. Casale wrote:
I would like to reset the table so that "disk" is the USB drive and delete the data that is now on my main drive.
It's been a while since I paid attention to this, but afaik the directory under media is the volume name of the disc, with the exception you found, if that directory exists. Move it to a new name, so that directory does not initially exist. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Disconnect your USB drive and as root delete /media/.hal-mtab file. That file holds dir names for all USB drives. It will be recreated when you attach new USB drive.
Ljubomir _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
From: Todd Cary todd@aristesoftware.com
Now, when I turn on the USB drive (it is self-mounted in 5.5), the USB drive has been assigned "disk-1" -- understood. What I am missing is the "table" that contains the information pointing to USB drive, disk-1. I would like to reset the table so that "disk" is the USB drive and delete the data that is now on my main drive.
Did you "eject" (umount) your disk before you turned it off...?
JD
On 6/3/2011 8:01 AM, John Doe wrote:
From: Todd Carytodd@aristesoftware.com
Now, when I turn on the USB drive (it is self-mounted in 5.5), the USB drive has been assigned "disk-1" -- understood. What I am missing is the "table" that contains the information pointing to USB drive, disk-1. I would like to reset the table so that "disk" is the USB drive and delete the data that is now on my main drive.
Did you "eject" (umount) your disk before you turned it off...?
JD _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Everything is back in order...once I removed the "dot" file and cleaned up the disk.
Many thanks to all...
Todd