LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-24-2005, 04:25 PM   #1
ch.keller
LQ Newbie
 
Registered: Jul 2004
Location: Kelowna
Posts: 21

Rep: Reputation: 15
How to save a file with PClinuxOS-LiveCD?


I am running PclinuxOS-LiveCD from my CD drive on my WIN-98 machine and it works very well.

However, I can’t seem to be able to save a file permanently; as soon as I log out, the file disappear, even it was properly save under /home/guest/filename.

What is the command I should use to deposit the saved file unto somewhere on my hard drive?

Or can I add a command in a booting disk (as additional booting instructions), using rawwrite? What should the command be?

Thank you for your valuable input.

Charles..
 
Old 05-24-2005, 05:58 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
PCLinuxOS automatically mounts any Windows partitions that it finds starting with /mnt/win_c .
If you want to save a file, try putting it in /mnt/win_c someplace.
 
Old 05-26-2005, 12:21 AM   #3
ch.keller
LQ Newbie
 
Registered: Jul 2004
Location: Kelowna
Posts: 21

Original Poster
Rep: Reputation: 15
Hello Homey;
Thank you for your valuable input.
Let's assume that I have a file called "ch.keller*sxw" in OpenOffice of 2 pages.
1) Now I want to save that file in /mnt/win_c
What do I do: should I call up the K-Terminal and how can I get into the
directory /mnt/win_c ?
And then, what is the command I should use to save the file "ch.keller.sxw"
unto "win_c" ?

2) If you would like to save that file unto a 31/2" diskette in drive A: , what is
the command I should use to mount the drive A, is it: "mnt/floppy" or "mnt/fd0"?
And what is the command I should use to save the file "ch.keller.sxw" unto the
floppy disk?

Your kind help will be very much appreciated.
Thank you in advance.
Charles, Kelowna, BC.
 
Old 05-26-2005, 12:42 AM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
since your on windows 98, your probably using fat32 so all should be fine.

yes, you can do this with 'K-Terminal' or any other terminal program.

say, for example, i have a file (coincidently an open office document ) called 'myDoc.sxw'. it is located in my home folder (say my user name is nadroj). so the full path to my document would be: /home/nadroj/myDoc.sxw

say i have a windows partition mounted (check your /etc/fstab file for where your windows partition is 'automatically' mounted) on /mnt/win

and i want to copy my document (myDoc.sxw) to my mounted windows partition, i would type:
Code:
cp /home/nadroj/myDoc.sxw /mnt/win/myDoc.sxw
your floppy drive isnt exactly 'drive A:', thats only for windows systems. your actual floppy drive on the system would be located in /dev/fd0. it would be mounted to a directory, something like /mnt/floppy (check your /etc/fstab file to see where it is mounted).

if you want to save a file to the floppy drive, just put the disk in and save something to it. (might have to type a command like 'mount /dev/fd0' to remount the floppy drive so the disks' contents are read [sorry if incorrect i actually have never used floppy drives in linux before]).
after youv inserted the disk [and if necessary, remount /dev/fd0], say your in open office, just click the save as button and browse to /mnt/floppy or wherever the floppy drive is mounted to, and you can save it. if you want to copy a file to it, it would be the same as the above 'cp' command but you specifiy a different destination, ie:
Code:
cp /home/nadroj/myDoc.sxw /mnt/floppy/myDoc.sxw
 
Old 05-26-2005, 07:22 AM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Hi ch.keller,

Quote:
say, for example, i have a file (coincidently an open office document :D) called 'myDoc.sxw'.
You might better save that file as /home/mydoc.doc if you plan to open it in Windows as MS Word doesn't read .sxw properly if I recall.

Then you can copy it to win_c like this.
In PCLinuxOS, click on the desktop icon which looks like an igloo.
Go to the /home folder which is where you hopefully saved the doc.
Go to Tools/ Open Terminal
Type the command:cp mydoc.doc /mnt/win_c

Now you can also save it onto a formatted floppy disk. I find it quite handy to use a tool called mcopy so you don't need to mount and un-mount the floppy.
Run these commands while you are still in the terminal:
fdformat /dev/fd0
mkfs.msdos /dev/fd0
mcopy mydoc.doc a:


Now your file should be saved in the Windows C:\ and on the floppy.
 
  


Reply



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
MEPIS LiveCD Save Files to HD - How? GNewbie MEPIS 1 10-19-2005 04:59 AM
Can I Save LiveCD settings? figseedduh Linux - Newbie 4 01-01-2005 09:36 PM
Not able to save file shadow11 Linux - Newbie 4 10-21-2004 08:15 PM
Mozilla 1.7 - No File Save / File Open dialogs on Slackware 10.0 jayseye Slackware 8 08-10-2004 05:52 AM
how to save a file? Longinus Programming 5 03-10-2004 10:20 PM

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

All times are GMT -5. The time now is 07:00 PM.

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