LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2005, 04:39 PM   #1
joff
LQ Newbie
 
Registered: Apr 2005
Location: Denmark
Distribution: Mandrake 10 / WIN XP Pro Dual Boot
Posts: 10

Rep: Reputation: 0
Cant write to disk


Hi.
As my printer isnt supported under linux, and I dual-boot with Win XP, I wanted to save a downloaded pdf file from Firefox to my windows partition, so I could print it from there after rebooting. when I tried to save the file, I got an error message telling me I couldn't write to that disk. What gives?!
Thanks in advance.
Joff.
 
Old 04-12-2005, 04:41 PM   #2
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
linux doesnt have full write support to an NTFS file system (the file system that WinXP uses).....you can install XP on a Fat32 file system, and then you would be able to write to the disk in linux.
 
Old 04-12-2005, 04:44 PM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
instead of installing xp to fat32 ( since you apparently already have it on a nfts filesystem), you could make another partition ( format it fat32) and both OS's will be able to read/write to it.
 
Old 04-13-2005, 12:59 AM   #4
joff
LQ Newbie
 
Registered: Apr 2005
Location: Denmark
Distribution: Mandrake 10 / WIN XP Pro Dual Boot
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry, forgot to mention in original posting that I use FAT32 for my windows partition.
Any other ideas?
 
Old 04-13-2005, 01:24 AM   #5
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Is it mounted? If so, have you got write permissions to it? Could you please post the output of
Code:
cat /etc/fstab
 
Old 04-13-2005, 01:41 AM   #6
trey31357
Member
 
Registered: Apr 2005
Location: Birmingham, AL
Distribution: Win XP Pro / Slackware 10.1 dual-boot
Posts: 83

Rep: Reputation: 15
You can both mount and change permissions to a partition by editing the /etc/fstab file. You say you are running Windows on a FAT32 partition, thus it is labeled vfat. More than likely it is recognized as hda1. The line I'm about to post from my fstab file allows me read and write access to the partition.

/dev/hda1 /mnt/windows vfat uid=500,gid=500,umask=000,exec,dev,suid,rw 0 0

The "uid=500,gid=500,umask=000,exec,dev,suid,rw" part sets the permissions for read, exec, and write access. Add this line to your fstab file, save it, and let us know how things turn out.
 
Old 04-13-2005, 02:59 PM   #7
joff
LQ Newbie
 
Registered: Apr 2005
Location: Denmark
Distribution: Mandrake 10 / WIN XP Pro Dual Boot
Posts: 10

Original Poster
Rep: Reputation: 0
Contents of my fstab file...

/dev/hdd1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdd7 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdc,fs=udf:iso9660,ro,--,iocharset=iso8859-15 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,sync,codepage=850 0 0
/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
/dev/hda6 /mnt/win_e vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hdd6 /usr ext3 defaults 1 2
/dev/hdd5 swap swap defaults 0 0
none /mnt/removable supermount dev=/dev/scsi/host0/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-15,kudzu,codepage=850 0 0

Tried adding your suggested line trey, but dont have write permission for that file. From what I could scrape together from the net, it seems I have to use chmod (isnt there an easier graphical way - probably a typical windows-user question !) but couldnt seem to get it to work.
 
Old 04-13-2005, 06:28 PM   #8
trey31357
Member
 
Registered: Apr 2005
Location: Birmingham, AL
Distribution: Win XP Pro / Slackware 10.1 dual-boot
Posts: 83

Rep: Reputation: 15
From what I gather, you're saying you can't change the fstab file. You need to be root to do this. Either logout and log back in as root, or open a terminal window and type "su". You will then be prompted for your root password. After that is done, from the terminal you can type "gedit /etc/fstab" and it will open with write permissions.
 
Old 04-15-2005, 01:04 AM   #9
joff
LQ Newbie
 
Registered: Apr 2005
Location: Denmark
Distribution: Mandrake 10 / WIN XP Pro Dual Boot
Posts: 10

Original Poster
Rep: Reputation: 0
Unhappy

Don't seem to have gedit installed (received an 'unknown command' error at any rate).
 
Old 04-15-2005, 02:08 AM   #10
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Tried pico, kate, vi, emacs, kwrite, or any of 1000 other text editors?
 
Old 04-15-2005, 02:45 AM   #11
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
login as root or
su and then copy the file to the windows filesystem.
 
Old 04-16-2005, 04:05 AM   #12
joff
LQ Newbie
 
Registered: Apr 2005
Location: Denmark
Distribution: Mandrake 10 / WIN XP Pro Dual Boot
Posts: 10

Original Poster
Rep: Reputation: 0
Seems to be working now, thanks for the help!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
New external disk; user cannot write Regulus Linux - Hardware 1 07-08-2005 06:40 PM
Disk write speed occuda Linux - Newbie 12 06-22-2005 12:36 AM
Quake 2 - cant save or write to disk crm Linux - Games 4 10-18-2004 04:42 AM
help me ( 8K write to disk with 2 buffer_heads) devershetty Programming 0 12-16-2003 04:36 AM
How can I write ISO's to a disk? Posty Slackware 17 10-17-2003 06:19 PM


All times are GMT -5. The time now is 06:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration