Looks like first line may be munged (as suggested by error message). Compare /etc/fstab from another system.
yours: > /etc/fstab: static file system information. > # mine: # /etc/fstab: static file system information. # Looks to me like the comment # has been lost from the first line. Easy when you're not quite aware of what an editor is doing. --Don Ellis On Fri, Feb 18, 2011 at 6:35 AM, Jack <[email protected]> wrote: > Hello, > > I'm having trouble remounting an external 250GB hard drive after > removing it. I keep getting the error: > > [mntent]: line 1 in /etc/fstab is bad > mount: can't find /dev/sdc1 in /etc/fstab or /etc/mtab > > The results of fdsk -l: > > Disk /dev/sda: 80.0 GB, 80026361856 bytes > 255 heads, 63 sectors/track, 9729 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x00091d82 > > Device Boot Start End Blocks Id System > /dev/sda1 * 1 9362 75193344 83 Linux > /dev/sda2 9362 9730 2955265 5 Extended > /dev/sda5 9362 9730 2955264 82 Linux swap / Solaris > > Disk /dev/sdc: 3933 MB, 3933732864 bytes > 122 heads, 62 sectors/track, 1015 cylinders > Units = cylinders of 7564 * 512 = 3872768 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x00000000 > > Device Boot Start End Blocks Id System > > Disk /dev/sdb: 250.1 GB, 250059350016 bytes > 1 heads, 63 sectors/track, 7752336 cylinders > Units = cylinders of 63 * 512 = 32256 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x044e59d7 > > Device Boot Start End Blocks Id System > /dev/sdb1 * 2 7752256 244196032+ 7 HPFS/NTFS > > > This is what my /etc/fstab looks like: > > /etc/fstab: static file system information. > # > # <file system> <mount point> <type> <options> <dump> <pass> > proc /proc proc defaults 0 0 > # /dev/sda5 > UUID=586ff6b3-b74d-4f2f-a926-617beb0d20be /ext3 > defaults,errors=remount-ro 0 1 > # /dev/sdb1 /media/sdb1 ntfs defaults,umask=007,gid=46 0 1 > # /dev/ > UUID=420e1625-0f3f-4966-b3c2-ec23047fab8a none swap sw 0 0 > /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0 > /dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0 > > Do I need to edit /etc/fstab? If so, what do I need to add or > delete? Is there any other way to get the external hard drive to > mount without using fstab? > Any help will be appreciated. > > Thanks, > Jack -- Central West End Linux Users Group (via Google Groups) Main page: http://www.cwelug.org To post: [email protected] To subscribe: [email protected] To unsubscribe: [email protected] More options: http://groups.google.com/group/cwelug
