Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-19-2003, 05:13 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
How to change partitions that are mounted from command line?


I am running redhat 9 and WinXP on separate hard drives;
I had 4 partitions on my linux hdd:
part 1
part 2
and a swap partition

I ran out of space on my windows drive, and I knew I had nothing on "part 2" on my linux drive so I decided to format over part 2 as a fat32 partition and use it for windows

I did this by using the windows XP installation disk partition manager

When I tried to start linux up the next day, I got a file system error or something and was given the oppurtunity to fix the filesystem

I guess I need to edit the /etc/fstab file which I understand has all the start-up information...?

Does anyone know what I can do, or do I need to reinstall?

Also, I realize that editing a ext3 partition with windows was an incredibly stupid thing to do; What would be the correct way to have done it?
Old 10-19-2003, 05:51 AM   #2
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
hmm, well, first, of course copy everything you want off the partition (if anything), then of course unmount it, run FDISK, delete the partition in question, then create a new DOS partition in the free space left, save, run mkfs -t msdos *the partition* (or mkfs -t vfat) then run your favorite text editor (emacs, vi, vim, pico, etc...) and change the line ext3 in /etc/fstab to msdos (or vfat) then remount the partition.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
change background via command line verbose Linux - General 10 07-19-2012 10:31 AM
how to change workspace by command line melinda_sayang Slackware 29 07-21-2011 03:51 AM
change the time from the command line juanb Linux - Newbie 3 10-31-2007 02:11 AM
Change workspace from command line 3saul Linux - Software 4 11-18-2005 06:02 PM
Can I change the console command line? coopns Linux - Newbie 3 06-16-2004 07:20 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:47 AM.

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