LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-14-2006, 06:10 AM   #1
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Format an NTFS partition after install


Hi,

this is on Ubuntu Dapper. - There is an NTFS partition which I would like to resize and format. GParted is installed.
In fstab, I changed this line:
Code:
/dev/hde1       /media/hde1     ntfs    defaults        0       0
to:
Code:
/dev/hde1       /media/hde1     ntfs    rw,user,auto,nls=utf8,uid=1000,gid=1000  0  0
I've remounted all partitions by stating:
Code:
sudo mount -a
After that, "mount" returns:
Code:
...
/dev/hde1 on /media/hde1 type ntfs (rw)
...
However, still, when I try to set "write" permissions to that partition in the file manager, I cannot do that as there is the message:
Quote:
Couldn't change the permissions of "hde1" because it is on a read-only disk
How can I mount that NTFS partition in a writable mode?

Thanks indeed
 
Old 04-14-2006, 06:22 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
You can not. NTFS writeing is not supported. There are some experimental drivers available, but at this time they are just that. If you value your NTFS partiton, don't use linux to resize it.

If you want to resize, I would recomment you do that with something like Partition Magic under windoze control.

Last edited by camorri; 04-14-2006 at 06:28 AM.
 
Old 04-14-2006, 07:17 AM   #3
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
Thanks. I'd doubt resizing NTFS partitions using Linux cannot work. If I remember well, I did that with a SuSE distribution several years ago (afterwards the Windows system still worked).

Nevertheless, formatting that NTFS partition and making it available (writable) to the Linux system would suffice for the moment. The question is, how to mount it in a way so I can format it.

Thanks again
 
Old 04-14-2006, 08:21 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
You do not need to mount it to format it. The only format that will work for both win and linux is fat32. Still think you need to do it from windoze, unless you want to wipe windoze and use the partition for linux only, then you could use any linux supported file system.
 
Old 04-14-2006, 09:50 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
http://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html
 
Old 04-14-2006, 10:22 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Emerson,

Thank-you! I find everyday there is a new and better way to do things using linux.
 
Old 04-14-2006, 05:07 PM   #7
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
Hi there and thanks.

Actually, I do not want to keep that Windows partition (I could reinstall Windows lateron). I'd just like to create some writable disk space to use with my Linux system.

Still, that partition has been mounted read-only, and I think I need to mount it writable so I can erase it and make some other partitions out of it.

- How can I format this partition (to any file system type, and then, resize it)?
 
Old 04-14-2006, 06:16 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
No need to mount a partition to reformat or resize.

Use fdisk or cfdisk to change the partition label to linux and then use mkfs to create a filesystem of your choice.
 
Old 04-15-2006, 03:38 AM   #9
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
Thanks. I looked at fdisk etc. but decided not to use it because of my lack of knowledge. (Q.E.D. )

Instead, I managed to unmount the NTFS partition, and it's available to GParted now. However - is it safe to erase it? - That's the partition that contains the MBR!
 
Old 04-15-2006, 04:11 AM   #10
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Quote:
Instead, I managed to unmount the NTFS partition, and it's available to GParted now. However - is it safe to erase it? - That's the partition that contains the MBR!
You mean - how to reformat the partition with another type of filesystem like reiserfs or ext3 ? One thing worth knowing - hde would refer refer to the entire disk and writing to hde would might erase the MBR, hde1 would be the first partition and hde2 the second and so on... When you delete/reformat any partition like hde1, hde2, hde3... you reformat/delete only the partition and not the MBR since, the MBR is the first sector on the disk and no partition includes the MBR.

If you think you wouldn't need hde1, you can safely delete it without worrying about MBR.

If you are really keen about using/writing to NTFS partitions, I'd like to suggest captive NTFS driver for that. I personally use it and find it reliable and it works. Anything that can be done in Windoz, can be done using captive - viz. writing, appending, deleting, moving...

http://www.jankratochvil.net/project/captive/
 
Old 04-15-2006, 07:46 AM   #11
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
Quote:
If you think you wouldn't need hde1, you can safely delete it without worrying about MBR.
Thanks. I've done that now (using GParted). After that, I'd updated /etc/fstab and remounted all partitions.
- Is there any way to make sure the boot sector still points to fstab before rebooting?!?
Quote:
captive NTFS driver
I'll check that driver on my other PC. This one is "clean" now .
 
Old 04-15-2006, 10:28 AM   #12
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,214

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Did you have lilo or grub install on the MBR? ( with a working config). If yes, you shold be O.K.

If not, you can install it from your Linux install CD.
 
Old 04-15-2006, 10:43 AM   #13
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
GRUB is installed. - What do you mean by
Quote:
If yes...
?
Thanks
 
Old 04-16-2006, 03:21 AM   #14
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Original Poster
Rep: Reputation: 32
For the records: Booting worked. Thanks all!
 
  


Reply

Tags
ntfs



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
Sharing files between linux and windoze. Re format NTFS partition to FAT32? baldox Linux - Newbie 6 12-21-2006 11:01 PM
Format a NTFS partition to XFS powadha Linux - General 1 03-13-2005 05:38 AM
Format NTFS partition from Linux? EgosZ Fedora 3 10-21-2004 07:59 AM
linux install off a ntfs partition? baked Linux - General 3 06-09-2004 09:53 AM
Install from NTFS (XP) partition? pmcquain Slackware 2 02-13-2003 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:25 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