Results 1 to 10 of 20
Hi, I've connected a SATA harddrive which I've formatted as a FAT32 so I can acces it both under linux and windows. Now I can mount it properly, and I've ...
- 12-08-2006 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 10
fstab doesn't auto mount
Hi, I've connected a SATA harddrive which I've formatted as a FAT32 so I can acces it both under linux and windows. Now I can mount it properly, and I've added it under fstab, but on boot it doesn't mount automatically.
Line added in fstab:
I've tried alot of different options in fstab but non of them boot the drive automatically. But when I mount it manually with "mount -a" it does show up and I can acces it and everything.Code:/dev/sda1 /win/apps vfat auto,users,umask=000 0 0
Also, if there might be an error when booting Linux, how can I pause the boot progress, because it goes to fast to read?
Thanks.
- 12-09-2006 #2Just Joined!
- Join Date
- Jun 2006
- Posts
- 50
There's not a way to pause that I'm familiar with, but you can find out the error by simply doing this:
as root, or sudo or however you want to do something with root permissions
just like that. it'll try to mount it the exact same way that the initscripts do (by reading fstab and following the instructions there). The reason to do as root, is to be safe since that's the permissions init will be using and the errors will occasionally be different for a user than admin.Code:mount /dev/sda1
That error should tell you a great deal of what the problem is. If you don't get an error...... ..... exorcism?
- 12-09-2006 #3post the output of 'fdisk -l' command.
Originally Posted by andromedae
you can't pause boot preccess or boot messages. you can check messages later on.
Originally Posted by andromedae
Code:dmesg | less
casperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-10-2006 #4Just Joined!
- Join Date
- Nov 2006
- Posts
- 10
No errors are reported when I mount the harddrive, that is the strange thing. Data I store on the drive seems to be ok, so the only problem is that it is not mounted after boot. I can mannually mount it, but isn't fstab responsible for doing that. If all else fails, is there a way to add "mount /dev/sda1" to some other script which is executed on boot? That would solve the problem as well.
- 12-10-2006 #5
OS mounts all the partitions listed in '/etc/fstab'. post the contents of /etc/fstab file and output of 'fdisk -l' command.
casperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-10-2006 #6Just Joined!
- Join Date
- Nov 2006
- Posts
- 10
fdisk -l doesn't show anything
fstab:
Code:# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/hda1 / ext3 defaults,errors=remount-ro 0 1 /dev/hda6 /home ext3 defaults 0 2 /dev/hda5 none swap sw 0 0 /dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0 /dev/sda1 /win/apps ext3 defaults,auto,user 0 2
These changes give me an error when booting:
Checking all filesystems...
fsck 1.37 (21-Mar-2005)
/home: clean, 40/3204992 files, 161331/6397878 blocks
SCSI subsytem driver Revision: 1.00
fsck.ext3: No such device or address while trying to open /dev/sda1
Possibly non-existent or swap device?
fsck failed. Please repair manually
Could it have something to do with the fact that my SATA drive is connected through a PCI SATA controller?
- 12-10-2006 #7Linux User
- Join Date
- Feb 2006
- Posts
- 484
you said your drive is formatted to fat32 but in the fstab you wrote ext3
repair this
/dev/sda1 /win/apps ext3 defaults,auto,user 0 2
to this
/dev/sda1 /win/apps vfat rw,defaults,auto,user 0 2
- 12-10-2006 #8Just Joined!
- Join Date
- Nov 2006
- Posts
- 10
Ah, I forgot to mention I've reformatted it as ext3 (and I've changed fstab accordingly) hoping that would solve the problem, but apparently it didn't.
- 12-10-2006 #9
you must be root to execute 'fdisk' command.
post output here.Code:sudo fdisk -l
casperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-10-2006 #10Just Joined!
- Join Date
- Nov 2006
- Posts
- 10
Output of "fdisk -l"
Code:Disk /dev/sda:300.0 GB, 300090728448 bytes 255 heads, 63 sectors/track, 36483 cylinders Units = cylinders of 16065 *512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 36483 293049666 83 Linux


Reply With Quote
