08-18-2014, 02:37 PM
Code:
linux@linux:~$ cat /etc/fstab
overlayfs / overlayfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sdb5 swap swap defaults 0 0linux@linux:~$ cat /etc/fstab
overlayfs / overlayfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sdb5 swap swap defaults 0 0arunp@arunp-Vostro-3400:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb2 during installation
UUID=13ea928f-6d38-445e-b3b7-c06760ec9fea / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=0278cd76-2f6f-44fa-bb27-87602c6c6332 /home ext4 defaults 0 2
# swap was on /dev/sdb5 during installation
UUID=01dae284-d8de-4c09-bea1-2759ea815dc4 none swap sw 0 0(08-19-2014, 02:20 PM)arunp link Wrote: That is the issue, it doesn't boot if i configure it in that fashion. Now again i have booted it with CD and use Gparted and made the NTFS partition as unallocated and then restarted and now it boots with USB HD. Now again using the Gparted and converted the Unalocated space to NTFS and run the script and posting here.
Code:arunp@arunp-Vostro-3400:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb2 during installation
UUID=13ea928f-6d38-445e-b3b7-c06760ec9fea / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=0278cd76-2f6f-44fa-bb27-87602c6c6332 /home ext4 defaults 0 2
# swap was on /dev/sdb5 during installation
UUID=01dae284-d8de-4c09-bea1-2759ea815dc4 none swap sw 0 0
Now if I restart the Grub runs and it doesn't start the OS
lsblk
sudo parted -l
sudo blkid -c /dev/null
sudo mount /dev/sdb2 /mnt
cat /mnt/etc/fstablinux@linux:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 125.5M 0 part
├─sda2 8:2 0 12.2G 0 part
├─sda3 8:3 0 102.9G 0 part
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 117.7G 0 part
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 1K 0 part
├─sdb2 8:18 0 59.6G 0 part /mnt
├─sdb3 8:19 0 305.6G 0 part
├─sdb5 8:21 0 7.5G 0 part [SWAP]
└─sdb6 8:22 0 93.1G 0 part
sr0 11:0 1 700M 0 rom /cdrom
loop0 7:0 0 668.3M 1 loop /rofs
linux@linux:~$ sudo parted -l
Model: ATA WDC WD2500BEKT-7 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 132MB 132MB primary fat16 diag
2 134MB 13.2GB 13.0GB primary ntfs boot
3 13.2GB 124GB 110GB primary ntfs
4 124GB 250GB 126GB extended
5 124GB 250GB 126GB logical ntfs
Model: Seagate Portable (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
2 1049kB 64.0GB 64.0GB primary ext4 boot
1 64.0GB 172GB 108GB extended
5 64.0GB 72.0GB 7999MB logical linux-swap(v1)
6 72.0GB 172GB 100GB logical ext4
3 172GB 500GB 328GB primary ntfs
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Invalid partition table - recursive partition on /dev/sr0.
Ignore/Cancel? i
Model: PLDS DVD+-RW DS-8A5SH (scsi)
Disk /dev/sr0: 734MB
Sector size (logical/physical): 2048B/2048B
Partition Table: msdos
Number Start End Size Type File system Flags
linux@linux:~$ sudo blkid -c /dev/null
/dev/loop0: TYPE="squashfs"
/dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="07DB-011B" TYPE="vfat"
/dev/sda2: LABEL="RECOVERY" UUID="663EC66B3EC633B9" TYPE="ntfs"
/dev/sda3: LABEL="OS" UUID="0E58C90F58C8F68D" TYPE="ntfs"
/dev/sda5: UUID="30D748C43DA76362" TYPE="ntfs"
/dev/sr0: LABEL="Linux Lite 2.0 64-bit" TYPE="iso9660"
/dev/sdb2: UUID="13ea928f-6d38-445e-b3b7-c06760ec9fea" TYPE="ext4"
/dev/sdb3: UUID="6B6D529C3C948BA7" TYPE="ntfs"
/dev/sdb5: UUID="01dae284-d8de-4c09-bea1-2759ea815dc4" TYPE="swap"
/dev/sdb6: UUID="0278cd76-2f6f-44fa-bb27-87602c6c6332" TYPE="ext4"
linux@linux:~$ sudo mount /dev/sdb2 /mnt
mount: /dev/sdb2 already mounted or /mnt busy
mount: according to mtab, /dev/sdb2 is already mounted on /mnt
linux@linux:~$ cat /mnt/etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb2 during installation
UUID=13ea928f-6d38-445e-b3b7-c06760ec9fea / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=0278cd76-2f6f-44fa-bb27-87602c6c6332 /home ext4 defaults 0 2
# swap was on /dev/sdb5 during installation
UUID=01dae284-d8de-4c09-bea1-2759ea815dc4 none swap sw 0 0
linux@linux:~$linux@linux:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 125.5M 0 part
├─sda2 8:2 0 12.2G 0 part
├─sda3 8:3 0 102.9G 0 part
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 117.7G 0 part
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 24.4G 0 part
├─sdb2 8:18 0 1K 0 part
├─sdb5 8:21 0 7.8G 0 part [SWAP]
├─sdb6 8:22 0 97.7G 0 part
└─sdb7 8:23 0 335.9G 0 part
sr0 11:0 1 700M 0 rom /cdrom
loop0 7:0 0 668.3M 1 loop /rofs
linux@linux:~$ sudo blkid -c /dev/null
/dev/loop0: TYPE="squashfs"
/dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="07DB-011B" TYPE="vfat"
/dev/sda2: LABEL="RECOVERY" UUID="663EC66B3EC633B9" TYPE="ntfs"
/dev/sda3: LABEL="OS" UUID="0E58C90F58C8F68D" TYPE="ntfs"
/dev/sda5: UUID="30D748C43DA76362" TYPE="ntfs"
/dev/sr0: LABEL="Linux Lite 2.0 64-bit" TYPE="iso9660"
/dev/sdb1: UUID="3e1b2b86-cac2-49d1-a834-1b6a7f16b1be" TYPE="ext4"
/dev/sdb5: UUID="e36750d1-437d-45be-b954-be8a4b8cb74d" TYPE="swap"
/dev/sdb6: UUID="3e8711c6-3e32-44f2-a02e-db8f65ce6f6c" TYPE="ext4"
/dev/sdb7: UUID="62B9FEA64E895E5B" TYPE="ntfs"
linux@linux:~$ sudo parted -llinux@linux:~$ cat /etc/fstab
parted: invalid option -- 'i'
parted: invalid option -- 'n'
parted: invalid option -- 'u'
parted: invalid option -- 'x'
parted: invalid option -- '@'
parted: invalid option -- 'i'
parted: invalid option -- 'n'
parted: invalid option -- 'u'
parted: invalid option -- 'x'
parted: invalid option -- ':'
parted: invalid option -- '~'
parted: invalid option -- '$'
Usage: parted [-hlmsv] [-a<align>] [DEVICE [COMMAND [PARAMETERS]]...]
linux@linux:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 125.5M 0 part
├─sda2 8:2 0 12.2G 0 part
├─sda3 8:3 0 102.9G 0 part
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 117.7G 0 part
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 24.4G 0 part
├─sdb2 8:18 0 1K 0 part
├─sdb5 8:21 0 7.8G 0 part [SWAP]
├─sdb6 8:22 0 97.7G 0 part
└─sdb7 8:23 0 335.9G 0 part
sr0 11:0 1 700M 0 rom /cdrom
loop0 7:0 0 668.3M 1 loop /rofs
linux@linux:~$ sudo parted -l
Model: ATA WDC WD2500BEKT-7 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 132MB 132MB primary fat16 diag
2 134MB 13.2GB 13.0GB primary ntfs boot
3 13.2GB 124GB 110GB primary ntfs
4 124GB 250GB 126GB extended
5 124GB 250GB 126GB logical ntfs
Model: Seagate Portable (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 26.2GB 26.2GB primary ext4 boot
2 26.2GB 500GB 474GB extended
5 26.2GB 34.6GB 8389MB logical linux-swap(v1)
6 34.6GB 139GB 105GB logical ext4
7 139GB 500GB 361GB logical ntfs
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Invalid partition table - recursive partition on /dev/sr0.
Ignore/Cancel? i
Model: PLDS DVD+-RW DS-8A5SH (scsi)
Disk /dev/sr0: 734MB
Sector size (logical/physical): 2048B/2048B
Partition Table: msdos
Number Start End Size Type File system Flags
linux@linux:~$ sudo blkid -c /dev/null
/dev/loop0: TYPE="squashfs"
/dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="07DB-011B" TYPE="vfat"
/dev/sda2: LABEL="RECOVERY" UUID="663EC66B3EC633B9" TYPE="ntfs"
/dev/sda3: LABEL="OS" UUID="0E58C90F58C8F68D" TYPE="ntfs"
/dev/sda5: UUID="30D748C43DA76362" TYPE="ntfs"
/dev/sr0: LABEL="Linux Lite 2.0 64-bit" TYPE="iso9660"
/dev/sdb1: UUID="3e1b2b86-cac2-49d1-a834-1b6a7f16b1be" TYPE="ext4"
/dev/sdb5: UUID="e36750d1-437d-45be-b954-be8a4b8cb74d" TYPE="swap"
/dev/sdb6: UUID="3e8711c6-3e32-44f2-a02e-db8f65ce6f6c" TYPE="ext4"
/dev/sdb7: UUID="62B9FEA64E895E5B" TYPE="ntfs"
linux@linux:~$ sudo mount /dev/sdb2 /mnt
mount: block device /dev/sdb2 is write-protected, mounting read-only
mount: you must specify the filesystem type
linux@linux:~$ cat /mnt/etc/fstab
cat: /mnt/etc/fstab: No such file or directory
linux@linux:~$ sudo mount /dev/sdb2 /mnt
mount: block device /dev/sdb2 is write-protected, mounting read-only
mount: you must specify the filesystem type
linux@linux:~$(08-23-2014, 03:53 AM)arunp link Wrote: linux@linux:~$ sudo mount /dev/sdb2 /mnt
mount: block device /dev/sdb2 is write-protected, mounting read-only
mount: you must specify the filesystem type
sudo mount /dev/sdb1 /mnt
cat /mnt/etc/fstab
sudo umount /mntarunp@arunp-Vostro-3400:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 125.5M 0 part
├─sda2 8:2 0 12.2G 0 part
├─sda3 8:3 0 102.9G 0 part
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 117.7G 0 part
sdb 8:16 0 465.8G 0 disk
├─sdb1 8:17 0 119.2G 0 part /
├─sdb2 8:18 0 1K 0 part
├─sdb5 8:21 0 7.5G 0 part [SWAP]
└─sdb6 8:22 0 339.1G 0 part /mnt/Windows
sr0 11:0 1 1024M 0 rom
arunp@arunp-Vostro-3400:~$ sudo parted -l
[sudo] password for arunp:
Model: ATA WDC WD2500BEKT-7 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 132MB 132MB primary fat16 diag
2 134MB 13.2GB 13.0GB primary ntfs boot
3 13.2GB 124GB 110GB primary ntfs
4 124GB 250GB 126GB extended
5 124GB 250GB 126GB logical ntfs
Model: Seagate Portable (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 128GB 128GB primary ext4 boot
2 128GB 500GB 372GB extended
5 128GB 136GB 7999MB logical linux-swap(v1)
6 136GB 500GB 364GB logical ntfs
arunp@arunp-Vostro-3400:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#Entry for /dev/sdb1 :
UUID=152be27a-4d93-4fb6-95e5-45e098c6f568 / ext4 errors=remount-ro 0 1
#Entry for /dev/sdb6 :
UUID=5480819C42DE547D /mnt/Windows ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sdb5 :
UUID=f943611f-2a44-4f89-9b69-f840156d1c80 none swap sw 0 0
arunp@arunp-Vostro-3400:~$ sudo mount /dev/sdb6 /mnt
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
arunp@arunp-Vostro-3400:~$ cat /mnt/etc/fstab
cat: /mnt/etc/fstab: No such file or directory
arunp@arunp-Vostro-3400:~$ sudo mount /dev/sdb1 /mnt
[sudo] password for arunp:
arunp@arunp-Vostro-3400:~$ cat /mnt/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#Entry for /dev/sdb1 :
UUID=152be27a-4d93-4fb6-95e5-45e098c6f568 / ext4 errors=remount-ro 0 1
#Entry for /dev/sdb6 :
UUID=5480819C42DE547D /mnt/Windows ntfs-3g defaults,locale=en_US.UTF-8 00
#Entry for /dev/sdb5 :
UUID=f943611f-2a44-4f89-9b69-f840156d1c80 none swap sw 0 0
arunp@arunp-Vostro-3400:~$ sudo umount /mnt
arunp@arunp-Vostro-3400:~$