- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing file in /dev/rmt/
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 04:44 AM
04-06-2001 04:44 AM
file was created in the /dev/rmt directory which is called 0m.
Careful, I have device files in that directory. How can I remove the
big file listed below?
**** THIS ONE -rw------- 1 root sys 54345728 Apr 6 07:57
0m ****
crw-rw-rw- 2 bin bin 205 0x020080 Jan 22 2000 0mb
crw-rw-rw- 2 bin bin 205 0x020040 Jan 22 2000 0mn
crw-rw-rw- 2 bin bin 205 0x0200c0 Apr 5 03:22 0mnb
My system is still up at this point in time, HPUX 10.20 on a D350.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 04:48 AM
04-06-2001 04:48 AM
Re: Removing file in /dev/rmt/
just rm the file.
It is not a special file and was caused by doing a dd if and of to a file not to a special file. ie you did not have the special file 0m on your system when you did the dd to it. If it was a special file it would have pointed to the h/w through the driver.
rm the file
then insf -eCtape -I 0
to recreate the 0m special file
To remove special files, that are really special files use the rmsf command.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 04:49 AM
04-06-2001 04:49 AM
Re: Removing file in /dev/rmt/
THanks, but I can not even do an ll on the filename, ie ll 0m.
I can only do an ll and I get all the files listed, including the big bad one.
Nickd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 04:53 AM
04-06-2001 04:53 AM
Solution# cd /dev/rmt
# rm -i *
This will ask you for every single file in the directory whether you want it to be removed or not. Say "Y" if it is your big one.
You can also run
# ls -lb
on the file to check for any special characters in the filename, which I think is the cause why you cannot simply list or remove it.
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 04:55 AM
04-06-2001 04:55 AM
Re: Removing file in /dev/rmt/
Can you move the file to /tmp ?
..Then delete it?
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x0c87dfe5920fd5118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 04:56 AM
04-06-2001 04:56 AM
Re: Removing file in /dev/rmt/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 04:59 AM
04-06-2001 04:59 AM
Re: Removing file in /dev/rmt/
But the ls -lb did give me the (full) name of the file -> .\0100m.
But, I can not ll or attempt to reference the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:00 AM
04-06-2001 05:00 AM
Re: Removing file in /dev/rmt/
pretty unusual problem :-)
Is the backup process done? Maybe something is still writing to that file and that's why you can't delete the file.
But as mentioned above... there is no harm in rm'ing that file and then later using insf to recreate the device files.
You can try the following commands:
1) ls -i *
2) num
Good luck ,
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:00 AM
04-06-2001 05:00 AM
Re: Removing file in /dev/rmt/
A large file is created and can be removed with rm. There is no other special procedure for removing these files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:05 AM
04-06-2001 05:05 AM
Re: Removing file in /dev/rmt/
substitute the inode number in place of the # below; (be very careful with the syntax, it must be exactly correct)
find . -xdev -inum # -exec ll {} \;
find . -xdev -inum # -exec rm -i {} \;
(ref: Alex Glennie in link above)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:05 AM
04-06-2001 05:05 AM
Re: Removing file in /dev/rmt/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:06 AM
04-06-2001 05:06 AM
Re: Removing file in /dev/rmt/
My actions were as follows:
cd /dev/rmt/
rm * (to get rid of all files)
I ran an ll and the file is still there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:08 AM
04-06-2001 05:08 AM
Re: Removing file in /dev/rmt/
Thanks, file removed.
You gotta love this forum.
Many thanks to the participants, full marks to everyone.
Nickd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:10 AM
04-06-2001 05:10 AM
Re: Removing file in /dev/rmt/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:10 AM
04-06-2001 05:10 AM
Re: Removing file in /dev/rmt/
That's a bit disasterous..
you probably have a process accessing the file.
Use the fuser command and check if the inode is in use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2001 05:12 AM
04-06-2001 05:12 AM
Re: Removing file in /dev/rmt/
rmsf -a *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2001 08:59 AM
04-08-2001 08:59 AM
Re: Removing file in /dev/rmt/
You could try this:
1. cd /dev/rmt
2 cp /dev/null 0m
3. rm 0m
4. insf -e -C tape
Cheers,
Joseph.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 03:28 AM
04-09-2001 03:28 AM
Re: Removing file in /dev/rmt/
This issue is now closed.
Thanks again.
Nickd