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 |
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.
|
 |
04-14-2006, 07:10 AM
|
#1
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Rep:
|
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:
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
|
|
|
04-14-2006, 07:22 AM
|
#2
|
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,352
|
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 07:28 AM.
|
|
|
04-14-2006, 08:17 AM
|
#3
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Original Poster
Rep:
|
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
|
|
|
04-14-2006, 09:21 AM
|
#4
|
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,352
|
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.
|
|
|
04-14-2006, 10:50 AM
|
#5
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
|
|
|
04-14-2006, 11:22 AM
|
#6
|
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,352
|
Emerson,
Thank-you! I find everyday there is a new and better way to do things using linux.
|
|
|
04-14-2006, 06:07 PM
|
#7
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Original Poster
Rep:
|
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)?
|
|
|
04-14-2006, 07:16 PM
|
#8
|
Moderator
Registered: Aug 2002
Posts: 26,522
|
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.
|
|
|
04-15-2006, 04:38 AM
|
#9
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Original Poster
Rep:
|
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!
|
|
|
04-15-2006, 05:11 AM
|
#10
|
Member
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353
Rep:
|
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/
|
|
|
04-15-2006, 08:46 AM
|
#11
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Original Poster
Rep:
|
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?!?
I'll check that driver on my other PC. This one is "clean" now  .
|
|
|
04-15-2006, 11:28 AM
|
#12
|
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,352
|
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.
|
|
|
04-15-2006, 11:43 AM
|
#13
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Original Poster
Rep:
|
GRUB is installed. - What do you mean by
? 
Thanks
|
|
|
04-16-2006, 04:21 AM
|
#14
|
Member
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573
Original Poster
Rep:
|
For the records: Booting worked. Thanks all!
|
|
|
All times are GMT -5. The time now is 05:29 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
|
|