-
Senior Member
registered user
(Noob) fstab mount question...
Ok, I just thought I messed up my complete Knoppix HD Install because I changed/added a bad entry into my fstab - I have Knoppix install on hda1, hda2 is a DOS partition (vfat).
I accidently got both hda1 and hda2 to point to the same mount point, and thought my system was fried...
So, hmmmmm, so I don't do THAT again, what would I put as an entry for my hda2 partition in the fastab? Hda2 is not bootable, but I would like to run things (exec), write, and of course, read, files on the device.
I thought my (invalid and is what casused my Knoppix to get Permission Denied messages, and lock up -=- see Post under HDD Install - Titled "Knoppix 3.3 gets ... Permission Denied (solved)" for more information on this catastrophe) ... my invalid fstab entry was such...
/dev/hda2 / vfat defaults,user,exec 0 0
I think 
I would like the device to be mounted, on boot, if possible, and accessed by all users, if at all possible.
Thanks, and hopefully the next boot, after the change, I have a active (vfat) partition, but am not booting it within Knoppix, as I think my previous was doing,
Cuddles
-
Cuddles
I am glad you managed to get your system sorted out again. I read your earlier post and have since been trying to think of what might have gone wrong but couldn't come up with any ideas.
What you need to do is change the / to something else. Exactly what you change it to is up to you, but you just need to make sure that it is the name of an empty directory somewhere.
Maybe you could create a directory called /dos or /opt/dos or /usr/dos or /home/dos or whatever. Then you change the slash in the fstab entry to be the name of the directory you created.
eg.
/dev/hda2 /home/dos vfat defaults,user,exec 0 0
When you mount the filesystem, the files and folders will then appear in that directory.
THO
-
Senior Member
registered user
Thanks THO, that did the trick... I can see the device now, and even mounted it, and viewed the DOS contents... Now the tricky part, the reboot... (crossing fingers)
The more I learn about Linux, the more (strange) and interesting it is...
Creating files/folders for devices, now, at least, I know why so many folders (like cdrom and cdrom1) are empty - the folders are "place holders" - in essence - for the device to "push its data" into? (is that a correct terminology?) Is this how Linux is setup? Using folders to contain destinations for devices when they are mounted? ( if it is, I think I am starting to get the hang of this OS
)
Oh well, Thanks again TearingHairOut, you saved my fanny -=- again...
Cuddles
-
Senior Member
registered user
Rebooted, root can access and read and everything else the hda2
Upon going into Knoppix account, hda2 is mounted, I can create an icon to it but when I try to open it, I get access denied.
What do I have to set the privileges to ??
Cuddles
-
Creating files/folders for devices, now, at least, I know why so many folders (like cdrom and cdrom1) are empty - the folders are "place holders" - in essence - for the device to "push its data" into? (is that a correct terminology?) Is this how Linux is setup? Using folders to contain destinations for devices when they are mounted? ( if it is, I think I am starting to get the hang of this OS )
Yeah, this is pretty much exactly it.
Those empty folders - the "place holders" - are what I would refer to as a mount point. And then the filesystems are, well, "mounted" on the mount point.
This is the mechanism used by UNIX, and all the derivates such as Linux, BSD etc.
-
Have a look at the permissions of the mount point. I suggest you unmount hda3 first.
I guess it should be 777.
-
Senior Member
registered user
Try adding yourself to the disk group (in /etc/group)
I can never get on with the binary(?) demarcation, but my (seperate) home partition is owned by root (in the staff group). In Kde, the permisions are like this:
Code:
x x x 0
x 0 x 0
x 0 x 0
more importantly, my own directory (/home/john) is owned by john in group john and has the same permissions.
The /etc/fstab entry reads:
/dev/hdc3 /home ext3 auto 0 0
-
Senior Member
registered user
I had a similar problem trying to get a user to be able to read and write a vfat partition.
As root, I chmod 777 /mnt/hdx but as the user, the icon wouldn't allow access.
Out of frustration, or lack of a better solution, As user I simply right clicked on the desktop icon for the partiton, clicked on the device tab, clicked on the arrow (down), chose the partition and everything worked. Worth a try..
-
Senior Member
registered user
COOL
I T W O R K S 
I had a look in "group" file, all users are in the proper group, set up on the device...
Checked the mount point permissions, /usr/dos -=- that was the trick, ls -l reported the directory as:
drwxrwsr-x
so I did a chmod 777 /usr/dos -=- and now it looks like this:
drwxrwxrwx
I also needed to change the permissions on the desktop icons as well, they showed up as -rwxr-xr-- -=- I think, so I changed those to the same as a chmod 777 would have done...
I popped into my user accounts, did the icon change, and whamo - we got it...
I think I am going to take a little break now... (I think I have used up my allocation of resources here, for at least a few weeks... But... What I am probably going to do is, install a second 2.0 gig hard drive as a secondary, which already has Win98 installed on it - and then I will need some input on what I can do with this DOS partition in Linux - considering its 1.5 gig of space, anyone have any ideas????)
Oh well, I just want to get my DOS program running happy first, then I can go after what to do with the DOS partition for Knoppix/Linux... I will probably be around, lurking, seeing if I can help some people out here, but I don't see posting any new questions, or problems, within the next few weeks....
Everyone, thank you for all the help, and getting me going again
( K U D O ' S for EVERYONE :! )
Cuddles
-
Senior Member
registered user
I had suggested your little hard drive as a seperate /home, but it'll be far too small for that. How about (depending on the size of your collection, of course) using it for ogg/mp3 storage? My collection is pretty big, but I'm looking at using one of my old 6 or 10 gig drives for that (frees up a little space of my 100gig /home partition and will make backup strategies a little easier).
Similar Threads
-
By jodef in forum Hdd Install / Debian / Apt
Replies: 12
Last Post: 09-10-2004, 01:46 AM
-
By zombi3 in forum General Support
Replies: 5
Last Post: 12-25-2003, 07:05 AM
-
By mstlyharmlss in forum General Support
Replies: 2
Last Post: 11-08-2003, 09:19 PM
-
By philski27 in forum General Support
Replies: 3
Last Post: 11-08-2003, 01:17 AM
-
By Enmity in forum Customising & Remastering
Replies: 6
Last Post: 11-07-2003, 10:37 AM
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

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

Microsoft Windows 11 Pro 64-Bit USB Flash Drive (HAV-00162)
$36.99

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$573.98

Hynix 16GB PC4-2933Y 288pin DDR4 SDRAM ECC Reg Server Memory HMA82GR7JJR8N-WM
$79.95

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

Micron 32GB MTA36ASF4G72PZ-3G2E7 RAM 2Rx4 PC4-3200AA ECC REG Memory
$249.99

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$21.68

Server Memory: Samsung 32GB 4DRx4 PC4-2133P ECC LRDIMM DDR4 M386A4G40DM0-CPB
$124.95

Lenovo 2TB USB 3.0 Flash Drive Metal Drive Flash Memory Stick Data Storage.
$3.99

Samsung 32GBX2 1Rx4 PC4-3200AA DDR4 ECC Server Memory M393A4G40AB3-CWEBQ 64GB EC
$370.00