-
how to mount harddisks on systemstart
Hi,
how do i mount a harddisk on systemstart?
i tried tu use the /etc/fstab file for this and added a line just after the /-mounting
Code:
/dev/hdb1/ /test ext2 defaults,users 0 0
the directiry test does exist and the harddisk is ext2 formated
but nothing happens on reboot ...
when use the command
after login then everything works but that can't be correct, can it?
i hope you can help me ...
P.S. i'm a linux newbie *smile*
-
Senior Member
registered user
magicoizo,
Hmmmmm, the line looks good, only thing, and I can't be sure if this changes anything, or if it needs to be there, but, you might add exec ???
like this:
Code:
/dev/hdb1/ /test ext2 defaults,users,exec 0 0
I can't see why your drive isn't just auto-mounting when you login??? Have you had a look near the top of the output of dmesg ???? (possibly a more descriptive error of why it can't mount the drive???)
Look to see if during your root file system mounting and swap partition, if it says something about your hdb device.... Only thought I can think of...
Hope this helps,
Ms. Cuddles
-
Senior Member
registered user
Try this:
/dev/hdb1 /test ext2, users, auto 0 0
Then reboot.
Note the auto flag and the lack of a slash after the drive.
Formatting as Ext3 might save you some pain later!
-
Senior Member
registered user
O M G
I didn't even "see" that slash, sheesh, I can be so dense sometimes. (I even typed the slash on my reply!)
Thanks Fingers99 for "seeing" that little detail, and I agree on the ext3 file system, as well... Saved my rear a few times, having it, thats for sure!
Background: Ext3 is the same as Ext2, except it has a "journaled" structure. If something, unforseen, happens, like a crash, or power-outage, fsck can "rebuild" better, what could have gone corrupt on you. Ext3 file system is kind of like using Windows' Microsoft Word, and it crashes on you, in the middle of a document edit. Word can use a form of "journaled" entry to rebuild the document, closer to its known contents, than without it.
Hope this helps,
Ms. Cuddles
-
hi guys,
thx for your help.
first of all, i tried to format the harddisks with ext3 but the program, which should help me to make the partitions could not format in ext3. Every try ended in an error ...
how can i format them without this KDE-tool?
the code was just /dev/hdb1, without the / it was just my mistake, sorry
-
Senior Member
registered user
Kool,
For formatting, drop to a shell console, root, preferably, and do one of the mkfs commands...
Not exactly sure on the spelling, maybe...
mkext3fs - or mkfsext3 ???
Got it...
mkfs.ext3 - you can look at the man pages on what options you want to provide, but from just entering the command alone on the console, you only need to provide the [device], all the rest are non-required flags/switches/options....
Hope this helps, and glad you got your auto-mounting working
Ms. Cuddles
-
Senior Member
registered user
Originally Posted by
magicoizo
hi guys,
thx for your help.
first of all, i tried to format the harddisks with ext3 but the program, which should help me to make the partitions could not format in ext3. Every try ended in an error ...
how can i format them without this KDE-tool?
the code was just /dev/hdb1, without the / it was just my mistake, sorry
mke2fs /dev/hda2 creates an ext2 format
mke2fs -j /dev/hda2 uses the journal that creates ext3
tune2fs -j /dev/hda2 will convert an existing etx2 partition to ext3
Funny, I had no idea there was a GUI for something as simple as formatting.
-
Senior Member
registered user
Originally Posted by
fingers99
/dev/hdb1 /test ext2, users, auto 0 0
The syntax is:
Code:
/dev/hdb1 /test ext2 users,auto 0 0
(no comma after ext2).
cuddles suggested to add 'exec' to the options.
man mount told me, that 'defaults' implies 'exec'.
btw: exec permits execution of binaries and covers a totally different issue.
Questions to fstab are often answered by man mount - yes, I know, it's about 100 pages long
-
Senior Member
registered user
Comment on ext2 vs ext3. I had several system total crashes (and thus became CrashedAgain) before switching to ext3 and none after. Save yourself some grief, make the switch. Crashes occurred during boot up, fsck would do a system check & say it had a bad superblock which I could never manage to 'repair'.
-
Junior Member
registered user
Hi!
I think that magicoizo installed knoppix in HD with beginner option. I did the same and I have the same problem! I edit fstab, reboot, and have the original fstab!! I don't know what to do. I think begginer install mode creates a fstab every time I reboot. What do we can do?
Similar Threads
-
By maestrobwh1 in forum Hardware & Booting
Replies: 0
Last Post: 04-08-2005, 11:47 PM
-
By Wassim in forum Hardware & Booting
Replies: 2
Last Post: 02-03-2005, 03:59 PM
-
By Jaster in forum General Support
Replies: 3
Last Post: 07-21-2004, 03:42 PM
-
By magicoizo in forum General Support
Replies: 1
Last Post: 05-20-2004, 04:35 AM
-
By lindleyrl in forum General Support
Replies: 0
Last Post: 03-09-2003, 06:14 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
Lot 10x SanDisk Cruzer ULTRA USB 3.0 16GB USB flash thumb drive SDCZ48-016G 16
$34.99
SanDisk 128GB Ultra Flair USB 3.0 Flash Drive - SDCZ73-128G-G46
$12.99
SanDisk 256GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-256G-G46
$21.99
SanDisk 512GB Ultra Drive Dual Go USB Type-C Flash Drive Green SDDDC3-512G-G46G
$49.99
64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive
$6.99
New TESLA OEM Model S,3,X,Y USB Flash Drive for Dashcam & Sentry Mode 128GB
$18.99
2TB USB 3.0 Flash Drive Memory Photo Stick for iPhone Android iPad Type C 3 IN1
$13.98
Mechanical Style Flash Drive USB 3.0 High Speed 16TB Large Capacity Waterproof
$8.39
USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT
$249.37
SanDisk Cruzer Glide USB 3.0 16GB 32GB 64GB 128GB 256GB Flash Drive Memory Lot
$276.48