Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-22-2002, 12:45 PM
|
#1
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Rep:
|
NTFS Haunting
I have a then-NTFS partition left over from when I was dual-booting Win2k & Slackware. I have long since destroyed my windows partition (on purpose) but have not been able to recover the space. I have fdisk'ed, but the files remain (the type is ext2 though). I tried to
#mount -w /dev/hda1 /stoarge
but I still couldn't
#touch myself
complaining that it's a read-only file-system.
How do I get rid of these friggin' files!? I can't delete them, I can't write over them and they're eating about 7GB of good space. Please help me exorcise these demonic files.
|
|
|
12-22-2002, 02:21 PM
|
#2
|
Member
Registered: Aug 2002
Location: Austin, TX
Distribution: mandrake 9.1
Posts: 98
Rep:
|
if you still have your win2k disk, you can boot up with that, then use it's partitioning utility in the setup. just go through and delete the partition. then you can format it in linux.
|
|
|
12-22-2002, 05:43 PM
|
#3
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
If I pull out my win2k disk I'll need to re-install. I removed alot of system files to see what happens. It was fun to watch the system freak out. There isn't any way to do this in linux?
|
|
|
12-22-2002, 09:22 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You said it's ext2... Let me summarize this really quick to make sure I get ya:
You have, say /dev/hda1. This used to be your winbloze partition. It was NTFS, since then you've ran:
mke2fs -j /dev/hda1 OR
mke2fs /dev/hda1 &&
tune2fs -j /dev/hda1
And the files still exist. Then you tried mounting this:
mount -t ext3 /dev/hda1 /mnt/storage
And once mounted you could cd /mnt/storage and it wouldn't let you manipulate/delete the files (that should have already disappeared)?
Is this correct? If not, what did you do, and what did I miss?
Cool
|
|
|
12-22-2002, 10:57 PM
|
#5
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
|
|
|
12-22-2002, 11:01 PM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You're welcome, I am glad I could help
And btw, you are not a moron, I am sure there are TONS of things you know that I haven't the slightest bit of grasp on
Cool
|
|
|
12-22-2002, 11:20 PM
|
#7
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
I mean moron in a neutral way. Like "damn I'm a moron, but it's okay". One more follow-up question : is there a command (or ls option that I've overlooked) to get the total size of all files in a dir? Like DOS's dir does? (side note : I hate that dir has to be used instead of ls on dos/win. worse, you can't create a symlink so you can pretend it's there. I worked around it at work (before I got cygwin) by creating a batch file ls.bat ).
|
|
|
12-22-2002, 11:51 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
du -h
I think that's what you are looking for?
I've never used DOS so I am not completely sure, but I think that's what you have described. Oh and don't forget to journal your new filesystem:
mke2fs -j /dev/hdx
Cool
Last edited by MasterC; 12-22-2002 at 11:52 PM.
|
|
|
12-23-2002, 07:51 AM
|
#9
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
yep. that's what I needed. I -j'd up /dev/hda1 already, thanks
|
|
|
12-23-2002, 11:14 AM
|
#10
|
Member
Registered: Dec 2002
Posts: 327
Rep:
|
*blink*
You can journal an ext2 filesystem?
Does this make it an ext3, or is there something I didn't know about ext2 that enables journaling? The man on this is confusing...
Slick.
|
|
|
12-23-2002, 01:00 PM
|
#11
|
Member
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
|
Quote:
Originally posted by SlickWilly
*blink*
You can journal an ext2 filesystem?
Does this make it an ext3, or is there something I didn't know about ext2 that enables journaling? The man on this is confusing...
Slick.
|
An ext3 filesystem is nothing but an ext2 filesystem with a journal. The journal can be internal ( usually inode 8 ) or can reside on a different device altogether. A journal was added to ext2 to eliminate long 'fsck' delays that maybe caused by an unclean shutdown.
|
|
|
All times are GMT -5. The time now is 09:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|