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
  •  


HP ProCurve 4108gl J4865A Modular Network Switch picture

HP ProCurve 4108gl J4865A Modular Network Switch

$119.99



Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP picture

Cisco Nexus 48-Port 10G SFP+ Switch N9K-9396PX w/ 9K-M12PQ 12-Port 40G QSFP

$249.99



Cisco  (SG100D-05-UK) 5-Ports External Ethernet Switch picture

Cisco (SG100D-05-UK) 5-Ports External Ethernet Switch

$40.00



Zyxel ES2024 Managed Networking Gigabit Switch picture

Zyxel ES2024 Managed Networking Gigabit Switch

$43.12



Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



New Linksys SE3005 5-port Gigabit Ethernet Switch picture

New Linksys SE3005 5-port Gigabit Ethernet Switch

$18.99



Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch picture

Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch

$21.99



New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub picture

New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub

$11.49



Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture

Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED

$99.97



Netgear ProSafe S3300-52X-POE+ 48-Port Gigabit PoE+ Stackable Network Switch picture

Netgear ProSafe S3300-52X-POE+ 48-Port Gigabit PoE+ Stackable Network Switch

$100.95