mount a partition and swapon on boot(fstab??)
i'm pretty sure i'm suppose to use the fstab file somehow to mount my partitions and swap partition, but i looked at that file and can't figure what to put in that file
right now i'm just running these commands at boot and that works /sbin/swapon /dev/hdb1 and mount -t ext2 /dev/hda2 /files/netboot so considering these are the two commands that work, what should i add to the fstab file, and what are those last three columns in the fstab file i'm using slackware 9 if that makes any difference |
man fstab
|
Quote:
|
Howzit
try this will work, /dev/hd?? swap swap defaults 0 0 chow |
OK ; chewing it out for you :
Here's what my fstab looks like: Quote:
I bolded out the relevant part. First part is , ofcourse , the partition you want to mount. Second part is the mountpoint. You have to have made a Directory with that same name before editing fstab. Third part is the format-type(self-explanatory) fourth part is about the options , you want it to have. Save for your root-partition , "defaults" will be sufficient fifth part is is the value , "dump" uses. a 0 is pretty much ok. Sixth part is the value , "pass" will need. Only the root-partition uses value "1" , your other partitions , if they are just on harddisks that is , will use "2" I have no experience with booting from a 'net , but taking the other answers into account , I figure that requires a "0" for "pass". |
All times are GMT -5. The time now is 09:16 PM. |