Results 1 to 2 of 2

Thread: Fixing up /etc/fstab

  1. #1
    Member registered user
    Join Date
    Jun 2003
    Posts
    34

    Fixing up /etc/fstab

    Having messed up my Debian system I used the hdd-install on Knoppix 3.2 to reinstall. While everything works fine there are a few things I'm still trying to fix up.

    The output of 'fdisk -l' reads

    Disk /dev/hda: 30.0 GB, 30005821440 bytes
    240 heads, 63 sectors/track, 3876 cylinders
    Units = cylinders of 15120 * 512 = 7741440 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 258 1950448+ 83 Linux
    /dev/hda2 259 516 1950480 82 Linux swap
    /dev/hda3 517 3876 25401600 83 Linux

    and /etc/fstab reads

    # /etc/fstab: filesystem table.
    #
    # filesystem mountpoint type options dump pass
    /dev/hda3 / ext2 defaults,errors=remount-ro 0 1
    /dev/hda2 none swap sw 0 0
    proc /proc proc defaults 0 0
    /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
    /dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
    # partitions found by Knoppix
    #/dev/hda1 /mnt/hda1 ext3 noauto,users,exec 0 0
    #/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
    # Added by KNOPPIX
    /dev/hda1 /mnt/hda1 ext3 noauto,users,exec 0 0

    What I'm trying to change is....
    (1) For /dev/fd0 I'm guessing it's as simple as changing 'vfat' to 'auto' to allow all floppy disks to be read.
    (2) I'm trying to change /dev/hda3 from ext2 to ext3. Booting from the Knoppix CD I ran 'fsck -f /dev/hda3' which found 1.4% non-contiguous (whatever that's supposed to mean), then back on the hard drive I ran 'tune2fs -j -i 365 /dev/hda3', editted the top line of /etc/fstab to read '/dev/hda3 / ext3 defaults 0 0' before rebooting. All I get is the error 'EXT2-fs warning (device ide0(3,3)): ext2_read_super: mounting ext3 filesystem as ext2'. What's going wrong, how do I fix this?!
    (3) /dev/hda1 is 1.9 G of wasted space. I'm not clear what having it flagged as being bootable by fdisk is all about, but it's not mounted at boot time and booting it, it appears to be my old root partition from my messed up Debian distribution. I'd like to blank it and put it to good use, perhaps by mounting root on it, if it's big enough, and changing /dev/hda3 to /home. Does this seem like a good idea, and how would I do it?
    Many thanks for any help...

  2. #2
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    101
    My fdisk -l :

    Code:
    Disk /dev/hdg: 40.9 GB, 40982151168 bytes
    255 heads, 63 sectors/track, 4982 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot    Start       End    Blocks   Id  System
    /dev/hdg1   *         1      2497  20057121    c  Win95 FAT32 (LBA)
    /dev/hdg2          2498      4982  19960762+   5  Extended
    /dev/hdg5          2498      2528    248976   82  Linux swap
    /dev/hdg6          2529      4982  19711723+  83  Linux
    My fstab :

    Code:
    # /etc/fstab: filesystem table.
    #
    # filesystem  mountpoint  type  options  dump  pass
    /dev/hdg6  /  ext3  defaults,errors=remount-ro  0  1
    /dev/hdg5  none  swap  sw  0  0
    #proc  /proc  proc  defaults  0  0
    none  /proc/bus/usb  usbfs  defaults  0  0
    /dev/fd0  /floppy  vfat  defaults,user,noauto,showexec,umask=022  0  0
    /dev/cdrom  /cdrom  iso9660  defaults,ro,user,noexec,noauto  0  0
    /dev/sr1  /mnt/dvd  iso9660  defaults,ro,user,noexec,noauto  0  0
    # partitions found by Knoppix
    /dev/hdg1 /mnt/hdg1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0 0
    #/dev/hdg6 /mnt/hdg6 ext2 noauto,users,exec 0 0
    /dev/scd0	/cdrom	auto	ro,noauto,user,exec	0 0
    /dev/scd1	/mnt/dvd	auto	ro,noauto,user,exec	0 0
    (1) My FDD reads/writes OK ...
    (2) error 'EXT2-fs warning (device ide0(3,3)): ext2_read_super: mounting ext3 filesystem as ext2' - I get the same error, my system runs OK. I don't worry about it, it always does this.
    (3) Don't know ...


Similar Threads

  1. Problem when moving New Fstab to the Old Fstab to fix Suse
    By cheetahman in forum General Support
    Replies: 19
    Last Post: 03-21-2005, 11:58 AM
  2. Fixing the keyboard in kdm
    By Markus in forum Tips and Tricks
    Replies: 0
    Last Post: 11-07-2004, 10:36 AM
  3. fixing initrd boot screen?
    By popcorn in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 06-06-2004, 11:08 AM
  4. Knoppix as Rescue - Fixing the MBR
    By ChivalricRonin in forum General Support
    Replies: 2
    Last Post: 04-13-2004, 02:11 PM
  5. Fixing wine in 2003-09-05
    By Fabianx in forum Tips and Tricks
    Replies: 1
    Last Post: 09-21-2003, 03:38 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
  •  


ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield picture

ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield

$42.00



***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3 picture

***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3

$29.77



Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151 picture

Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151

$31.95



Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk picture

Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk

$47.39



ASUS Prime Z390-A LGA 1151 Intel Z390 SATA USB 3.1 ATX Motherboard NO I/O picture

ASUS Prime Z390-A LGA 1151 Intel Z390 SATA USB 3.1 ATX Motherboard NO I/O

$99.00



MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard picture

MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard

$67.99



MSI Gaming B150M BAZOOKA HDMI USB 3.1 DDR4 Socket LGA1151 Micro ATX Motherboard picture

MSI Gaming B150M BAZOOKA HDMI USB 3.1 DDR4 Socket LGA1151 Micro ATX Motherboard

$69.99



X99 LGA 2011-v3 MR9D Motherboard 8*DDR4 RAM USB 3.0 SATA3.0 M.2 for E5 V3 V4 CPU picture

X99 LGA 2011-v3 MR9D Motherboard 8*DDR4 RAM USB 3.0 SATA3.0 M.2 for E5 V3 V4 CPU

$79.99



GIGABYTE Z790 AORUS Elite AX Gaming Motherboard | ATX LGA 1700, DDR5, WiFi 6E picture

GIGABYTE Z790 AORUS Elite AX Gaming Motherboard | ATX LGA 1700, DDR5, WiFi 6E

$149.99



BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled picture

BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled

$59.99