LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   Only one partition mounts (https://www.linuxquestions.org/questions/puppy-71/only-one-partition-mounts-4175545352/)

Fixit7 06-14-2015 06:06 PM

Only one partition mounts
 
I have 2 partitions on my sdb volume.

And both UUIDs are in fstab.

Yet only one mounts on bootup.

Why is that ?

Didier Spaier 06-14-2015 06:20 PM

Please provide full output of following commands:
Code:

lsblk -o name,uuid,fstype,mountpoint
cat /etc/fstab

Also, is sdb a fixed or removable device?

Fixit7 06-14-2015 06:57 PM

sdb is a usb external drive.

Code:

# lsblk
bash: lsblk: command not found

# blkid

/dev/sda1: LABEL="Windows_XP_Partition" UUID="5E1006FC1006DAC3" TYPE="ntfs"
/dev/sda2: UUID="b08b8b0f-eda2-47dc-8fd8-92bd2936d800" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda4: LABEL="PUPPEX_TAHR" UUID="3fb46150-be16-4301-a770-0f110f769d50" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: LABEL="Puppy_5.9.3_SDA5" UUID="ae03ec69-b09e-48c2-815d-58a494be70cc" TYPE="ext3"
/dev/sdb1: LABEL="Backup_Toshiba_Partition" UUID="9C24D67524D651BE" TYPE="ntfs"
/dev/sdb5: LABEL="Toshiba_Partition_Empty" UUID="01D050F76A0DD520" TYPE="ntfs"

# cat /etc/fstab

UUID="dc2277e3-04e8-4e51-84fa-1f0472a4f9e6"    /              ext3    defaults                          0 1
none                                            /proc          proc    defaults                                              0 0
none                                                                                  /sys            sysfs    defaults                                  0 0
none                                                                                  /dev/pts        devpts  gid=2,mode=620                                0 0
/dev/fd0                                                                        /mnt/floppy    auto    noauto,rw                                      0 0
none                                                                                /dev/shm        tmpfs    defaults,size=1G                              0 0
UUID="5E1006FC1006DAC3"                                                  /media/windows/ ntfs    defaults                                      0 0
UUID="59043662-c655-4ed4-b49b-300c579bb8b8"          /              ext3    defaults                                      0 1
UUID="30F88E78F88E3BDA"                        /              ntfs    defaults                                      0 1
UUID="ae03ec69-b09e-48c2-815d-58a494be70cc"    /              ext3    defaults,relatime,data=writeback  0 0   
UUID="1b4043fa-c89d-4fb2-ba50-6207825"          /              ext3    defaults                          0 1
UUID="01D050F76A0DD520"                                                        /              ntfs    defaults                          0 0
#                                                                                                defaults                          0 0#


michaelk 06-14-2015 08:36 PM

You can not have all of the file systems being mounted to /. Create some directory /media/xyz (make sure xyz is unique for each like you did for sda1 ) for sdb1 and sdb5. Also make sure there is a line feed at the end of the last line. While editing the fstab file move the cursor past the last character of the last line and press the enter key.

Also comment out or delete the file systems in the fstab file that are not being used.

frankbell 06-14-2015 09:32 PM

As Michaelk points out, each partition needs its own distinct mount point.

In case it helps, here's a bit of my /etc/fstab. Note the "auto" switches on the partitions on my external HDD.

Code:

/dev/sda2        swap            swap        defaults        0  0
/dev/sda1        /                ext4        defaults        1  1
/dev/sda3        /home            ext4        defaults        1  2
UUID=1655a198-15a7-471f-9e99-e3fc9fd92ca0  /media/sdb1  ext3  rw,user,auto      0  1
UUID=7900ade7-de36-41e5-88b5-2d7aaa8adcd4  /media/sdb5  ext3  rw,user,auto      0  1


Fixit7 06-14-2015 09:40 PM

All it took was one change.

Quote:

UUID="01D050F76A0DD520" /Linux_Files ntfs defaults 0 0

michaelk 06-14-2015 09:50 PM

Did you also want to mount sdb1?

As stated in my previous post to avoid confusion and to clean up fstab I would delete the following but you can comment them out if desired.
Code:

UUID="dc2277e3-04e8-4e51-84fa-1f0472a4f9e6"    /              ext3    defaults
UUID="59043662-c655-4ed4-b49b-300c579bb8b8"          /              ext3    defaults
UUID="30F88E78F88E3BDA"                        /              ntfs    defaults
UUID="1b4043fa-c89d-4fb2-ba50-6207825"          /              ext3    defaults


Fixit7 06-14-2015 10:21 PM

The mount statement is not working.

Is there a way to get any pen drives inserted to auto mount ?

(I am talking pen drives inserted after system has booted.)

Quote:

cd /
cd root/Downloads
mount -a
/bin/./unetbootin installtype=USB targetdrive=/dev/sdc1

Didier Spaier 06-14-2015 10:36 PM

In addition your /etc/fstab is even more wrong because the UUID of partition /dev/sdb1 seen in output of blkid is 9C24D67524D651BE but we don't see this UUID in /etc/fstab. You should have checked that yourself before posting and still have only one partition in /dev/sdb that can be mounted, so the title of this thread is misleading.

To make sure everything is fixed I suggest that you:
  • post the new output of /etc/fstab
  • issue the command "mount -a" (typed as root, of course) then post the output of "df -h"

This will allow use to see and indicate you the remaining corrections that could be needed.

PS as already pointed out the command lsblk is included is the package util-linux alongside blkid, so you should have it. To check, please post the output of "whereis lsblk".

Fixit7 06-15-2015 12:14 AM

I am human, not a cyborg.

After rebooting 5 times, ALL partitions are mounting.

Code:

UUID="01D050F76A0DD520"                                                        /Linux_Files    ntfs    defaults                          0 0
UUID="9C24D67524D651BE"                                                        /              ntfs    defaults                          0 0
UUID="D5DC-6345"                                /                              fat32    defaults                          0 0


michaelk 06-15-2015 03:51 AM

All partitions are mounting? You still have multiple file systems being mounted to /.

Post the output of the mount command (without any options).

Fixit7 06-15-2015 11:02 AM

I cleaned it up. But sdb5 is not mounting.

Quote:

none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0
/dev/fd0 /mnt/floppy auto noauto,rw 0 0
none /dev/shm tmpfs defaults,size=1G 0 0
UUID="5E1006FC1006DAC3" /media/windows/ ntfs defaults 0 0
UUID="ae03ec69-b09e-48c2-815d-58a494be70cc" /my-applications ext3 defaults,relatime,data=writeback 0 0
UUID="01D050F76A0DD520" /Linux_Files ntfs defaults 0 0
UUID="9C24D67524D651BE" /SDA5_DO_NOT_DELETE ntfs defaults 0 0
UUID="D5DC-6345" / fat32 defaults 0 0
Results of mount.

Quote:

rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1505304k,nr_inodes=218981,mode=755)
none on /proc type proc (rw,relatime)
none on /dev/pts type devpts (rw,relatime,gid=2,mode=620)
none on /sys type sysfs (rw,relatime)
shmfs on /dev/shm type tmpfs (rw,relatime,size=747888k)
tmpfs on /tmp type tmpfs (rw,relatime,size=747888k)
none on /dev/shm type tmpfs (rw,relatime,size=1048576k)
/dev/sda4 on /mnt/sda4 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb1 on /mnt/sdb1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
/dev/sda1 on /mnt/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
/dev/sda2 on /mnt/sda2 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb5 on /mnt/sdb5 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)

michaelk 06-15-2015 12:46 PM

Should of been the 1st question asked...

Code:

/dev/sda4 on /mnt/sda4 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb1 on /mnt/sdb1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
/dev/sda1 on /mnt/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)
/dev/sda2 on /mnt/sda2 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb5 on /mnt/sdb5 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,blksize=4096)

It appears that your file systems are being automatically mounted and that your UUID entries are not. Did you create the mount point directories? It is possible to create udev rules to have them mounted to a particular directory.

Code:

UUID="D5DC-6345" / fat32 defaults 0 0
Again, only the root file system is mounted to /. FYI many distributions will fail to boot if it can not find a file system in the fstab file that is supposed to automount.

Fixit7 06-15-2015 02:19 PM

I created new directories or used existing directories as the mount point.

sda5 is empty except for a text file.

I used to thunar to create a text file but it says it is a folder. ??

Does Linux not distinguish between a folder and a text file when it come to determining the file type ?

michaelk 06-15-2015 02:24 PM

Are you booting from a live USB?


All times are GMT -5. The time now is 11:01 AM.