-
C-language and Java development
I have been developing some C-language and Java programs in Windows and Unix. I want to try to do some of that development under Linux (KNOPPIX) running on a Windows XP system (HP Pavilion).
I set up a partition for my configuration and files on a USB hard drive, but I am having trouble storing files there. On Unix I can make a directory, create a file with an editor and save it, and then compile it. With KNOPPIX, I get messages that the file cannot be stored on my read-only drive, even when I have allocated a 50M partition.
Is there a step-by-step guide for creating a file and compiling it? I know how to use all the commands (mkdir, cc, etc.) from a command prompt, but I am stumbling with some elementary setup barriers.
Any help will be appreciated.
citpeks
-
Senior Member
registered user
/etc/fstab (FileSystem Table) contains information who may mount a drive, and which permissions to use.
assuming your drive is /dev/sda1 and mounted to /mnt/usb, then there is an entry
/dev/sda1 /mnt/usb vfat defaults 0 0
instead vfat, there might be 'auto'.
Instead defaults, there might be this or that.
make that entry: noauto,users,exec (no blank after comma) which means:
don't mount automatically at boot,
allow users to mount
allow execution of files from that drive.
missing filepermissions (rwx) on vfat-drives are often disturbing - - -
defaults setting only allow root to mount the drive who becomes owner of that files.
But you say you made a partition: reiserfs? ext2? ext3 or other linux-partition?
By the way - this is a 'general' question.
This section is more for entertainment or the forum as such, I think.
Did I mention 'man fstab' and 'man mount'?
Did you format it (mkfs.reiserfs, mkfs....)?
Perhaps your /etc/fstab contains in the option-section a 'ro' - read-only.
Delete it! Away away!
May root mount it?
It might be /dev/sda2 if it's not the first partition.
-
Knoppix handles harddrives as read-only by default. You can allow writing on a drive explicitly by right-clicking on it, and then finding the readonly checkbox somewhere in the context menu. (Unfortunately I don't remember where, maybe options or settings)
-
Senior Member
registered user
Sounds to me like you want to install KNOPPIX to the hdd. I'm not clear on your configuration. I'm assuming its one of these 3:
(1) You are booting from a liveCD and trying to save your work to a hdd partition.
(2) You copied the /KNOPPIX/KNOPPIX file from the CD to a hdd partition and booted from there (aka "poorman's dual boot").
(3) You actually installed to an hdd partition, created a user, booted from there and logged-in.
In the case of (1), your hdd partitions should show-up as an icon on your KNOPPIX desktop. Simply clicking on it gives you a KONQUEROR dir listing of that partition. However, that partition is ro by default. You can right-click that icon and change from ro to rw to save your files.
In the case of (2), you're working with an ro file system just as if you were running from the CD. You cannot save there. The only thing I can think of in this case is to save to a floppy or another hdd partition.
Case (3) is how I set-up my PCs and have no trouble editting, saving, printing, compiling or executing my C++ and Java code.
Good Luck!
HTH,
AJG
Similar Threads
-
By kynax in forum General Support
Replies: 4
Last Post: 09-08-2005, 01:06 PM
-
By rangalo in forum General Support
Replies: 8
Last Post: 06-15-2005, 12:32 PM
-
By fingers99 in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 03-08-2005, 12:46 AM
-
By AS in forum General Support
Replies: 0
Last Post: 04-01-2004, 07:36 PM
-
By Kethinov in forum General Support
Replies: 3
Last Post: 12-03-2003, 05:46 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working
$99.99

Atari SX212 Modem for IBM-Compatible Systems w/ Power Adapter & Manuals NOS
$125.00

Atari 400 / 800 Computer Memory Module 16K RAM PCB CX853 - Works Perfectly
$18.95

Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On)
$300.00

A8PicoCart Multicart for Atari 800xl /65xe / 130xe / XEGS
$16.95

Atari Home Computer Software/Books/Manuals/Magazines Lot - Read desc for details
$95.00

Atari 410 Program Recorder repair w manual sheet/ adapter cord
$23.99

Gotek USB Floppy Emulator v3.44 OLED (no speaker) Amiga Atari IBM Roland AKAI
$44.00

Atari 800 Home Computer 48K RAM In Original Box w/ Styro RF Switch Extra Games
$349.30

DEFECTIVE Atari 810 Vintage Computer Disk Drive powers on Unit Only Boo G3D
$49.29