LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mayday, I need to fix fstab, pls help! (https://www.linuxquestions.org/questions/linux-newbie-8/mayday-i-need-to-fix-fstab-pls-help-698460/)

Mail2me 01-19-2009 05:37 PM

Mayday, I need to fix fstab, pls help!
 
I added new SATA drive to Suse10.3 box with existing IDE and SATA HDD. So the system booted up with new SATA detected as /hdb, but with lost old SATA that was /hdb previously. I mounted this new SATA HDD, no probs. After reboot I found old SATA disappeared from fstab, I mounted it as /hdc1 and then added it into fstab. However Suse didn't like it and stopped booting with an error message related to fstab. So I guess I have to edit fstab by vi (?), and then somehow get old SATA drive back, I can't afford to lose its stuff... Pls drive me from here...

yancek 01-19-2009 05:57 PM

What exactly is the error you get?

I would suggest you post the output of fdisk -l and the fstab file contents.

repo 01-19-2009 06:05 PM

Hi,

Boot from a live cd (knoppix, puppy, dsl)
and change fstab

Mail2me 01-20-2009 03:29 AM

Quote:

Originally Posted by yancek (Post 3414409)
What exactly is the error you get?

I would suggest you post the output of fdisk -l and the fstab file contents.

I was able to fix fstab and added last line for sdc1 - my old SATA HDD which I would like to see again:

/dev/disk/by-id/scsi-SATA_WDC_WD400EB-00JWD-WCAJA1040738-part2 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_WDC_WD400EB-00JWD-WCAJA1040738-part3 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_WDC_WD400EB-00JWD-WCAJA1040738-part1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/disk/by-id/scsi-SATA_WDC_WD6401AALS-_WD-WMASY5113763-part7 /mydownload ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_WDC_WD6401AALS-_WD-WMASY5113763-part5 /roz1backup ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_WDC_WD6401AALS-_WD-WMASY5113763-part6 /video ext3 acl,user_xattr 1 2
/dev/sdc1 ext3 defaults 1 2

However I still can't see it,

fdisk -l:

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00096d13

Device Boot Start End Blocks Id System
/dev/sda1 1 192 1542208+ 82 Linux swap / Solaris
/dev/sda2 * 193 2078 15149295 83 Linux
/dev/sda3 2079 4865 22386577+ 83 Linux

Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b298d

Device Boot Start End Blocks Id System
/dev/sdb1 1 77825 625129281 f W95 Ext'd (LBA)
/dev/sdb5 1 41774 335549592 83 Linux
/dev/sdb6 41775 62661 167774796 83 Linux
/dev/sdb7 62662 77825 121804798+ 83 Linux

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 9729 78148161 7 HPFS/NTFS


I tried to mounted it:
# mount /dev/sdc1 mnt/sdc1
mount: mount point mnt/sdc1 does not exist

Pls drive me from here...

repo 01-20-2009 03:33 AM

Quote:

mount /dev/sdc1 mnt/sdc1
should be

Quote:

mount /dev/sdc1 /mnt/sdc1
make sure the mount point exist
mkdir /mnt/sdc1

Mail2me 01-20-2009 03:54 PM

Quote:

Originally Posted by repo (Post 3414776)
should be



make sure the mount point exist
mkdir /mnt/sdc1

Yep, you're right, many thanks, also I had to change the last line in fstab from one above, not sure why the first version didn't work.
This one worked OK:
/dev/sdc1 /mnt/sdc1 ext3 defaults 1 2


All times are GMT -5. The time now is 03:27 AM.