Nov 21, 2008

Missing fstab..............

I slipped on my own script, my fstab erased.......
It only contain a line to mount CD-ROM....wakakakaka

After googling, i found this
By reading this article, i assumed that we have to know the UUID for each drive, especially for the / and swap ( for windows disk can be done later )

First, used blkid from terminal by typing sudo blkid
here is the output

/dev/sda1: UUID="2C28F09028F059F2" TYPE="ntfs"
/dev/sda5: UUID="2C82313F7F68F931" TYPE="ntfs"
/dev/sda6: TYPE="swap" UUID="f2ea4d4c-ef3f-49dd-9f4a-ea140e93c69e"
/dev/sda7: UUID="ced3011b-4675-4790-8065-d8e0601f6bf1" TYPE="ext3"

I just have to copy / and swap UUID and paste to my (new)fstab,
after some editing, it looks like :
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
//192.168.1.100/shared /media/x cifs rw,uid=root,gid=root,file_mode=0777,dir_mode=0777,noperm 0 0
UUID=ced3011b-4675-4790-8065-d8e0601f6bf1 / ext3 relatime,errors=remount-ro 0 1
UUID=f2ea4d4c-ef3f-49dd-9f4a-ea140e93c69e none swap sw 0 0


After reboot, my system is back to normal
( I applied this to Hardy Heron, Intrepid Ibex and Mint Elyssa )

regards;
~E~

No comments: