LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 12-22-2002, 11:45 AM   #1
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
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.
 
Old 12-22-2002, 01:21 PM   #2
fragged one
Member
 
Registered: Aug 2002
Location: Austin, TX
Distribution: mandrake 9.1
Posts: 98

Rep: Reputation: 15
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.
 
Old 12-22-2002, 04:43 PM   #3
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
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?
 
Old 12-22-2002, 08:22 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 12-22-2002, 09:57 PM   #5
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
MasterC,

After reading your post it has become quite apparant that you overlooked a very important point : I'm a moron. I didn't know about mke2fs before this post, and that took care of everything. I thought deleting the partition with fdisk, then re-adding it as ext2 would fix it. Now I know better though. The demons are gone, and now I have room for counter-strike . Once again, I thank you
 
Old 12-22-2002, 10:01 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 12-22-2002, 10:20 PM   #7
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
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 ).
 
Old 12-22-2002, 10:51 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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 10:52 PM.
 
Old 12-23-2002, 06:51 AM   #9
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
yep. that's what I needed. I -j'd up /dev/hda1 already, thanks
 
Old 12-23-2002, 10:14 AM   #10
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
*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.
 
Old 12-23-2002, 12:00 PM   #11
nxny
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: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy files from NTFS to NTFS ThaHackBoy Linux - Hardware 2 05-21-2005 06:36 PM
Writing to an NTFS volume using captive-ntfs (repairing boot.ini) macskeeball Linux - General 3 02-06-2005 09:28 PM
NTFS (winxp) drive is accessible only by root, why NTFS (winxp) drive not accessible Samppa72 Linux - Software 1 07-26-2004 03:13 PM
Captive NTFS -- full r/w ntfs access for Linux spurious Linux - Software 6 01-09-2004 12:29 AM
Created new FAT32 partition, after that..GRUB console haunting me..what 2 do??? free_mumia Linux - Newbie 5 01-04-2004 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration